mirror of https://github.com/fail2ban/fail2ban
* Fix a potential race condition (Closes: #935778)
* Cherry-pick upstream fix for courier-auth (Closes: #1004466)debian
parent
937fc1eafb
commit
edc2918176
|
@ -2,6 +2,8 @@ fail2ban (0.11.2-6) unstable; urgency=medium
|
||||||
|
|
||||||
* Cherry-pick upstream fix to fix a startup issue with Python 3.10
|
* Cherry-pick upstream fix to fix a startup issue with Python 3.10
|
||||||
(LP: #1958505)
|
(LP: #1958505)
|
||||||
|
* Fix a potential race condition (Closes: #935778)
|
||||||
|
* Cherry-pick upstream fix for courier-auth (Closes: #1004466)
|
||||||
|
|
||||||
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 10 Mar 2022 22:52:59 +0100
|
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 10 Mar 2022 22:52:59 +0100
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
diff --git a/config/filter.d/courier-auth.conf b/config/filter.d/courier-auth.conf
|
||||||
|
index 1ac33736a..d5ba9c505 100644
|
||||||
|
--- a/config/filter.d/courier-auth.conf
|
||||||
|
+++ b/config/filter.d/courier-auth.conf
|
||||||
|
@@ -11,7 +11,7 @@ before = common.conf
|
||||||
|
|
||||||
|
_daemon = (?:courier)?(?:imapd?|pop3d?)(?:login)?(?:-ssl)?
|
||||||
|
|
||||||
|
-failregex = ^%(__prefix_line)sLOGIN FAILED, (?:user|method)=.*, ip=\[<HOST>\]$
|
||||||
|
+failregex = ^%(__prefix_line)sLOGIN FAILED, (?:(?!ip=)(?:user=<F-USER>[^,]*</F-USER>|\w+=[^,]*), )*ip=\[<HOST>\]
|
||||||
|
|
||||||
|
ignoreregex =
|
||||||
|
|
||||||
|
diff --git a/fail2ban/tests/files/logs/courier-auth b/fail2ban/tests/files/logs/courier-auth
|
||||||
|
index 3505e1092..8a20a27fb 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]
|
|
@ -0,0 +1,9 @@
|
||||||
|
Index: fail2ban/files/fail2ban.service.in
|
||||||
|
===================================================================
|
||||||
|
--- fail2ban.orig/files/fail2ban.service.in
|
||||||
|
+++ fail2ban/files/fail2ban.service.in
|
||||||
|
@@ -20,3 +20,4 @@ Environment="PYTHONNOUSERSITE=yes"
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
+WantedBy=logrotate.service
|
|
@ -11,3 +11,5 @@ systemd-run.diff
|
||||||
scanlogd.patch
|
scanlogd.patch
|
||||||
997601-use_2to3.diff
|
997601-use_2to3.diff
|
||||||
python3.10.diff
|
python3.10.diff
|
||||||
|
fix-race.diff
|
||||||
|
courier-auth.diff
|
||||||
|
|
Loading…
Reference in New Issue