I have a related question, if anyone could point me in the right direction, it would be greatly appreciated
I am implementing a similar setup as the first post, here it is:
modem > FC6 eth0 set up for dhcp
eth1 static 192.168.1.1
internal machine eth0 192.168.1.101
I followed the "how to" at http://www.linuxsolved.com/forums/ftopic115.html
I have an executable script named rc.nat in /etc/rc.d/ and am calling that in /etc/rc.d/rc.local
When I reboot, I am expecting that the script will execute the following commands:
# Defines the location of iptables executables.
#Clears if any old iptable rules/ policies are there.
iptables --flush -t nat
# Now we will do Masquerading ie. we are doing NAT.
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
# Enabling packet forwarding.
echo 1 > /proc/sys/net/ipv4/ip_forward
and in my /etc/rc.d/local is the following:
#added to enable inet sharing...
note: I tried this with just:
and then found a reference from google talking about adding "touch"
neither seem to work
I believe that it is just a problem with either iptables, b/c if I disable the firewall the internal machine can access the internet, but that is not a sensible work around...
So any feedback would be appreciated, thanks for your time.