summaryrefslogtreecommitdiff
path: root/fail2ban
diff options
context:
space:
mode:
authorsebres <serg.brester@sebres.de>2022-02-09 12:18:23 +0100
committersebres <serg.brester@sebres.de>2022-02-09 12:18:23 +0100
commit498e473a10ee56aa6345b03cd3bf83e017df966c (patch)
treea7c1aa78b72e1539c1549a2d1817655244373713 /fail2ban
parent8013cf0b900f2cacfdc1c9152c9b9847bfc41877 (diff)
downloadfail2ban-498e473a10ee56aa6345b03cd3bf83e017df966c.tar.gz
filter.d/courier-auth.conf: consider optional port after IP, regex is rewritten without catch-all's and right anchor, so it is more stable against further modifications now;
closes #3211
Diffstat (limited to 'fail2ban')
-rw-r--r--fail2ban/tests/files/logs/courier-auth2
1 files changed, 2 insertions, 0 deletions
diff --git a/fail2ban/tests/files/logs/courier-auth b/fail2ban/tests/files/logs/courier-auth
index 3505e109..8a20a27f 100644
--- a/fail2ban/tests/files/logs/courier-auth
+++ b/fail2ban/tests/files/logs/courier-auth
@@ -8,3 +8,5 @@ Nov 13 08:11:53 server imapd-ssl: LOGIN FAILED, user=user@domain.tld, ip=[::ffff
Apr 17 19:17:11 SERVER courierpop3login: LOGIN FAILED, user=USER@EXAMPLE.org, ip=[::ffff:1.2.3.4]
# failJSON: { "time": "2005-04-17T19:17:12", "match": true , "host": "192.0.2.4" }
Apr 17 19:17:12 server imapd-ssl: LOGIN FAILED, method=PLAIN, ip=[::ffff:192.0.2.4]
+# failJSON: { "time": "2005-04-27T09:00:00", "match": true , "user": "tester", "host": "192.0.2.5" }
+Apr 27 09:00:00 servername imapd: LOGIN FAILED, user=tester, ip=[::ffff:192.0.2.5], port=[255]