Difference between revisions of "Set up Network Address Translation"

From Linuxintro
imported>ThorstenStaerk
(New page: To set up NAT, open a console and enter echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE Category:Guides)
 
imported>ThorstenStaerk
Line 1: Line 1:
To set up NAT, [[open a console]] and enter
+
To set up NAT ([[network]] address translation), [[open a console]] and enter
  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
  
 
[[Category:Guides]]
 
[[Category:Guides]]

Revision as of 20:07, 3 October 2010

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