Configure NAT (network address translation)with linux iptables command

Sharing internet connection with NAT (network address translation) can be easy as running commands:

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

where ppp0 is your external interface.

Leave a Reply

You must be logged in to post a comment.