Hi!
I can’t get the firewall rules to reset automatically on every boot, which is pretty frustrating.
I tried to write your code in /etc/rc.local:
#!/bin/sh -e
iptables-restore < /etc/iptables-rules
exit 0
I also tried adding rc.local:
#!/bin/sh -e
rc.local
iptables-restore < /etc/iptables-rules
exit 0
But at every boot the firewall resets itself. How can I fix it?