CSF (Installing and Uninstlling) - Part1

by Jagadesh 2014-07-20 17:59:19

Installing and Uninstalling CSF in Linux.

Software Firewall is a piece of software that is installed on your computer in order to protect it from unauthorized access.

CSF - Config Server Security & Firewall. It is an open source firewall for server.


Log into your server as root user and do the following steps to install.

-> rm -fv csf.tgz

To remove csf tar file if you have downloaded any old csf installation file in the current directory.

->pwd

pwd is used to check your present working directory

-> wget http://www.configserver.com/free/csf.tgz

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 install.sh

sh command is used to run your shell script file. The above command will run install.sh script file. It will install the csf.

-> 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 --enable

After we installed the CSF, we have to enable it. use anyone of the above commands to enable the 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.

->csf -x

(or)

->csf --disable

use anyone of the above commands to disable csf

Uninstalling csf:

There is an uninstall script available to uninstall the CSF very easy and simple.

->cd /etc/csf

change your working directory where uninstallation script is available.

->sh uninstall.sh

The above script will uninstall CSF completelly from your system.

577
like
0
dislike
0
mail
flag

You must LOGIN to add comments