Skip to content

Instantly share code, notes, and snippets.

@luiseok
Created August 15, 2017 00:56
Show Gist options
  • Save luiseok/31d1a4dfc475b167aebe14bf067aefe1 to your computer and use it in GitHub Desktop.
Save luiseok/31d1a4dfc475b167aebe14bf067aefe1 to your computer and use it in GitHub Desktop.
jail.local separated file
#
# File Path : fail2ban/jail.local
#
# Please modify the port and logpath that you configured.
#
[mongo-auth]
enabled = true
filter = mongo-auth
logpath = /var/log/mongodb/mongod.log
maxretry = 3
port = 27017
banaction = iptables-multiport[name="mongo", port="27017"]
bantime = 86400
findtine = 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment