Skip to content

Instantly share code, notes, and snippets.

@kyoushuu
Created February 19, 2020 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyoushuu/00c0cb5b0d6e18f0c083d13cd29bab5a to your computer and use it in GitHub Desktop.
Save kyoushuu/00c0cb5b0d6e18f0c083d13cd29bab5a to your computer and use it in GitHub Desktop.
# Save as /etc/fail2ban/filter.d/sshd.local
[Definition]
failregex = %(known/failregex)s
%(__prefix_line)sConnection closed by authenticating user <F-USER>.+</F-USER> <HOST> port \d+ \[preauth\]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment