Simple implementation of NAT
Internal network connects to the internet with a dynamic public IP address.
iptables –t nat –A POSTROUTING –i eth0 –o ppp0 –j MASQUERADE
nat:
This table is consulted when a packet that creates a new connection is encountered. It consists of three built-ins: PREROUTING (for altering packets as soon as they come in), OUTPUT (for altering locally-generated packets before routing), and POSTROUTING (for altering packets as they are about to go out).
Leave a Reply
You must be logged in to post a comment.