add timestamp to auth log, add fail2ban conf+docs

This commit is contained in:
Dean Sheather
2019-07-09 10:57:09 +10:00
parent 14d917179c
commit c48a275d33
3 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
# Fail2Ban filter for code-server
#
#
[Definition]
failregex = ^INFO\s+Failed login attempt\s+{\"password\":\"(\\.|[^"])*\",\"remote_address\":\"<HOST>\"
ignoreregex =
datepattern = "timestamp":{EPOCH}}$
# Author: Dean Sheather