Installing a firewall on your VPS is of vital importance. One of the most respected, and widely used Firewalls is ConfigServer Firewall. To install it on your cPanel/WHM server or VPS, simply do the following while in the command line under the username 'root':
cd /root
tar xzf csf.tgz
cd csf && ./
That's it. This will install ConfigServer on your cPanel/WHM server or VPS. It will now show up in your WHM panel under the plugins category, all the way to the bottom on the left hand side. You can then configure it if you would like, or leave it at the default levels it comes with. Remember to take it off of 'demo' mode, which is what it does by default when installing. To get it off of Demo mode, do the following:
Login to WHM. Click on the ConfigServer Security and Firewall option on the left hand side of WHM, all the way towards the bottom.Then select "Firewall Configuration". In the next screen, one of the first options towards the top will say "testing" and have a number 1 in the text-input box. Simply change that number to 0 and you should be good to go. 

If installing CSF on a system without a control panel, do all of the above steps and replace the last line with:
cd csf && ./

You may receive this error when trying to run CSF:

*WARNING* URLGET set to use LWP but perl module is not installed, reverting to HTTP::Tiny

Run the following to install perl dependencies so it runs correctly:

yum install perl-libwww-perl

Thats it!

Add to Favourites  Add to Favourites    Print this Article  Print this Article

Was this answer helpful?Yes