How to Install Config Server Firewall (CSF) For cPanel/Whm?

You should have basic knowledge on accessing SSH to proceed any further. Read the PuTTY Setup And SSH Access article for assistance in setting up PuTTY / SSH access.

Follow the instructions provided to install ConfigServer on your WHM/cPanel based server.

  1. Login to SSH.
  2. If you have any other iptables based firewalls, uninstall them now, otherwise you may have software conflictions.
  3. Make sure you’re in the top directory. Type cd in the console and press Enter.
  4. Issue Command: rm -fv csf.tgz. Press Enter.
  5. Issue Command: wget http://www.configserver.com/free/csf.tgz. Press Enter.
  6. Issue Command: tar -xzf csf.tgz. Press Enter.
  7. Issue Command: cd csf. Press Enter.
  8. Issue Command: sh install.sh. Press Enter.
  9. Issue Command: perl /etc/csf/csftest.pl to test if you have necessary iptables modules to run ConfigServer. Press Enter.

ConfigServer is now installed. Let’s see if WHM recognizes ConfigServer.

  1. Navigate via browser to your WHM control panel. If you’re already on the page, refresh the page.
  2. Scroll down to the very bottom in the vertical navigation menu.
  3. You should see ConfigServer Security&Firewall. This means ConfigServer is installed on your server.

Congratulations! ConfigServer is successfully setup and you can start systematically blocking malicious attackers / abusers. By default, the IP that has installed ConfigServer is added to the white list. You can configure ConfigServer as necessary.

kbadmin has written 149 articles

Loading Facebook Comments ...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.