2019-07-24 04:38:00 +08:00
|
|
|
# Fail2Ban filter for code-server
|
|
|
|
|
|
|
|
[Definition]
|
|
|
|
|
2019-11-15 01:14:27 +08:00
|
|
|
failregex = ^Failed login attempt\s+{\"remoteAddress\":\"<HOST>\"
|
2019-07-24 04:38:00 +08:00
|
|
|
|
|
|
|
# Use this instead for proxies (ensure the proxy is configured to send the
|
|
|
|
# X-Forwarded-For header).
|
2019-11-15 01:14:27 +08:00
|
|
|
# failregex = ^Failed login attempt\s+{\"xForwardedFor\":\"<HOST>\"
|
2019-07-24 04:38:00 +08:00
|
|
|
|
|
|
|
ignoreregex =
|
|
|
|
|
|
|
|
datepattern = "timestamp":{EPOCH}}$
|
|
|
|
|
|
|
|
# Author: Dean Sheather
|