Config Server Firewall (CSF) & Login Failure Demon (LFD)
A user friendly replacement for apf and bfd, plugs straight into WHM allowing easy access, configuration and modification. Especially good for people who are unsure on how to use the command line as this is only used for installation.
It has its own install guide but this is a basic step by step guide to make it easier for people who don't understand exactly what they are doing with the exact commands to run in SSH, so you can just copy and paste from here.
Step 1 - Download the file to your server:
PHP Code:
wget http://www.configserver.com/free/csf.tgz
Step 2 - Untar the file
PHP Code:
tar -xzf csf.tgz
Step 3 - Change to the csf directory and execute the install file:
PHP Code:
cd csf
sh install.sh
Step 4 - If you are already running APF/BFD you need to disable them as they both conflict:
PHP Code:
sh disable_apf_bfd.sh
Step 5 - Removing the install files:
PHP Code:
cd ../
rm -fv csf.tgz
rm -Rfv csf
And your done, all it needs now is a bit of configuration. The programs come preconfigured for all the default cpanel server ports and also configures automatically for your ssh port. However as some people may run different ports for example smtp on 26, this is how you change it.
Allowing Port 26 Access
Log in to WHM and scroll right to the bottom, in the addons menu you will see ConfigServer Security & Firewall. When selected you are presented with the following screen:
Choose Firewall Configuration, locate TCP_IN & TCP_OUT add ,26 in the field, then scroll to the bottom of the page and save configuration, it will ask you to restart the firewall and you are done. Now test it to make sure its working.
For extended information the readme provided by config servers is very very detailed and efficient it is worth a read, this was aimed at a basic tutorial:
http://www.configserver.com/free/csf/readme.txt
Along with the original installation documentation:
http://www.configserver.com/free/csf/install.txt
For more information see there site:
http://www.configserver.com/cp/csf.html