未验证 提交 938c6ef8 编写于 作者: A Asher

Update fail2ban configuration

Fixes #1177.
上级 0add01d3
...@@ -2,11 +2,11 @@ ...@@ -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 =
......
...@@ -30,6 +30,6 @@ accessible from the internet (use localhost or block it in your firewall). ...@@ -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.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册