iptables -t nat -A POSTROUTING -i ppp0 -s 192.168.0.0/24 -j MASQUERADE
The 0 netmask isnt valid as far as i know. maybe ipchains does something funny but anyway.
you can change the .0/24 to .1/32 if you only want one ip going out.
Last edited by turnip; 11-10-2002 at 01:46 PM.
|