On Mon, Apr 08, 2013 at 12:36:54PM +0100, Chris Walker wrote:
iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -t nat -A POSTROUTING --source 172.31.0.0/16 -o eth0 -j MASQUERADE
These could go into /etc/rc.local or potentially there is a script your system will run for iptables rules on boot.
sysctl -w net.ipv4.ip_forward=1 sysctl -w net.ipv4.ip_dynaddr=1
These would be best reformatted and put into /etc/sysctl.conf
Adam