ipset persistent after reboot

Support for security such as Firewalls and securing linux
Post Reply
eric9301
Posts: 6
Joined: 2016/04/14 08:16:27

ipset persistent after reboot

Post by eric9301 » 2016/04/14 08:38:33

Hi, I need to make ipset persistent after reboot, I have ipset working with iptables and is fine, until a reboot, then iptables will not start as its missing ipset rules.

I don't reboot very often, but if something crashes then the system is wide open. not good :(

I know there was a bug relating to this reported in RH and there are various solutions/scripts, just need to know the best way of fixing this (so nothing breaks on updates), I'd like the best recommended solution that is supported within centos if possible.

I'm running 6-8
***********************************************************
centos-release-6-7.el6.centos.12.3.x86_64
epel-release-6-8.noarch
kernel-2.6.32-573.7.1.el6.x86_64
***********************************************************

Hope someone can help with this

Regards

Eric

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ipset persistent after reboot

Post by TrevorH » 2016/04/14 12:34:08

Did you run service ipset save after setting up your ipsets?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

eric9301
Posts: 6
Joined: 2016/04/14 08:16:27

Re: ipset persistent after reboot

Post by eric9301 » 2016/04/14 12:49:47

Hi Trevor, I did not, will this create the required scripts, service? I could not find any docs referring to this, but if its as simple as this that would be great, I have a test machine I can use to see if this works.

Regards

Eric

eric9301
Posts: 6
Joined: 2016/04/14 08:16:27

Re: ipset persistent after reboot

Post by eric9301 » 2016/04/14 13:00:11

Hi Trevor, thanks it worked :)

Post Reply