This shows you the differences between two versions of the page.

Link to this comparison view

networking:nat_over_iptables [2017/02/05 22:43] (current)
Line 1: Line 1:
 +Internal Network: /dev/eth1
 +External Network: /dev/eth0
 +echo 1 > /proc/sys/net/ipv4/ip_forward
 +/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 +/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
 +/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
networking/nat_over_iptables.txt ยท Last modified: 2017/02/05 22:43 (external edit)
Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0