LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Fail2Ban and GitLab (https://www.linuxquestions.org/questions/linux-security-4/fail2ban-and-gitlab-4175734571/)

Jason.nix 03-05-2024 12:44 AM

Fail2Ban and GitLab
 
Hello,
GitLab uses Nginx and PostgreSQL internally. I want to protect Nginx with Fail2Ban. The GitLab log directory contains the following files:
Code:

# ls /var/log/gitlab/nginx/
access.log  config  current  error.log        gitlab_access.log  gitlab_access.log.1.gz  gitlab_error.log  lock

The Fail2Ban configuration looks like this:
Code:

[nginx-http-auth]

enabled = true
port    = http,https
logpath = /var/log/gitlab/nginx/*error.log
findtime = 600
bantime = 7200
maxretry = 3

Is it OK?

Thank you.

adolphcross 03-20-2024 03:32 PM

looks good. does it not work? if your question is only if this "looks ok", yes it does ;)

Jason.nix 03-25-2024 03:33 AM

Quote:

Originally Posted by adolphcross (Post 6490871)
looks good. does it not work? if your question is only if this "looks ok", yes it does ;)

Hello,
Thank you so much for your reply.
Do you have an idea to test it?


All times are GMT -5. The time now is 12:51 PM.