Tarak Nath

Well-Known Member
Mar 12, 2018
89
14
8
India
cPanel Access Level
Root Administrator
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
[email protected] [/]# /usr/local/cpanel/cpanel -V
86.0 (build 18)
=====================================
Current cPanel Environment:

[email protected] [/]# cat /var/cpanel/envtype
vzcontainer
=====================================
OS Version:

[email protected] [/]# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
=====================================

Any suggestion would be appreciated.

Thanks,
Tarak Nath
 
Last edited:

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,976
152
368
SLC
cPanel Access Level
DataCenter Provider
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
 

Tarak Nath

Well-Known Member
Mar 12, 2018
89
14
8
India
cPanel Access Level
Root Administrator
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
 
Last edited:
Thread starter Similar threads Forum Replies Date
B Security 3
B Security 4
N Security 0
D Security 1
konrath Security 1