In this article we will explain to you how to install, configure and uninstall CSF in WHM root.
CSF: It is the abbreviation of Config Server Security & Firewall. CSF is for configuring or managing your server firewall easily and simply.
Steps to install and configure CSF in WHM:
To install configure CSF, login to your server via SSH root access and run the following :
Step 1: Downloading CSF package
rm -fv csf.tgz wget http://www.configserver.com/free/csf.tgz
Step 2: Remove already installed firewall settings
Execute the following command to remove already installed firewall like APF (Advanced Policy Firewall) or BFD (Brute Force Detection) from server.
Step 3: Installation
tar -xzf csf.tgz cd csf sh install.sh
Then, check whether your server have required IP tables modules by using the following command.
Step 4: Configure CSF
Once the installation process is completed we need to enable the csf to work it properly. You need to disable the TESTING mode, you can change it from the configuration file itself.
Steps to uninstall CSF in WHM:
To uninstall CSF Login to your server via SSH root Access and run the following :
If you want to remove csf and lfd: