# Set up masquerading for the outgoing packets ${NAT} -A POSTROUTING -o eth1 -j MASQUERADE # Last, set the policy to accept ${IPTABLES} -P INPUT ACCEPT ${IPTABLES} -P FORWARD ACCEPT # Enable forwarding echo 1 >/proc/sys/net/ipv4/ip_forward