fix(traefik): stop fail2ban banning legit traffic on stray 4xx

statuscode "400,401,403-499" counted almost every client error as a
brute-force strike, so normal 404s/400s from routine app behavior could
rack up 5 hits in 10 minutes and trip a 3h ban (returned as 429) for real
users. Narrow to 401/403 (actual auth failures) and raise maxretry to 15
so it still catches real brute-forcing without false-positiving on noise.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-19 18:44:20 +02:00
co-authored by Claude Sonnet 5
parent f151cd9aae
commit 00cc3583ec
+2 -2
View File
@@ -10,6 +10,6 @@ http:
rules: rules:
bantime: "3h" bantime: "3h"
findtime: "10m" findtime: "10m"
maxretry: 5 maxretry: 15
enabled: true enabled: true
statuscode: "400,401,403-499" statuscode: "401,403"