ipset on CentOS6 comes with /etc/rc.d/init.d/ipset so that "service ipset reload" can be used to (re)load the configuration. CentOS7 doesn't come with an equivalent for systemd: # systemctl reload ipset.service Failed to issue method call: Unit ipset.service failed to load: No such file or directory. # systemctl start ipset.service Failed to issue method call: Unit ipset.service failed to load: No such file or directory. # find /etc -name ipset.service # What is the recommended procedure for loading the ipset configuration? Thanks, Tom -- Email: tal at whatexit.org Work: tlimoncelli at StackOverflow.com Skype: YesThatTom Blog: http://EverythingSysadmin.com
On 18/02/15 10:47, Tom Limoncelli wrote:> ipset on CentOS6 comes with /etc/rc.d/init.d/ipset so that "service > ipset reload" can be used to (re)load the configuration. CentOS7 > doesn't come with an equivalent for systemd:<snip>>From my Fedora 21 box, I'm *presuming* it's available on C7, I don'thave a C7 box to try it on though. $rpm -ql "ipset-service" /etc/ipset /usr/lib/systemd/system/ipset.service /usr/libexec/ipset /usr/libexec/ipset/ipset.start-stop HTH P.
On 2/17/2015 3:47 PM, Tom Limoncelli wrote:> ipset on CentOS6 comes with /etc/rc.d/init.d/ipset so that "service > ipset reload" can be used to (re)load the configuration. CentOS7 > doesn't come with an equivalent for systemd: > > # systemctl reload ipset.service > Failed to issue method call: Unit ipset.service failed to load: No > such file or directory. > # systemctl start ipset.service > Failed to issue method call: Unit ipset.service failed to load: No > such file or directory. > # find /etc -name ipset.service > # > > What is the recommended procedure for loading the ipset configuration?did you try `yum install ipset` ? that said, I suspect its deprecated in the new world of networkmanager and firewalld. -- john r pierce 37N 122W somewhere on the middle of the left coast
On Tue, Feb 17, 2015 at 7:17 PM, Peter Lawler <centos at bleeter.id.au> wrote:> From my Fedora 21 box, I'm *presuming* it's available on C7, I don't > have a C7 box to try it on though. > > $rpm -ql "ipset-service" > /etc/ipset > /usr/lib/systemd/system/ipset.service > /usr/libexec/ipset > /usr/libexec/ipset/ipset.start-stopSadly there is no ipset-service in the CentOS repos. I'm going to steal the init.d script from CentOS6. It works perfectly. On Tue, Feb 17, 2015 at 7:20 PM, John R Pierce <pierce at hogranch.com> wrote:> that said, I suspect its deprecated in the new world of networkmanager and > firewalld.I think Don Quixote wrote firewalld. It takes everything that was wrong about iptables and amplifies them, meanwhile only fixing problems that don't exist. Tom -- Email: tal at whatexit.org Work: tlimoncelli at StackOverflow.com Skype: YesThatTom Blog: http://EverythingSysadmin.com