Skip to content

Instantly share code, notes, and snippets.

@tanerdogan
Created October 23, 2014 01:39
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 tanerdogan/dbef1fc2c5f0085de8e3 to your computer and use it in GitHub Desktop.
Save tanerdogan/dbef1fc2c5f0085de8e3 to your computer and use it in GitHub Desktop.
fail2ban nginx settings
[nginx-404]
enabled = true
port = http,https
filter = nginx-404
logpath = /var/log/nginx/access_log
maxretry = 10
findtime = 30
bantime = 7200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment