You are not logged in. Login Now
 0-3          
 
Author Message
keesan
Linux computer as bridge or gateway Mark Unseen   Jan 24 15:55 UTC 2014

How do I set up a linux computer as a bridge or gateway (which one do I want)
to pick up a wireless signal and pass it along to another computer or a router
or a switch or hub?  
3 responses total.
keesan
response 1 of 3: Mark Unseen   Jan 24 16:11 UTC 2014

Detailed situation:  neighbors agreed to let me share their wireless signal,
which I can do with a netbook in the windowsill.  It is a very weak signal
from an Apple router, with about 20% strength (which cuts out a lot) so I
cannot use it directly any place else in the house.  I had a wifi router
converted to a bridge by a friend (open-wrt?) but it failed.  I had a bridge
before that which worked except only with WEP and comcast switched the
neighbors to WPA2 (without telling them so it took me months to figure out
the problem).   I want to run the signal (wired) to an ATA - analog telephone
device - so we can use VOIP there.  So the route is:

computers (via switch) and phones - ATA/router - bridge ~~~~~~wifi router.

I want to use a linux laptop (on the porch) as the bridge or gateway - what
is the difference?  I don't need a DHCP server, can assign IP number manually
to eth0 on the laptop (wired) and on the ATA/router, which I think will then
assign 192.168.3.X to the computers.  My gateway IP would be that of the linux
bridge computer.  
I have done this with ipchains and kernel 2.4, with two lines of commands
involving forward, MASQ, and a list of accepted IP numbers, setting IP numbers
on the gateway computer and the one sharing the (dialup modem) signal, and
echoing "l" to a file (setting a bit).  
How do I do the same with iptables?  Someone suggested a one-line command that
did not specify an IP range.  

I tried XP Network Bridge but once I set up the bridge was unable to assign
an IP number to eth0 on XP.  How do I use this setup?  The laptop already has
XP on it and I would need to remove the hard drive to add linux because it
will only boot from hard drive or network (no floppy or cd-rom drives except
USB and it won't boot from USB anything).  DELL Latitude C400.  I took the
keyboard off to add a wifi card which hooks to antenna in the screen and
picked up six signals at our house instead of just our own weak signal like
the pcmcia card was doing.  Then replaced it twice because I need WPA2 and
the 2002 card did only WEP and then XP did not identify the 2005 card so I
had to put it in a linux computer to do that (Intel Pro 2200).  

I am experimenting at home.  Our wifi router is 192.0.2.1 and I can connect
to it with IP address 192.0.2.2 etc.  192.0.2.1 is the default gateway for
the bridge computer.   DNS server 192.168.0.1 (AT&T DSL modem).  Our router
is 192.168.2.1.  

I recall that when the bridge worked at the other location (building site
where we want phone service) I had to use IP numbers in the same range as the
neighbor's router (10.0.1.x).  I presume the gateway was 10.0.1.1.  Don't
recall the DNS server (8.8.8.8 Google works).  

Most instructions assume you have a wired connection that you want to share
wirelessly.  This is the opposite.  

I could also  make a cantenna or wok-tenna for each computer that I want to
get a signal to, but not for the ATA/router.  

I do NOT need to do DHCP to assign WAN or LAN IP numbers to this bridge.
WAN can be 10.0.1.15 and LAN anything I like as long as I set the ATA/router
to be similar.  
swolf154
response 2 of 3: Mark Unseen   Mar 17 15:56 UTC 2018

Is this SOLVED??
It's now 5 years later. Do you get it working? That was a long read but you
failed to say what is was you were trying to acomplish. 
tod
response 3 of 3: Mark Unseen   Mar 22 05:29 UTC 2018

Yes!
 0-3          
Response Not Possible: You are Not Logged In
 

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss