mirror of
https://github.com/coder/code-server.git
synced 2024-12-05 07:13:06 +08:00
16 lines
435 B
Plaintext
16 lines
435 B
Plaintext
|
# Fail2Ban filter for code-server
|
||
|
|
||
|
[Definition]
|
||
|
|
||
|
failregex = ^INFO\s+Failed login attempt\s+{\"password\":\"(\\.|[^"])*\",\"remoteAddress\":\"<HOST>\"
|
||
|
|
||
|
# Use this instead for proxies (ensure the proxy is configured to send the
|
||
|
# X-Forwarded-For header).
|
||
|
# failregex = ^INFO\s+Failed login attempt\s+{\"password\":\"(\\.|[^"])*\",\"xForwardedFor\":\"<HOST>\"
|
||
|
|
||
|
ignoreregex =
|
||
|
|
||
|
datepattern = "timestamp":{EPOCH}}$
|
||
|
|
||
|
# Author: Dean Sheather
|