Re: Home Made SUSE 10 Wireless Router
- From: Philippe WEILL <Philippe.Weill@xxxxxxxxxxxxxxx>
- Date: Wed, 29 Mar 2006 19:00:03 +0200
Philippe WEILL wrote:
Nathaniel Dube wrote:
Colin Day wrote:
Does the downstairs computer have a global (as opposed to local) IP
address? If not, you may have to enable NAT (network address translation)
in the kernel.
On the upstairs computer I set the IP manually for the adapter because it's
going to be the router. I set it to 192.168.0.1. DHCP is set to assign
192.168.0.1-64 for computers that connect to it.
On the downstairs computer, when I right click on KInternet and click on
Wireless Connection it shows 192.168.0.64 as the assigned IP.
The downstairs computer is set to let DHCP set the IP, hostname, etc for the
adapter.
I was able to get the downstairs computer to connect to the upstairs one. The problem is getting on the internet with it. I can access the internet
just fine from the upstairs computer acting as the router. But for some
reason it wont route the internet to let the downstairs computer use it.
on the upstairs computer have you activate ip_forward
echo 1 > /proc/sys/net/ipv4/ip_forward
and you have to NAT downstairs computer on the upstairs computer
iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.0.0/26 -j MASQUERADE
Ooops this is valid only for 1 to 63 replace /26 by /25
.
assuming ppp0 is your internet device
Also, what services are allowed to go through the firewall (if any) on
the upstairs
computer?
Colin Day
For now I completely turned off the firewalls on both computers. I'm at
home on dialup, so the security risk is still minimal even with the
firewalls off.
- References:
- Re: Home Made SUSE 10 Wireless Router
- From: Philippe WEILL
- Re: Home Made SUSE 10 Wireless Router
- Prev by Date: Re: Installing 80 workstations with PXE
- Next by Date: Re: Two network adapters on seperate networks problem
- Previous by thread: Re: Home Made SUSE 10 Wireless Router
- Next by thread: Linux routing question
- Index(es):
Relevant Pages
|