Restoring iptables at boot (rc.local)
Solution 1:
I'm afraid time has moved on, and F22 is one of those cherishable distros using the adorable new systemd
to start things up. One of the many happy enjoyable side effects is that rc.local
is no longer run (or to be more precise, I haven't been able to make it run reliably) so that won't be helping.
Put your firewall rules into /etc/sysconfig/iptables
in the normal way, using iptables-save > /etc/sysconfig/iptables
, clear your rules, then do systemctl start iptables.service
to apply them. If iptables -L -n -v
confirms they've taken, do systemctl enable iptables.service
to start them at boot time.