Skip to content

Instantly share code, notes, and snippets.

@johnutzm
Last active December 30, 2015 08:29
Show Gist options
  • Select an option

  • Save johnutzm/7802470 to your computer and use it in GitHub Desktop.

Select an option

Save johnutzm/7802470 to your computer and use it in GitHub Desktop.
jail.local
[Definition]
failregex = <HOST> - - \[.*\] "(GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT).*HTTP.* 4|50.
ignoreregex =
[DEFAULT]
action = %(action_mwl)s
[ssh]
enabled = true
port = 22
filter = sshd
logpath = /var/log/auth.log
maxretry = 2
[postfix]
enabled = true
port = smtp,ssmtp
filter = postfix
logpath = /var/log/mail.log
maxretry = 1
[nginx-40x]
enabled = true
port = 80
filter = nginx-40x
logpath = /var/log/nginx/access.log
bantime = 1500
findtime = 1500
maxretry = 1
#[nginx-40x-repeated]
#
#enabled = true
#port = 80
#filter = nginx-40x
#logpath = /var/log/nginx/access.log
#bantime = 864000
#findtime = 86400
#maxretry = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment