mirza.k
November 23rd, 2005, 03:45 AM
/sbin/iptables --flush
/sbin/iptables --table nat --flush
/sbin/iptables --delete-chain
/sbin/iptables --table nat --delete-chain
/sbin/iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
/sbin/iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
is that correct ?
info :
eth0 = public IP
eth1 = LAN GAteway
i want to set it up for default gateway only
----------
and where is the rc.local ?
so i can put it there
i cant find the rc.local :((
/sbin/iptables --table nat --flush
/sbin/iptables --delete-chain
/sbin/iptables --table nat --delete-chain
/sbin/iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
/sbin/iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
is that correct ?
info :
eth0 = public IP
eth1 = LAN GAteway
i want to set it up for default gateway only
----------
and where is the rc.local ?
so i can put it there
i cant find the rc.local :((