File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33[Definition]
44
5- failregex = ^INFO\s+ Failed login attempt\s+{\"password\":\"(\\.|[^"])*\", \"remoteAddress\":\"<HOST>\"
5+ failregex = ^Failed login attempt\s+{\"remoteAddress\":\"<HOST>\"
66
77# Use this instead for proxies (ensure the proxy is configured to send the
88# X-Forwarded-For header).
9- # failregex = ^INFO\s+ Failed login attempt\s+{\"password\":\"(\\.|[^"])*\", \"xForwardedFor\":\"<HOST>\"
9+ # failregex = ^Failed login attempt\s+{\"xForwardedFor\":\"<HOST>\"
1010
1111ignoreregex =
1212
Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ accessible from the internet (use localhost or block it in your firewall).
3030## Fail2Ban
3131Fail2Ban allows for automatically banning and logging repeated failed
3232authentication attempts for many applications through regex filters. A working
33- filter for code-server can be found in ` ./code-server. fail2ban.conf ` . Once this
33+ filter for code-server can be found in ` ./examples/ fail2ban.conf ` . Once this
3434is installed and configured correctly, repeated failed login attempts should
3535automatically be banned from connecting to your server.
You can’t perform that action at this time.
0 commit comments