Skip to content

Commit

Permalink
fail2ban: fix regex for NC18
Browse files Browse the repository at this point in the history
  • Loading branch information
Haraade authored Feb 12, 2020
1 parent 0c538ae commit c0cee6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/ncp/SECURITY/fail2ban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ configure()
before = common.conf
[Definition]
failregex = Login failed.*Remote IP.*<HOST>
_groupsre = (?:(?:,?\s*"\w+":(?:"[^"]+"|\w+))*)
failregex = ^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Login failed:
datepattern = ,?\s*"time"\s*:\s*"%%Y-%%m-%%d[T ]%%H:%%M:%%S(%%z)?"
ignoreregex =
EOF

Expand Down

0 comments on commit c0cee6b

Please sign in to comment.