Answer the question
In order to leave comments, you need to log in
How to restore iptables rules after reboot?
I'm trying to restore the iptables rules after a reboot, they were originally written in the /etc/firewall.conf file. I
create a file for auto-recovery:
nano -w /etc/network/if-up.d/iptables
In the file:
#!/bin/sh
iptables-restore < /etc/firewall.conf
chmod +x /etc/network/if-up.d/iptables
iptables-restore < /etc/firewall.conf
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question