Firewall security is very important on any server environment, it can ensure your server free from hacker or being compromise.
For us, it is always recommended that you install configserver firewall onto your cPanel server, following are step by step on how we install and setup config server firewall:
1. Login to your Server via SSH
2. Perform the following commands one by one:
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
3. Once these commands have been performed, log into WHM on your Server.
4. Locate the “Plugins” tier, which is at the bottom of the left hand menu and select ConfigServer Security & Firewall
5. Select Firewall Configuration
6. You must alter the option TESTING and change the 1 to a 0 and also change the MONOLITHIC KERNEL to a 1 in order for the firewall to start.
7. Once these changes have been made, scroll to the bottom, select Change and Restart once changes are saved.
That’s it! Your basic configuration of CSF is done, as simple as that!!
Do leave a comment if you have any issue, perhaps I can advise further.