"Example NAT Usage" is a small script that demonstrates how to use a Network Address Translation (NAT). It provides an example of how NAT can be used in a networking environment.
The script is easy to use and understand as it comes with comments that describe the variables' purpose. For example, the variables EXT and INT are used to define the names of the interfaces.
One example shows masquerading, which is demonstrated using the variables PRIV_NETS and MASQ_NET. While another example demonstrates general source network address translation (SNAT) for internal computers with private IPs using the MAP_FROM and MAP_TO variables.
The script shows redirection by redirecting internal net traffic through a Squid proxy while allowing direct access to the local web server. Additionally, port forwarding is demonstrated by forwarding gateway port 7000 to a news server and gateway port 8000 to a pop mail server.
Finally, the script shows load balancing by redirecting nntp requests to any of several local news servers using virtual server and server range variables.
Overall, this script demonstrates various NAT configurations comprehensively and comes with examples that are easy to follow, making it ideal for anyone in need of a better understanding of network address translation.
Version 1/17/01: N/A