I just configured fail2ban via Plesk and afterwards I checked the jail.local file in /etc/fail2ban/.
It seems like this file is not created correctly by Plesk. Or do I misunderstand something?
Here is the relevant content:
What I'm missing compared to my configuration in Plesk:
- bantime of recidive was set to 604800, but not in the jail.local
- horde should be enabled=false or removed, because I do not have this jail in my list as Horde is not installed (it was for 5 minutes, then I switched to Roundcube)
- plesk-apache-badbot was set to 1 retry, jail.local does not contain line, so I guess the default of 3 will be the value
- Not critical: plesk-postfix has the same maxretry as the default value, shouldn't this value be omitted then?
Is this a bug or is everything working normally, because the information in the jail.local is not the complete configuration?
It seems like this file is not created correctly by Plesk. Or do I misunderstand something?
Here is the relevant content:
Code:
[DEFAULT]
ignoreip = 127.0.0.1/8 ::1
maxretry = 3
destemail = mail@example.com
findtime = 600
bantime = 86400
[recidive]
enabled = true
maxretry = 5
[plesk-proftpd]
enabled = true
maxretry = 10
action = iptables-allports[name=plesk-proftpd]
[plesk-postfix]
enabled = true
maxretry = 3
action = iptables-allports[name=plesk-postfix]
[plesk-horde]
enabled = true
[plesk-apache-badbot]
enabled = true
bantime = 604800
action = iptables-allports[name=plesk-apache-badbot]
[plesk-wordpress]
enabled = false
[plesk-roundcube]
enabled = true
action = iptables-allports[name=plesk-roundcube]
sendmail[dest="root", sender="fail2ban", sendername="Fail2Ban", name="default"]
What I'm missing compared to my configuration in Plesk:
- bantime of recidive was set to 604800, but not in the jail.local
- horde should be enabled=false or removed, because I do not have this jail in my list as Horde is not installed (it was for 5 minutes, then I switched to Roundcube)
- plesk-apache-badbot was set to 1 retry, jail.local does not contain line, so I guess the default of 3 will be the value
- Not critical: plesk-postfix has the same maxretry as the default value, shouldn't this value be omitted then?
Is this a bug or is everything working normally, because the information in the jail.local is not the complete configuration?