8 Apr
2013
8 Apr
'13
12:36 p.m.
I run some software called RPCEmu (http://www.marutan.net/rpcemu/) and I want to run networking on it. I've setup networking on the emulator and also on my linux box. But I have to run the commands each time. These are the commands, run as root :- 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 sysctl -w net.ipv4.ip_forward=1 sysctl -w net.ipv4.ip_dynaddr=1 How do I run them each time I switch on the machine so that they're run as root? Any help appreciated.