Which protections can I use on the server

pg flag

I have read about server protection and I know how to work with fewalld protection because it is not demanding.

My question is: Which of the following protections is best for the server and which of the offered ones can be used together on the server :

  1. Firewalld
  2. Fail2ban
  3. Mod_security
  4. Mod_Evasive
  5. Selinux

Thank you!

francois P avatar
in flag
to be honest the minimum hardening of a server already needs all of them + advanced ssh/ssl/pgp keys setup.
Edgar avatar
pg flag
Thank you for the reply! Ok so I can install firewalld also with Mod_security and there will be no problem (because that is two firewalls on the server)?
cn flag

All the products / tools you list have a different focus and target different threats/aspects of system security. One is not intrinsically better than the other.

The use of one does also not exclude the usage of any of the others. You can use them in concert to create a limited form of defense in depth.

The only thing missing from your list is arguably the most important, especially on systems directly connected to the internet:

  • regularly apply all relevant security updates and bug fixes
Edgar avatar
pg flag
Bob, thank you for the answer. I understand, so there is no conflict running the services with firewalld and mod_security. Thank you. For the regularly security updated , that is something that I do manually .

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.