Rajib Sharia 2025-06-17 15:23:20 -04:00 committed by GitHub
commit 5d13c65c98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 0 deletions

View 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 =

View File

@ -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

View 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`.