CSF stands for ConfigServer Security is a open source firewall for your server Cpanel/WHM that provide you the best security. Compaitble with the linux servers.
With CSF you may block/restrict the ports which you not want to open. CSF also have the LFD (Login Failure Daemon) which monitor the failed login attempt of the users and block the concern ip’s on specific wrong attempts.
Cpanel is fully functional and compaitible with Cpanel , Direct Admin and free panels like Webmin/VirtualMin,
To begin the installation of CSF firewall , Login to SSH as user “root” using Putty and enter the following commands,
tar -xzf csf.tgz
That’s it. You have successfully installed the CSF on your server. Now just login to your WHM as root user and in the left side at the bottom you would see “ConfigServer Security&Firewall” option. Open it.
For better performance of CSF select the “medium” option and save it.
After instllation complete.
Now do the following steps.
Configure the TCP_IN, TCP_OUT, UDP_IN and UDP_OUT options in the csf configuration for better performance in your server.
than Restart csf and lfd
When you finally decided that CSF is working fine Set TESTING to 0 .
Some errors may accrued while installation of CSF like,
You need to install the LWP perl module
Run following command to install perl and try again.
now you have finally installed the CSF on your server.