Comments on How to Install and Configure CSF (Config Server Firewall) on CentOS 7

Config Server Firewall / CSF is firewall application suite for Linux servers. CSF is also a Login/Intrusion Detection for applications like SSH, SMTP, IMAP, Pop3, the "su" command and many more. This tutorial will show the installation of CSF on CentOS 7 and guide you trough the first steps to use this powerful application suite.

8 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Peter

Hello,

I am having problem w csf.

When I flush default rules, they are being added autmaticly after ~10-30 minutes.

I want only to use this firewall for blacklist/whitelist IP and countries.

How to configure it propetly to use it only for this functions?

 

Thanks for any help :)

By: davidseaman

How to block a range of IP from one country?

By: Morteza Ghasempour

at "2. Flush/Stop the firewall rules", the command should be csf -r, not csf -f.

By: robert syputa

Very nice and concise tutorial. I suggest that questions about specific configuration be asked on CSF specific support site.  This blog explains the setup and core settings to get a clean start.  

By: VIVEKSHARMA

Please correct below :-

sh install .sh   = sh install.sh ( .sh without space )

3. Reload the firewall rules.

csf -f  Correction is : csf -r 

Thanks

By: till

Thank you for the notice. I've corrected the tutorial.

By: amir

thanks

By: megan

tnx very nice