From eabf91ace4b102b8c846966dad4d050242b1d7bb Mon Sep 17 00:00:00 2001 From: Andreas Brett Date: Mon, 3 Jul 2023 14:39:47 +0200 Subject: [PATCH] Updated Using Security Tools with Paperless ngx (markdown) --- Using-Security-Tools-with-Paperless-ngx.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Using-Security-Tools-with-Paperless-ngx.md b/Using-Security-Tools-with-Paperless-ngx.md index 876e847..e78c97b 100644 --- a/Using-Security-Tools-with-Paperless-ngx.md +++ b/Using-Security-Tools-with-Paperless-ngx.md @@ -56,7 +56,7 @@ labels: Create a new file named `paperless.conf` in the `/etc/fail2ban/filter.d/` directory. - Add the following contents to the file: + If you're using Paperless v1.14.0 to v1.16.5 add the following contents to the file: ``` [Definition] @@ -64,6 +64,14 @@ labels: ignoreregex = ``` + If you're using Paperless v1.16.6 or newer add the following contents to the file: + + ``` + [Definition] + failregex = Login failed for user `.*` from (?:IP|private IP) ``\.$ + ignoreregex = + ``` + 3. Restart fail2ban Now that the jail and filter files have been created, you need to restart fail2ban for the changes to take effect.