fail2ban: add roundcube filter

This commit is contained in:
Victor LABORIE 2017-10-25 12:12:18 +02:00
parent 8f7004c977
commit 206e2e8a0a
4 changed files with 13 additions and 0 deletions

View File

@ -3,3 +3,4 @@ general_alert_email: "root@localhost"
fail2ban_alert_email: Null
fail2ban_ignore_ips: []
fail2ban_wordpress: False
fail2ban_roundcube: False

View File

@ -0,0 +1,2 @@
[Definition]
failregex = Login failed for .*. from <HOST>

View File

@ -32,6 +32,7 @@
- sasl-evolix.conf
- wordpress-soft.conf
- wordpress-hard.conf
- roundcube.conf
notify: restart fail2ban
tags:
- fail2ban

View File

@ -44,3 +44,12 @@ logpath = /var/log/auth.log
maxretry = 5
findtime = 300
{% endif %}
{% if fail2ban_roundcube %}
[roundcube]
enabled = true
port = http,https
filter = roundcube
logpath = /var/lib/roundcube/logs/errors
maxretry = 5
{% endif %}