Fail2Ban and Nginx

  • Posted on January 24, 2014
  • sgrengerAsked by sgrenger

Hello there!!

After some reading about Fail2Ban application, i’ve noticed that it was mainly developed for using Apache logs.

Also, here at the DO articles i see that it seems that fail2ban works properly with nginx.

I can’t asure this, so i would like your opinions =)

I have Nginx and Fail2ban installed, should i do any additional configuration for it to work well?

Or am i all wrong and should leave fail2ban as it is? xD

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You will need to edit fail2ban’s config file and point the appropriate directive to nginx’s access log file.