LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-05-2024, 12:44 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 563

Rep: Reputation: 10
Post 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.

Last edited by Jason.nix; 03-05-2024 at 04:00 AM.
 
Old 03-20-2024, 03:32 PM   #2
adolphcross
LQ Newbie
 
Registered: Mar 2024
Posts: 2

Rep: Reputation: 0
looks good. does it not work? if your question is only if this "looks ok", yes it does
 
Old 03-25-2024, 03:33 AM   #3
Jason.nix
Member
 
Registered: Feb 2023
Posts: 563

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by adolphcross View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW? - Create a new gitlab-repo in gitlab from CLI Basher52 Linux - Software 1 11-04-2022 03:23 PM
LXer: Google's Seven Principles for AI, Psychopathic AI, GitLab Ultimate and Gold Free for Education and Open Source and More LXer Syndicated Linux News 0 06-08-2018 10:56 PM
LXer: Install GitLab on a CentOS Linux VPS with Nginx and MySQL LXer Syndicated Linux News 0 11-30-2014 12:27 AM
LXer: GitLab 4.1 adds sign-up pages and public repositories LXer Syndicated Linux News 0 01-23-2013 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration