summaryrefslogtreecommitdiff
path: root/config/filter.d/gitlab.conf
diff options
context:
space:
mode:
authorSergey G. Brester <serg.brester@sebres.de>2023-03-23 12:01:50 +0100
committerGitHub <noreply@github.com>2023-03-23 12:01:50 +0100
commit2c0360d1788d6569c6274ac690799d2a92c459df (patch)
treece0742af14e84f84ba8cf4c500d8ea9b75e175b2 /config/filter.d/gitlab.conf
parent7e88ae0ee66628893a283d6fed06a347f9f6673e (diff)
parentd1d1730de01de45820db062d811d9b91f261ea83 (diff)
downloadfail2ban-2c0360d1788d6569c6274ac690799d2a92c459df.tar.gz
Merge branch 'master' into nginx-forbidden
Diffstat (limited to 'config/filter.d/gitlab.conf')
-rw-r--r--config/filter.d/gitlab.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/filter.d/gitlab.conf b/config/filter.d/gitlab.conf
new file mode 100644
index 00000000..0c614ae5
--- /dev/null
+++ b/config/filter.d/gitlab.conf
@@ -0,0 +1,6 @@
+# Fail2Ban filter for Gitlab
+# Detecting unauthorized access to the Gitlab Web portal
+# typically logged in /var/log/gitlab/gitlab-rails/application.log
+
+[Definition]
+failregex = ^: Failed Login: username=<F-USER>.+</F-USER> ip=<HOST>$