On 09/04/13 09:49, Adam Bower wrote:
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
You'll have to forgive me asking this question, but how and why would I need to reformat them?
I've looked at http://www.linuxvbashi.cz/en/system and the sysctl commands listed there appear to me to be in the same format as those you've listed above.