Difference between revisions of "Set up Network Address Translation"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 2: | Line 2: | ||
[[echo]] 1 > /proc/sys/net/ipv4/ip_forward | [[echo]] 1 > /proc/sys/net/ipv4/ip_forward | ||
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | ||
+ | |||
+ | = See also = | ||
+ | * [http://www.nerdgrind.com/set-up-nat-with-linux-and-iptables-firewall/ set up NAT] | ||
[[Category:Guides]] | [[Category:Guides]] |
Revision as of 10:06, 22 December 2011
To set up NAT (network address translation), open a console and enter
echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE