Fail2ban on V4?


Hey guys!
I would like to know if this tutorial

is still valid for v4 and will act for all docker containers at the nginx proxy level or do I need to do anything else at the container level?


limit_req_zone in nginx.conf helps


Yes, you can set up this to work. You will need to set it up to use the proxy-nginx container log files.

For my server protection, I use a multi-level approach.

  • CloudFlare for my DDOS protection.
  • Hardware Firewalls to stop all traffic/ports I never want to get to my server.
  • Server Firewall/Fail2ban to protect the open ports.

I like offloading areas of potential brute force attacks off the server. This prevents any potential of my server being overloaded.