iptables --flush iptables --table nat --flush iptables -Z iptables --delete-chain iptables --table nat --delete-chain echo 1 > /proc/sys/net/ipv4/ip_forward iptables --append FORWARD --in-interface eth1 -j ACCEPT iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE