September 2005
Intermediate to advanced
552 pages
13h 30m
English
Source NAT is by far the most common form of NAT. Using NAT to give outgoing Internet access to local, privately addressed hosts was the original purpose of NAT. The following sections provide some simple, real-world examples of using the nat table's MASQUERADE and SNAT targets.
The MASQUERADE version of source NAT is intended for people with dial-up accounts who get a different IP address assigned at each connection. It also is used by people with always on connections, but whose ISP assigns them a different IP address on a regular basis.
The simplest example is a PPP connection. These sites often use a single rule to masquerade all outgoing connections from the LAN: ...