Linux - How to install csf, Config Server Security & Firewall
How to install csfhow 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 http://www.configserver.com/free/csf.tgzwget 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 csfcd command is used to change from your current working directory. The above command will get you inside the extracted csf folder.
# sh install.sh
To perform installation checks
# perl /usr/local/csf/bin/csftest.pl
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/remove_apf_bfd.sh
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 (or) # csf --enableAfter installing CSF, it can be enabled by using above method. Use anyone of above commands to enable csf.
# vim /etc/csf/csf.confFirst 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 (or) # csf --disable
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 uninstall.shThe 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