Hi,
Usually, people use iptables to configure NAT...
rules looks like :
WAN_IFACE = ppp0
SOURCE_IP = 192.168.0.0/24
PUBLIC_IP = xxx.xxx.xxx.xxx
iptables -t nat -A POSTROUTING -s $SOURCE_IP -o $WAN_IFACE -j SNAT --to-source $PUBLIC_IP
or
iptables -t nat -A POSTROUTING -s $SOURCE_IP -o $WAN_IFACE -j MASQUERADE
The second one is to be used when you get a dynamic IP from your ISP : it automatically nats the pakets to the IP of the output interface.
For more info on iptables, have a look at
http://www.linuxsecurity.com/resourc...-tutorial.html
see you...