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

5) Extract the files
tar -xzf csf.tgz
6) cd csf
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

Your Answer

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