router setup difficultly

Michael Still mikal at stillhq.com
Fri Mar 21 07:33:57 EST 2003


On Thu, 20 Mar 2003, Martijn van Oosterhout wrote:

> You can ping the internet from the router
> /proc/sys/net/ipv4/ip_forward has a "1" in it
> You have IP Masquerade / NAT configured

I do:

iptables -t NAT -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

[Actually, I have a 87 line script which starts the wireless access point,
sets up a bunch of firewall rules, NATs, DHCP relays, tranparent proxies,
and some other stuff]

Mikal

-- 

Michael Still (mikal at stillhq.com) | Stage 1: Steal underpants
http://www.stillhq.com            | Stage 2: ????
UTC + 11                          | Stage 3: Profit



More information about the linux mailing list