Skip to content

Instantly share code, notes, and snippets.

@pgib
Created April 3, 2013 16:08
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 pgib/5302594 to your computer and use it in GitHub Desktop.
Save pgib/5302594 to your computer and use it in GitHub Desktop.
Simple fail2ban filter for use with https://gist.github.com/pgib/5302582
[Definition]
# Option: failregex
# Notes.: regex to match the password failures messages in the logfile. The
# host must be matched by a group named "host". The tag "<HOST>" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
# Values: TEXT
#
failregex = has requested that (<HOST>) be banned$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment