From 2310d35eebcd33f24342827fd1233afe23411bae Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 13 Apr 2021 21:50:19 +0200 Subject: [PATCH] improve fail2ban filter based on https://blog.gitea.io/2021/04/gitea-1.14.0-is-released/ thanks to @firesoft-de for mention it! --- templates/fail2ban/filter.conf.j2 | 2 +- vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/fail2ban/filter.conf.j2 b/templates/fail2ban/filter.conf.j2 index 6fd9eee..b6b408e 100644 --- a/templates/fail2ban/filter.conf.j2 +++ b/templates/fail2ban/filter.conf.j2 @@ -1,4 +1,4 @@ # Managed by Ansible [Definition] -failregex = .*Failed authentication attempt for .* from +failregex = .*(Failed authentication attempt|invalid credentials|Attempted access of unknown user).* from ignoreregex = diff --git a/vars/main.yml b/vars/main.yml index c38f978..b655764 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -20,5 +20,5 @@ gitea_variables: paths: - 'vars' -playbook_version_number: 9 # should be int +playbook_version_number: 10 # should be int playbook_version_path: 'do1jlr.gitea.version'