From 0141a7500f30c9f5c178a4e66a4a4fd9d4f018d0 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Fri, 10 Feb 2023 11:10:14 +0100 Subject: [PATCH] Fix the regexps --- docs/faq.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index c73304b0..684cde68 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -566,7 +566,7 @@ follow these steps: # Fail2Ban configuration file [Definition] - failregex = .* client login failed: .+ client:\ + failregex = ^\[info\] \d+#\d+: \*\d+ client login failed: "[\"]+" while in http auth state, client: , server: ignoreregex = journalmatch = CONTAINER_TAG=mailu-front @@ -600,7 +600,7 @@ The above will block flagged IPs for a week, you can of course change it to your # Fail2Ban configuration file [Definition] - failregex = .* Login failed for .+ from . + failregex = : Login failed for .*? from \.$ ignoreregex = journalmatch = CONTAINER_TAG=mailu-admin @@ -625,7 +625,7 @@ The above will block flagged IPs for a week, you can of course change it to your # Fail2Ban configuration file [Definition] - failregex = .* Invalid API token provided by . + failregex = Invalid API token provided by \.$ ignoreregex = journalmatch = CONTAINER_TAG=mailu-admin