Skip to content

Instantly share code, notes, and snippets.

@jsonUK
Created February 13, 2018 11:19
Show Gist options
  • Save jsonUK/a3e02b0019637a4a781841d5d35d19be to your computer and use it in GitHub Desktop.
Save jsonUK/a3e02b0019637a4a781841d5d35d19be to your computer and use it in GitHub Desktop.
MMonit Fail2ban
# Fail2Ban configuration file for M/Monit ( mmonit )
# Author: eXtremeSHOK.com
# $Revision: 101 $
[Definition]
# Option: failregex
# Notes.: regex to match the password failure messages in the logfile. The
# host must be matched by a group named "host". The tag "" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?PS+)
# Values: TEXT
#
failregex = .*Unauthorized, authentication failed for \[<HOST>\].*
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment