• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Fail2ban and Firewalld

Nadeem Aslam

New Pleskian
Hi

On my server I'm running firewalld on centos7 after which I installed plesk

I have now installed Fail2ban and also did the plesk firewall which I found to just be iptables and not firewalld so I uninstalled that

I want to know if the plesk Fail2ban will be aware of firewalld and will be able to ban ip's successfully

I have made all changes in options in plesk I need for Fail2ban

As I'm a bit of novice I don't want to think I'm protected by Fail2ban and when it comes to crunch it actually fails

I prefer firewalld over iptables - just seems easier for a novice like me

Thanks
 
digging deeper and looking at the jail for apache say i see it's set with

action = iptables-multiport[name=apache, port="http,https,7080,7081"]

which means it will use iptables - which i'm not running so can i just amend that to the action required for firewalld

There must be someone else with similar configuration
 
I think you are a bit confused. Firewalld is just a newer management interface for managing iptables. It still sends all its commands to iptables. My suggestion is to re-install the Plesk firewall and use it in conjunction with fail2ban. Firewalld is more suited to workstations anyway.
 
Back
Top