NAT

Last edit

Changed:

< $ sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

to

> $ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Changed:

< * your client is connected to eth1 on the server, or any other interface with an IP address

to

> * your client is connected to any interface on the server


NAT (network address translation) is also called masquerading under Linux and friends.

Here's what you should enter on your server.

 $ sudo sysctl -w net.ipv4.ip_forward=1
 $ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

This assumes, that: