Skip to content

Instantly share code, notes, and snippets.

@ckhung
Last active April 15, 2016 01:33
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 ckhung/ecda8a81e5ee4e725c68edea51241ec2 to your computer and use it in GitHub Desktop.
Save ckhung/ecda8a81e5ee4e725c68edea51241ec2 to your computer and use it in GitHub Desktop.
filter to catch repeated offenders from /var/log/fail2ban.log
# Fail2Ban configuration file
#
# Author: Chao-Kuei Hung
#
# $Revision: 1 $
#
# 詳見: 「fail2ban: 新手老手 root 網管都要練的金鐘罩」
# http://newtoypia.blogspot.tw/2016/04/fail2ban.html
[Definition]
# Option: failregex
# Notes.: Regexp to catch repeated offenders from /var/log/fail2ban.log
# Values: TEXT
#
failregex = \[apache-deepurls\]\s+[Bb]an\s+<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