CentOS 7 iptables
I've been playing about with CentOS on a dirt-cheap VPS.
One of the first tasks was getting iptables (firewall) up and running - no problem but keeping the rules to be sticky after rebooting doesn't seem to work out-of-the-box.
There are a couple of things you need to do:
- Update /etc/sysconfig/iptables-config (and ip6tables-config) to set: IPTABLES_SAVE_ON_RESTART="yes" in order to save changes when you reboot (or, if you prefer, do this manually).
- Run the command "chkconfig iptables on" and the same for ip6tables.
When rebooting rules should load up automatically.