mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Updated Using Security Tools with Paperless ngx (markdown)
parent
aad6fbdd24
commit
eabf91ace4
@ -56,7 +56,7 @@ labels:
|
|||||||
|
|
||||||
Create a new file named `paperless.conf` in the `/etc/fail2ban/filter.d/` directory.
|
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]
|
[Definition]
|
||||||
@ -64,6 +64,14 @@ labels:
|
|||||||
ignoreregex =
|
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) `<HOST>`\.$
|
||||||
|
ignoreregex =
|
||||||
|
```
|
||||||
|
|
||||||
3. Restart fail2ban
|
3. Restart fail2ban
|
||||||
|
|
||||||
Now that the jail and filter files have been created, you need to restart fail2ban for the changes to take effect.
|
Now that the jail and filter files have been created, you need to restart fail2ban for the changes to take effect.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user