ip masquerade

alexis naxis at valiansys.com
Fri Dec 24 06:16:45 UTC 2004


hello every body,
I'm naxis a newbie.
Trying to make ip masquerade run on my fedora core 2 two saw how to on
this mailing list I tried everything writen but still I cannot make it
run.this is what I've done until now.
I want to make pc in my local network get access to the internet

eth0 get dynamic ip address from the isp
eth1 FC2 local dhcp server (IP:192.168.1.1 GW:192.168.1.1)

I run
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -j MASQUERADE

I edited  /etc/sysctl.conf setting
net.ipv4.ip_forward = 1
and run  "sysctl -p"(advices I saw on this mailing list)

"iptables -L -n -t nat" shows this for the POSTROUTING:

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 192.168.1.0/24 0.0.0.0/0

But local network cannot have the internet.
Is there anything I'm missing to do?
Is there any way to that without iptables?
I need your help





More information about the fedora-list mailing list