Skip to content

Commit

Permalink
Tune the order of ban rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
iredmail committed Oct 26, 2023
1 parent 21b8e8e commit 465aae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/fail2ban/filter.d/roundcube.iredmail.conf
@@ -1,9 +1,9 @@
# 'X-Forwarded-For:` appears when Roundcube is running behind HAProxy.

[Definition]
failregex = roundcube.* Failed login for (.*) from <HOST>\. AUTHENTICATE LOGIN
failregex = roundcube.* Failed login .*\(X-Forwarded-For: <HOST>\) in session
roundcube.* Failed login for (.*) from <HOST>\. AUTHENTICATE LOGIN
roundcube.* Failed login for (.*) from <HOST> in session
roundcube.* Failed login .*\(X-Forwarded-For: <HOST>\) in session
roundcube.* Error: Login failed for (.*) from <HOST>\. (LOGIN: Authentication failed|AUTHENTICATE LOGIN)

ignoreregex =

0 comments on commit 465aae7

Please sign in to comment.