[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-09-15 21:13:37
This commit is contained in:
parent
b8ad73f47c
commit
f433996f69
|
|
@ -0,0 +1,7 @@
|
|||
# /etc/fail2ban/filter.d/nginx-json-gitea.conf
|
||||
[Definition]
|
||||
# Regra 1: Deteta múltiplas requisições POST para a página de login.
|
||||
failregex = ^.*"remote_addr":"<HOST>".*"method":"POST".*"uri":"/user/login".*$
|
||||
# Regra 2: Deteta erros 404.
|
||||
^.*"remote_addr":"<HOST>".*"status":404,.*$
|
||||
ignoreregex =
|
||||
|
|
@ -45,3 +45,12 @@ banaction = %(banaction_allports)s
|
|||
bantime = 1w
|
||||
findtime = 1d
|
||||
maxretry = 3
|
||||
|
||||
[gitea]
|
||||
enabled = true
|
||||
port = http,https
|
||||
filter = nginx-json-gitea
|
||||
logpath = /var/log/nginx/access.log
|
||||
maxretry = 5
|
||||
findtime = 5m
|
||||
bantime = 1h
|
||||
|
|
|
|||
Loading…
Reference in New Issue