diff --git a/config/filter.d/sshd.conf b/config/filter.d/sshd.conf index aa01c85a..d6f39bc5 100644 --- a/config/filter.d/sshd.conf +++ b/config/filter.d/sshd.conf @@ -40,7 +40,7 @@ cmnfailre = ^[aA]uthentication (?:failure|error|failed) for .* ^User not known to the underlying authentication module for .* from %(__suff)s$ ^Failed publickey for invalid user (?P\S+)|(?:(?! from ).)*? from %(__on_port_opt)s(?: ssh\d*)?(?(cond_user): |(?:(?:(?! from ).)*)$) ^Failed \b(?!publickey)\S+ for (?Pinvalid user )?(?P\S+)|(?(cond_inv)(?:(?! from ).)*?|[^:]+) from %(__on_port_opt)s(?: ssh\d*)?(?(cond_user): |(?:(?:(?! from ).)*)$) - ^ROOT LOGIN REFUSED FROM %(__suff)s$ + ^ROOT LOGIN REFUSED FROM ^[iI](?:llegal|nvalid) user .*? from %(__suff)s$ ^User .+ from not allowed because not listed in AllowUsers%(__suff)s$ ^User .+ from not allowed because listed in DenyUsers%(__suff)s$ @@ -52,9 +52,9 @@ cmnfailre = ^[aA]uthentication (?:failure|error|failed) for .* ^%(__pam_auth)s\(sshd:auth\):\s+authentication failure;(?:\s+(?:(?:logname|e?uid|tty)=\S*)){0,4}\s+ruser=\S*\s+rhost=(?:\s+user=\S*)?%(__suff)s$ ^(error: )?maximum authentication attempts exceeded for .* from %(__on_port_opt)s(?: ssh\d*)?%(__suff)s$ ^User .+ not allowed because account is locked%(__suff)s - ^Disconnecting: Too many authentication failures(?: for .+?)?%(__suff)s + ^Disconnecting: Too many authentication failures(?: for .+?)?%(__suff)s$ ^Received disconnect from %(__on_port_opt)s:\s*11: - ^Connection closed by %(__suff)s$ + ^Connection closed by ^Accepted \w+ for \S+ from (?:\s|$) mdre-normal =