How to install firewall using ConfigServer Firewall (CSF) on CentOS CPanel server

  StradSolutions

ConfigServer firewall is a popular linux firewall security Package. It is easy to install, flexible to configure and secure with extra checks. CSF helps to control exactly what traffic is allowed in and out of the server and protect the server from malicious attack.

Login to your server via ssh and start CSF installation by retrieving the package files using wget command:

# wget http://configserver.com/free/csf.tgz

Unpack the archive:

# tar xfz csf.tgz

Go to the uncomperssed csf directory:

# cd csf

Run the installer:

# sh install.sh

It will create configuration file and add all required CPanel services to allow list.  Disable testing mode by editing main CSF configuration file. Open the file using any editor (vi, nano, etc):

# vi /etc/csf/csf.conf

and change

TESTING = “1”

to

TESTING = “0”

When done, restart CSF:

# csf -r

CSF is installed and ready. you can simply manage it via cPanel WHM interface WHM > Config Security & Firewall

LEAVE A COMMENT