From 876a44a7bbb4f7918dc1b03f2b40f384f309636e Mon Sep 17 00:00:00 2001 From: Etienne Stalmans Date: Tue, 27 Jan 2026 17:17:03 +0100 Subject: [PATCH] feat: add more fail2ban matches --- ansible/files/fail2ban_config/filter-pgbouncer.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/files/fail2ban_config/filter-pgbouncer.conf.j2 b/ansible/files/fail2ban_config/filter-pgbouncer.conf.j2 index 3a3a52ec6..24418cb3a 100644 --- a/ansible/files/fail2ban_config/filter-pgbouncer.conf.j2 +++ b/ansible/files/fail2ban_config/filter-pgbouncer.conf.j2 @@ -1,3 +1,8 @@ +[Init] +maxlines = 3 + [Definition] failregex = ^.+@:.+password authentication failed$ + ^.+@:.+pooler error: no such user$ + ^.+@:.+registered new auto-database.*\n.*\n.*server login failed: FATAL database ".+" does not exist.*$ journalmatch = _SYSTEMD_UNIT=pgbouncer.service