summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey G. Brester <serg.brester@sebres.de>2022-11-18 12:31:11 +0100
committerGitHub <noreply@github.com>2022-11-18 12:31:11 +0100
commit996553f33015547fd2872564bc212ed974b87620 (patch)
tree898c0e9b3c6d7ba3eefe7a263685568838af2466
parentdf91b047d2104e0dd26636d2cea33b480538c919 (diff)
downloadfail2ban-996553f33015547fd2872564bc212ed974b87620.tar.gz
review, simplify regex and capture user name
-rw-r--r--config/filter.d/dante.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/filter.d/dante.conf b/config/filter.d/dante.conf
index d95f96b4..986f1946 100644
--- a/config/filter.d/dante.conf
+++ b/config/filter.d/dante.conf
@@ -9,7 +9,7 @@ before = common.conf
[Definition]
_daemon = danted
-failregex = ^%(__prefix_line)sinfo: block\(1\): tcp/accept \]: <HOST>\.\d+ [\d.]+: error after reading \d+ bytes? in \d+ seconds?: (could not access user "\w+"'s records in the system password file: no system error|system password authentication failed for user "\w+")$
+failregex = ^%(__prefix_line)sinfo: block\(1\): tcp/accept \]: <HOST>\.\d+ [\d.]+: error after reading \d+ bytes? in \d+ seconds?: (could not access |system password authentication failed for )user "<F-USER>[^"]+</F-USER>"
[Init]
journalmatch = _SYSTEMD_UNIT=danted.service