forked from evolix/ansible-roles
fail2ban: add roundcube filter
This commit is contained in:
parent
8f7004c977
commit
206e2e8a0a
|
@ -3,3 +3,4 @@ general_alert_email: "root@localhost"
|
|||
fail2ban_alert_email: Null
|
||||
fail2ban_ignore_ips: []
|
||||
fail2ban_wordpress: False
|
||||
fail2ban_roundcube: False
|
||||
|
|
2
fail2ban/files/roundcube.conf
Normal file
2
fail2ban/files/roundcube.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Definition]
|
||||
failregex = Login failed for .*. from <HOST>
|
|
@ -32,6 +32,7 @@
|
|||
- sasl-evolix.conf
|
||||
- wordpress-soft.conf
|
||||
- wordpress-hard.conf
|
||||
- roundcube.conf
|
||||
notify: restart fail2ban
|
||||
tags:
|
||||
- fail2ban
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue