J'ai check un peu tout ça, mais c'est pour une image docker qui fait tourner fail2ban, et non un fail2ban sur l'hôte avec un docker revers proxy
Bon et sinon, après maintes modifs et autres tests, j'ai pas plus avancé... voici mon fail2ban-regex:
fail2ban-regex /docker/data/nginx/log/nginx_error.log /etc/fail2ban/filter.d/nginx-http-auth.conf
Running tests
=============
Use failregex filter file : nginx-http-auth, basedir: /etc/fail2ban
Use log file : /docker/data/nginx/log/nginx_error.log
Use encoding : UTF-8
Results
=======
Failregex: 196 total
|- #) [# of hits] regular expression
| 1) [196] ^ \[error\] \d+#\d+: \*\d+ user "\S+":? (password mismatch|was not found in ".*"), client: <HOST>, server: \S*, request: "\S+ \S+ HTTP/\d+\.\d+", host: "\S+"(, referrer: "\S+")?\s*$
`-
Ignoreregex: 0 total
Date template hits:
|- [# of hits] date format
| [241] Year(?P<_sep>[-/.])Month(?P=_sep)Day 24hour:Minute:Second(?:,Microseconds)?
`-
Lines: 241 lines, 0 ignored, 196 matched, 45 missed
[processed in 0.02 sec]