05-22-2012, 11:48 AM
To have IP tables working on startup with a config file, you will need to do the following:
Code:
Run: iptables-save > /etc/iptables.conf
Run to create script file: vim /etc/network/if-up.d/iptables
Add to file:
#!/bin/sh
iptables-restore < /etc/iptables.conf
Run: chmod +x /etc/network/if-up.d/iptables