Skip to content

Instantly share code, notes, and snippets.

@dileep57
Last active May 29, 2021 10:35
Show Gist options
  • Save dileep57/4ff566df1dba88bb6cd3d64e309ba5fc to your computer and use it in GitHub Desktop.
Save dileep57/4ff566df1dba88bb6cd3d64e309ba5fc to your computer and use it in GitHub Desktop.
Fail2ban Jail Config
[nginx-level-banip]
enabled = true
filter = auth-reverse-pxy
port = http,https
action = authentication-action[name=serverAuthApis, port="http,https"]
sendmail-whois[name=serverAuthApis, dest=email@gmail.com]
logpath = /home/ec2-user/fail2ban/access.log
maxretry = 20
findtime = 60
bantime = 1800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment