I have one single ipset added to my iptables on a CentOS 6.x box and this rule is lost when the machine reboots.
I've found this answer showing how to make a Ubuntu system reload the iptables rules after a reboot but this directory is not present on CentOS.
How do I make this CentOS box load the firewall rules after a reboot?
NOTE: Yes, I'm saving the rules using iptables save and the file is being saved.
This is what is inside /etc/sysconfig/iptables:
# Generated by iptables-save v1.4.7 on Mon Apr 8 09:52:59 2013 *filter :INPUT ACCEPT [2713:308071] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [1649:1766437] -A INPUT -p tcp -m multiport --dports 25,587,465,110,143,993,995 -m state --state INVALID,NEW,RELATED,ESTABLISHED -m set --match-set blocking src -j DROP COMMIT # Completed on Mon Apr 8 09:52:59 2013 the command shows -A INPUT but when I created it I have used -I INPUT.
The rule used to create this was:
iptables -I INPUT -p tcp -m multiport --dports 25,587,465,110,143,993,995 -m state --state NEW,ESTABLISHED,RELATED,INVALID -m set --set blocking src -j DROP