How to Install CSF Firewall on Centos

To increase your security in centos you can install csf firewall on your linux VPS server.
To install csf on your server do below steps.


1. Make sure perl modules are installed

yum install -y perl-libwww-perl

2. Download, unpack, install of APF from source

cd /usr/local/src
tar -zxvf csf.tgz
cd csf

3. Cleanup source install files

rm -Rf /usr/local/src/csf* && cd

4. Backup orginal CSF config

cp /etc/csf/csf.conf /etc/csf/csf.conf.bak

5. Edit current CSF config

nano -w /etc/csf/csf.conf

how to install csf firewall on centos