1) IP forwarding has to be enabled on the server. You can check this with 'sysctl
net.ipv4.ip_forward' (you don't need root access for this). If it returns zero, you need to enable forwarding with 'sudo sysctl -w
net.ipv4.ip_forward=1', then uncomment the similar line in /etc/sysctl.conf so forwarding is enabled at boot.
2) iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE