1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Created Fail2Ban Setup (markdown)

Dielee 2020-02-14 13:20:42 +01:00
parent 55b503669e
commit 5ab4f754fc

31
Fail2Ban-Setup.md Normal file

@ -0,0 +1,31 @@
To use Fail2Ban with radicale change Logging to `INFO`
Configs for fail2ban
filter:
```
[INCLUDES]
before = common.conf
[Definition]
failregex = ^.*\sfor\s\'\/\'\sreceived\sfrom\s\'<HOST>\'.*\n^^.*Failed\slogin\sattempt:\s
ignoreregex =
[Init]
maxlines = 4
```
jail:
```
[radicale]
enabled = true
port = 80,443
filter = radicale
action = iptables-allports[name=radicale]
logpath = /var/log/remotelogs/192.168.50.115/radicale-logins.log
maxretry = 2
bantime = -1
ignoreip = 192.168.50.0/24
findtime = 14400
```