On CentOS 7 (CloudLinux 7) Server starting csf firewall got following error
[root@server78 ~]# csf -r Flushing chain `INPUT' Flushing chain `FORWARD' Flushing chain `OUTPUT' Flushing chain `GALLOWIN' Flushing chain `GALLOWOUT' Flushing chain `GDENYIN' Flushing chain `GDENYOUT' Flushing chain `PREROUTING' Flushing chain `INPUT' Flushing chain `OUTPUT' Flushing chain `POSTROUTING' Deleting chain `GALLOWIN' Deleting chain `GALLOWOUT' Deleting chain `GDENYIN' Deleting chain `GDENYOUT' open3: exec of /usr/sbin/ipset flush failed at /usr/sbin/csf line 4752. [root@server78 ~]#
I checked if command /usr/sbin/ipset exists, but was not found. So checked which package provide this command.
[root@server78 ~]# /usr/sbin/ipset -bash: /usr/sbin/ipset: No such file or directory [root@server78 ~]# yum whatprovides "/usr/sbin/ipset" Loaded plugins: fastestmirror, rhnplugin This system is receiving updates from CLN. Loading mirror speeds from cached hostfile * cloudlinux-x86_64-server-7: xmlrpc.cln.cloudlinux.com ipset-6.19-4.el7.x86_64 : Manage Linux IP sets Repo : cloudlinux-x86_64-server-7 Matched from: Filename : /usr/sbin/ipset [root@server78 ~]#
Problem is fixed by installing package ipset with yum
yum install -y ipset