> I'm am running RedHat 6.2, which used ipchains instead of iptables so I
> can't give you any specifics.
use the following
# Load the NAT module (this pulls in all the others).
modprobe iptable_nat
# In the NAT table (-t nat), Append a rule (-A) after routing
# (POSTROUTING) for all packets going out ppp0 (-o ppp0) which
says to
# MASQUERADE the connection (-j MASQUERADE).
# if you're using an ethernet connection to a dsl or cable modem
# use eth0 rather than ppp0
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
# Turn on IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
Later,
Ben.