Skip to content

GitLab and Fail2Ban #3688

Closed Answered by sebres
hack3rcon asked this question in Q&A
Discussion options

You must be logged in to vote

Is the following Fail2Ban configuration OK?

It depends...

If it is the log of gitlab location only (and nginx has also other locations or server/host sections, writing to default logpath), it'd be rather something like this:

logpath = %(known/logpath)s
          /var/log/gitlab/nginx/*error.log

%(known/logpath)s is normally /var/log/nginx/*error.log (depending on distro etc).
Also it'd imply that the format of log by auth-failures from gitlab is the same than default nginx-error-log matching with nginx-http-auth filter (and it is written from nginx and not from gitlab self), otherwise you'd need different filter (and logpath), see #3566 (comment) for an example.
I don't think gitlab use…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants