To install CSF, perform the following steps:
Log in to your server as the root user via SSH.
Run the cd /root command to change to the root directory.
Run the following command to download CSF:
wget https://csf.linux.com.hr/csf.tgz
Run the tar -xzf csf.tgz command to decompress the downloaded file.
Run the cd csf command to change to the csf directory.
Run the ./install.cpanel.sh command to install CSF.
To configure CSF, use WHM’s ConfigServer Security & Firewall interface (WHM » Home » Plugins » ConfigServer Security & Firewall). The installation script should enable the correct ports in CSF, but we recommend that you confirm this on your server.
After you configure CSF, you must disable testing mode. To take CSF out of testing mode, perform the following steps:
To use CSF, you must disable testing mode. Perform the following steps to take CSF out of testing mode:
Click Firewall Configuration.
Change the value of Testing from ON to OFF.
Click Change.
Click Restart csf+lfd.
Click Return.