My version : Self managed 13.9.3 .
Hello, I’m trying to setup fail2ban on the gitlab docker container .
I try to setup normal sshd filter, but it seems not so easy .
So I found this : Gitlab sshd Docker - Found a match for... but no valid date/time found · Issue #2618 · fail2ban/fail2ban · GitHub
And try to setup my jail like that
[gitlab] enabled = true filter = sshd banaction = %(banaction_allports)s logpath = /var/lib/docker/volumes/gitlab_gitlab_logs/_data/sshd/current maxretry = 3 bantime = 14400 findtime = 14400 datepattern = ^%%Y-%%m-%%d_%%H:%%M:%%S(?:\.%%f)?
Maybe someone already succeed to setup fail2ban ?