nextcloud: Sichere Instanze mit fail2ban ab
This commit is contained in:
parent
2480af061b
commit
68eb272cc2
5 changed files with 37 additions and 0 deletions
5
files/fail2ban/filter.conf
Normal file
5
files/fail2ban/filter.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Definition]
|
||||
_groupsre = (?:(?:,?\s*"\w+":(?:"[^"]+"|\w+))*)
|
||||
failregex = ^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Login failed:
|
||||
^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Trusted domain error.
|
||||
datepattern = ,?\s*"time"\s*:\s*"%%Y-%%m-%%d[T ]%%H:%%M:%%S(%%z)?"
|
Loading…
Add table
Add a link
Reference in a new issue