Linux - How to install csf, Config Server Security & Firewall

How to install csf

how to install csf

Installing and Uninstalling CSF in Linux.

CSF - Config Server Security & Firewall. It is an open source firewall for server. CSF is a software firewall, Software Firewall is a piece of software that is installed on your computer in order to protect it from unauthorized access.

Log into your server as root user and do the following steps to install.
 # wget
wget command is used to download the latest csf installtion file from the given website link.
 # tar -xzf csf.tgz

tar command is used to extract the downloaded csf tar file.
 # cd csf
cd command is used to change from your current working directory. The above command will get you inside the extracted csf folder.
 # sh

To perform installation checks
 # perl /usr/local/csf/bin/

perl command is used to run the perl scripts. The above command used to test whether the required iptables firewall modules has been installed correctly.
 # sh /usr/local/csf/bin/

we can have only one iptable firewall in our server. The above script will remove apf and bfd iptables firewall modules from our server.
 # csf -e


 # csf --enable

After installing CSF, it can be enabled by using above method. Use anyone of above commands to enable csf.
  # vim /etc/csf/csf.conf
First time the csf will start only in TESTING mode. Open the csf configuration file and change the TESTING variable value from 1 to 0.

To Disable CSF
 # csf -x


 # csf --disable

Uninstalling csf
There is an uninstall script available to uninstall the CSF very easy and simple. change your working directory where uninstallation script is available.
 # cd /etc/csf

 # sh
The above script will uninstall CSF completelly from your system.

The topic on Linux - How to install csf is posted by - Guru

Hope you have enjoyed, Linux - How to install csfThanks for your time

Tech Bluff