how to install csf firewall on Centos 5 and 6
CSF (ConfigServer Security & Firewall) is an important tool for secured and managing your server and generally more advanced firewall options its support to cPanel/WHM, DirectAdmin and Webmin.
Before beginning, install CSF firewall required dependencies
CSF is a free packages to download using wget command and install in your system,
As there are two types of installing scripts available in folder,
If you are running a cPanel in your server:
If you are running a non-cpanel in your server:
Next, test whether you have the required iptables modules:
If you required to update configuration in cPanel/WHM services. Let’s disable testing mode in main CSF configure file.
Once the installation process has complete, to enable CSF/LFD run the below command,
Disable the CSF service
Restart the CSF service
Update the CSF
Do you want to uninstalling CSF/LFD from server,