YaK:: Linux iptables NAT hints [Changes]   [Calendar]   [Search]   [Index]   [PhotoTags]   
[mega_changes]
[photos]

Linux iptables NAT hints

http://www.revsys.com/writings/quicktips/nat.html

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
(unless otherwise marked) Copyright 2002-2014 YakPeople. All rights reserved.
(last modified 2010-11-21)       [Login]
(No back references.)