Don't forget to turn forwarding on too.
sysctl -w net.ipv4.ip_forward=1
Johnny Hughes wrote:
You need to do ip-masquerading to pass traffic thru a linux box as a gateway. That requires 2 NICs and an iptables script which does masquerading
I use this script to setup that kind of box: http://ldp.hughesjr.com/HOWTO/IP-Masquerade-HOWTO/stronger-firewall-examples...