How to have iptables entries applied on boot.

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. jason@hoshi:~$ sudo touch /etc/network/if-up.d/iptables [sudo] password for jason:jason@hoshi:~$ sudo touch /etc/network/if-up.d/iptables [sudo] password for jason: Put this in it. #!/bin/sh iptables-restore < /etc/iptables.conf#!/bin/sh iptables-restore … Read more