add filters and jails

This commit is contained in:
Kovasky Buezo
2024-03-21 15:00:05 -04:00
parent cfba8ee2b8
commit 74d4679c93
7 changed files with 66 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
[INCLUDES]
before = common.conf
[Definition]
failregex = ^.*Unsuccessful (1FA|TOTP|Duo|U2F) authentication attempt by user .*remote_ip="?<HOST>"? stack.*
(?i)^.*access to .*is not authorized.*remote_ip=<HOST>
^.* is banned until .*remote_ip=<HOST> stack.*
ignoreregex = ^.*level=debug.*
^.*level=info.*
^.*level=warning.*
+7
View File
@@ -0,0 +1,7 @@
[INCLUDES]
before = common.conf
[Definition]
failregex = .*(Failed authentication attempt|invalid credentials|Attempted access of unknown user).* from <HOST>
+7
View File
@@ -0,0 +1,7 @@
[INCLUDES]
before = common.conf
[Definition]
failregex=^{"reqId":".*","remoteAddr":"<HOST>".*message":"Login failed: .*}$
+5
View File
@@ -0,0 +1,5 @@
[authelia-auth]
enabled = false
port = http,https,9091
logpath = /remotelogs/authelia/authelia.log
+5
View File
@@ -0,0 +1,5 @@
[gitea-auth]
enabled = false
port = http,https
logpath = /remotelogs/gitea/gitea/log/gitea.log
+24
View File
@@ -0,0 +1,24 @@
[DEFAULT]
ignoreip = 10.0.0.0/8, 192.168.0.0/16, 127.0.0.1, 172.0.0.0/8
action = cloudflare
[authelia-auth]
filter=authelia-auth
enabled = yes
findtime = 3600
maxretry = 3
bantime = -1
[nextcloud-auth]
filter=nextcloud-auth
enabled = yes
findtime = 3600
maxretry = 3
bantime = -1
[gitea-auth]
filter=gitea-auth
#enabled = yes
findtime = 3600
maxretry = 3
bantime = -1
+5
View File
@@ -0,0 +1,5 @@
[nextcloud-auth]
enabled = false
port = http,https
logpath = /remotelogs/nextcloud/data/nextcloud.log