Linuxcat.org

Full Version: Setting up IP Tables in Debian
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Reference URL's