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