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_alert_email: Null
|
||||||
fail2ban_ignore_ips: []
|
fail2ban_ignore_ips: []
|
||||||
fail2ban_wordpress: False
|
fail2ban_wordpress: False
|
||||||
|
fail2ban_roundcube: False
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Definition]
|
||||||
|
failregex = Login failed for .*. from <HOST>
|
|
@ -32,6 +32,7 @@
|
||||||
- sasl-evolix.conf
|
- sasl-evolix.conf
|
||||||
- wordpress-soft.conf
|
- wordpress-soft.conf
|
||||||
- wordpress-hard.conf
|
- wordpress-hard.conf
|
||||||
|
- roundcube.conf
|
||||||
notify: restart fail2ban
|
notify: restart fail2ban
|
||||||
tags:
|
tags:
|
||||||
- fail2ban
|
- fail2ban
|
||||||
|
|
|
@ -44,3 +44,12 @@ logpath = /var/log/auth.log
|
||||||
maxretry = 5
|
maxretry = 5
|
||||||
findtime = 300
|
findtime = 300
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if fail2ban_roundcube %}
|
||||||
|
[roundcube]
|
||||||
|
enabled = true
|
||||||
|
port = http,https
|
||||||
|
filter = roundcube
|
||||||
|
logpath = /var/lib/roundcube/logs/errors
|
||||||
|
maxretry = 5
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue