APF to CSF Firewall
Hello,
Currently we have purchased a new VPS server and there is default APF firewall. But we are very familiar with CSF firewall as we are using CSF firewall in our dedicated servers. APF firewall is fully unknown for us and never use it.
Is it possible to use CSF instead APF ? If yes then what is the exact procedure we have to do ? Below are the few information of our VPS server, kindly go through and help us.
=====================================
Installed cPanel Version Details
root@server1 [/]# /usr/local/cpanel/cpanel -V
86.0 (build 18)
=====================================
Current cPanel Environment:
root@server1 [/]# cat /var/cpanel/envtype
vzcontainer
=====================================
OS Version:
root@server1 [/]# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
=====================================
Any suggestion would be appreciated.
Thanks,
Tarak Nath
-
CSF Will detect if APF is installed & has a script to remove it stop apf apf -f just run the scripts below after you install csf sh /usr/local/csf/bin/remove_apf_bfd.sh or if you want to do it manually before unintall APF & BFD apf -f rm -fv /etc/cron.daily/fw rm -fv /etc/cron.daily/apf rm -fv /etc/cron.d/refresh.apf rm -fv /etc/logrotate.d/apf rm -fv /var/log/apf* /sbin/chkconfig apf off /sbin/chkconfig apf --del rm -fv /etc/init.d/apf rm -Rfv /etc/apf rm -fv /etc/cron.d/bfd rm -fv /etc/logrotate.d/bfd rm -fv /var/log/bfd* rm -Rfv /usr/local/bfd 0 -
Thank you @dalem for sharing the info. So our VPS (vzcontainer ) server is compatible for CSF LFD. And no need to take any backup of existing firewall rules it will be applied for CSF automatically ? Regards, Tarak Nath 0 -
Hello, I'd create a backup of the firewall rules, APF is a similar type of firewall as CSF so otherwise you shouldn't need to do anything else. 0
Please sign in to leave a comment.
Comments
3 comments