Update fail2ban configuration

Fixes #1177.
This commit is contained in:
Asher 2019-11-14 11:14:27 -06:00
parent 0add01d383
commit 938c6ef829
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
2 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
[Definition] [Definition]
failregex = ^INFO\s+Failed login attempt\s+{\"password\":\"(\\.|[^"])*\",\"remoteAddress\":\"<HOST>\" failregex = ^Failed login attempt\s+{\"remoteAddress\":\"<HOST>\"
# Use this instead for proxies (ensure the proxy is configured to send the # Use this instead for proxies (ensure the proxy is configured to send the
# X-Forwarded-For header). # X-Forwarded-For header).
# failregex = ^INFO\s+Failed login attempt\s+{\"password\":\"(\\.|[^"])*\",\"xForwardedFor\":\"<HOST>\" # failregex = ^Failed login attempt\s+{\"xForwardedFor\":\"<HOST>\"
ignoreregex = ignoreregex =

View File

@ -30,6 +30,6 @@ accessible from the internet (use localhost or block it in your firewall).
## Fail2Ban ## Fail2Ban
Fail2Ban allows for automatically banning and logging repeated failed Fail2Ban allows for automatically banning and logging repeated failed
authentication attempts for many applications through regex filters. A working authentication attempts for many applications through regex filters. A working
filter for code-server can be found in `./code-server.fail2ban.conf`. Once this filter for code-server can be found in `./examples/fail2ban.conf`. Once this
is installed and configured correctly, repeated failed login attempts should is installed and configured correctly, repeated failed login attempts should
automatically be banned from connecting to your server. automatically be banned from connecting to your server.