mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #438 from YunoHost/emaged-fail2ban-conf-was-broken-wtf
[fix] [critical] Fail2ban conf/filter was not matching failed login attempts...
This commit is contained in:
commit
a80f7471bd
2 changed files with 4 additions and 3 deletions
|
@ -581,5 +581,6 @@ enabled = true
|
||||||
port = http,https
|
port = http,https
|
||||||
protocol = tcp
|
protocol = tcp
|
||||||
filter = yunohost
|
filter = yunohost
|
||||||
logpath = /var/log/nginx*/*error.log
|
logpath = /var/log/nginx/*error.log
|
||||||
|
/var/log/nginx/*access.log
|
||||||
maxretry = 6
|
maxretry = 6
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
|
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
|
||||||
# Values: TEXT
|
# Values: TEXT
|
||||||
#
|
#
|
||||||
failregex = helpers.lua:[1-9]+: authenticate\(\): Connection failed for: .*, client: <HOST>
|
failregex = helpers.lua:[0-9]+: authenticate\(\): Connection failed for: .*, client: <HOST>
|
||||||
^<HOST> -.*\"POST /yunohost/api/login HTTP/1.1\" 401 22
|
^<HOST> -.*\"POST /yunohost/api/login HTTP/1.1\" 401
|
||||||
|
|
||||||
# Option: ignoreregex
|
# Option: ignoreregex
|
||||||
# Notes.: regex to ignore. If this regex matches, the line is ignored.
|
# Notes.: regex to ignore. If this regex matches, the line is ignored.
|
||||||
|
|
Loading…
Add table
Reference in a new issue