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 2
2
3
3
[Definition]
4
4
5
- failregex = ^INFO\s+ Failed login attempt\s+{\"password\":\"(\\.|[^"])*\", \"remoteAddress\":\"<HOST>\"
5
+ failregex = ^Failed login attempt\s+{\"remoteAddress\":\"<HOST>\"
6
6
7
7
# Use this instead for proxies (ensure the proxy is configured to send the
8
8
# X-Forwarded-For header).
9
- # failregex = ^INFO\s+ Failed login attempt\s+{\"password\":\"(\\.|[^"])*\", \"xForwardedFor\":\"<HOST>\"
9
+ # failregex = ^Failed login attempt\s+{\"xForwardedFor\":\"<HOST>\"
10
10
11
11
ignoreregex =
12
12
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).
30
30
## Fail2Ban
31
31
Fail2Ban allows for automatically banning and logging repeated failed
32
32
authentication 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
34
34
is installed and configured correctly, repeated failed login attempts should
35
35
automatically be banned from connecting to your server.
You can’t perform that action at this time.
0 commit comments