In iptables, there are several different chains, which will be discussed in depth in later chapters. Table - Each table has a specific purpose, and in iptables there are 4 tables. The raw, nat…

Iptables configuration examples - Traceroute iptables -t nat -A POSTROUTING -s 10.10.10.2 -o eth1 -j MASQUERADE Or, if you have multiple PC-s, use a subnet mask and allow access for the whole network: iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o eth1 -j MASQUERADE 2. Port forwarding Iptables - LQWiki Jul 30, 2011

Dec 28, 2019

7.4. FORWARD and NAT Rules Red Hat Enterprise Linux 4 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE The rule uses the NAT packet matching table ( -t nat ) and specifies the built-in POSTROUTING chain for NAT ( -A POSTROUTING ) on the firewall's external networking device ( -o eth0 ).

iptables NAT prerouting rule does not forward the traffic

Iptables Tutorial 1.2.2