mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Merge 9321af0513 into ef65652671
This commit is contained in:
commit
dac42e62a6
3 changed files with 18 additions and 0 deletions
9
config/filter.d/paperless-ngx.conf
Normal file
9
config/filter.d/paperless-ngx.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Fail2Ban filter for unsuccessful paperless-ngx authentication attempts
|
||||
# Logged in /var/log/paperless.log
|
||||
|
||||
# Author: LearningSpot
|
||||
|
||||
[Definition]
|
||||
|
||||
failregex = ^\s*(?:\[\]\s*)?\[INFO\] \[paperless\.auth\] Login failed for user `<F-USER>\S+</F-USER>` from (private )?IP `<ADDR>`\.$
|
||||
ignoreregex =
|
||||
|
|
@ -995,3 +995,7 @@ logpath = /var/log/daemon.log
|
|||
[vaultwarden]
|
||||
port = http,https
|
||||
logpath = /var/log/vaultwarden.log
|
||||
|
||||
[paperless-ngx]
|
||||
port = http,https,8000
|
||||
logpath = /var/log/paperless.log
|
||||
|
|
|
|||
5
fail2ban/tests/files/logs/paperless-ngx
Normal file
5
fail2ban/tests/files/logs/paperless-ngx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# failJSON: { "time": "2024-08-30T16:26:55", "match": true , "host": "80.187.85.94" }
|
||||
[2024-08-30 16:26:55,139] [INFO] [paperless.auth] Login failed for user `testuser` from private IP `80.187.85.94`.
|
||||
|
||||
# failJSON: { "time": "2024-08-30T17:44:54", "match": true , "host": "2001:db8::b6d3:95d7:1425:766d" }
|
||||
[2024-08-30 17:44:54,874] [INFO] [paperless.auth] Login failed for user `test6pub` from IP `2001:db8::b6d3:95d7:1425:766d`.
|
||||
Loading…
Reference in a new issue