The iptables entries are lost upon reboot with a standard configuration, but this can be applied on boot with the right script. Create a script in the /etc/network/if-up.d directory named iptables. Put this in it. #!/bin/sh iptables-restore < /etc/iptables.conf#!/bin/sh iptables-restore < /etc/iptables.conf Then create the iptables.conf file in the /etc directory and put your iptables …

Securing your Linux computer with iptables is a great way to make sure that you are safer from Internet attacks. The iptables(8) system is the built in firewall for a Linux system. This makes it very easy to secure your computer. Before you change any settings, backup your iptables configuration. iptables-save > backup.confiptables-save > backup.conf …