Skip to content

Instantly share code, notes, and snippets.

@dileep57
dileep57 / jail.local
Last active May 29, 2021 10:35
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