cPanel Security-How to install ConfigServer Firewall CSF in WHM
Easiest way to install CSF & LFD (Login failure daemon) on linux server & to operate the ConfigServer Firewall from your WHM panel on all Linux flavours. Complete guide and a well explained tutorial over CSF installation & configuration on cpanel.
If you are concerned about the security on your linux server or willing to secure your server from hacking attempts, ConfigServer Firewall or CSF is one of the most recommended plugin.
How to install CSF from command line
What you need?
You need root access to your server. Login as root to your server with putty (Read-How to Use Putty) and perform these commands.
Installation is quite easy: rm -fv csf.tgz wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf
Hit this command to install perl modules (if not installed)
perl /usr/local/csf/bin/csftest.pl or ./csftest.pl
& finally hit the installation command
./install.sh or sh install.sh
The installation will begin showing a few lines on the screen that ends up with a message of Installation Completed.
Configuring CSF from cPanel or WHM
You will observe the following control under your WHM>Plugins>ConfigServer Firewall
Under this option, you will be able to configure the firewall and other options, you can also check firewall security options where you need to work in order to secure your server. This can be done easily by reading the easy instructions under the CSF.
For non-cPanel users, knowledge of ssh operations is required. Please check this guide to know how can you configure CSF on a non-cpanel server.
Uninstalling CSF from cPanel/WHM
Uninstalling CSF and LFD is even more simple, just copy & paste the following commands:
cd /etc/csf sh uninstall.sh
It was a complete tutorial under WHM Security for securing your linux server with Configserver Firewall & LSD.
1. First ensure that the klog demon is enabled. In msot cases, a VPS servers running RedHat/CentOS v5 have this disabled. you need to check /etc/init.d/syslog and make sure that any klogd lines are not commented out. If you change the file, remember to restart syslog.
2. Remove all other firewalls if you are installing CSF orelse they both will conflict. First uninstall the previously used firewall or iptable module then begin the installation process of CSF.
3. libwww not installed- if you see such a problem, you can install it with yum as
Yum Install libwww
Leave a commend if you need assistance on the same, we’ve an active community here to assist you on the same.