How to install csf firewall in centos ?


Dear all,

I want to maintain security   to my server   so , I have decided  to   install the csf   firewall .  How  to install the csf firewall.

Addisonjack Supporter Asked on April 26, 2017 in Technology.
Add Comment
2 Answer(s)

Dear   jack,

Yes, we can install config server firewall (csf) which is the best firewall used now.

1) Login into the server as a root user.

2) change the Directory

cd /usr/src

3) remove your old files
rm -fv csf.tgz

4) Download the files
wget https://download.configserver.com/csf.tgz

5) Extract the files
tar -xzf csf.tgz
6) cd csf
sh install.sh
7) using the editor change the following

vi /etc/csf/csf.conf

make allow 1 to 0

8) yes we whave completed installing the csf .

Commands used for csf .

csf -a IP [name]
csf -a <IP> [] (Allow IP)
csf -d <IP> [] (Deny IP)
csf -r (to restart the service)
csf -ar <IP> (for removing the IP)
csf -g <IP> (IP searching)
csf -x (disable the firwall)
csf -e (enable firewall)


Addisonjack Supporter Answered on April 26, 2017.
Add Comment

In case you’re hoping to up your security game with CentOS 7, you should need to consider installing Config Server Firewall (CSF). With this specific security package you get a firewall, as well as login/interruption discovery that will alarm you to any semblance of somebody endeavoring a ssh login or usage of the su order and in addition any failed login endeavor on a mail and different servers. For more info you can use this best essay writing service to having a wonderful assistant in writing tasks. Follow the steps for installation.

  1. Open a terminal window
  2. Change into the /tmp directory with the command cd /tmp
  3. Download the source with the command sudo wget 
  4. Unpack the file with the command sudo tar -xvzf cfs.tgz
  5. Change into the newly created directory with the command cd csf
  6. Install the software with the command sudo sh install.sh


Kennethjsherwood Train Answered on June 19, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.