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