mirror of
https://github.com/deunix-educ/Fail2banMqttActionBanishment.git
synced 2026-08-24 03:11:58 +02:00
77 lines
1.3 KiB
INI
77 lines
1.3 KiB
INI
[nginx-http-auth]
|
|
enabled = true
|
|
backend = auto
|
|
port = http,https
|
|
logpath = /var/log/nginx/*error.log
|
|
|
|
[nginx-req-limit]
|
|
enabled = true
|
|
backend = auto
|
|
filter = nginx-limit-req
|
|
port = http,https
|
|
logpath = /var/log/nginx/*error.log
|
|
findtime = 30s
|
|
maxretry = 5
|
|
bantime = 10m
|
|
|
|
[nginx-botsearch]
|
|
enabled = true
|
|
backend = auto
|
|
port = http,https
|
|
logpath = /var/log/nginx/*error.log
|
|
|
|
[nginx-noscript]
|
|
enabled = true
|
|
backend = auto
|
|
port = http,https
|
|
logpath = /var/log/nginx/*access.log
|
|
maxretry = 3
|
|
findtime = 5m
|
|
bantime = 15m
|
|
|
|
[nginx-unauthorized]
|
|
enabled = true
|
|
backend = auto
|
|
port = http,https
|
|
logpath = /var/log/nginx/*access.log
|
|
maxretry = 3
|
|
findtime = 5m
|
|
bantime = 15m
|
|
|
|
[nginx-badbots]
|
|
enabled = true
|
|
backend = auto
|
|
port = http,https
|
|
logpath = /var/log/nginx/*access.log
|
|
maxretry = 1
|
|
findtime = 1h
|
|
bantime = 24h
|
|
|
|
[nginx-nohome]
|
|
enabled = true
|
|
backend = auto
|
|
port = http,https
|
|
logpath = /var/log/nginx/*access.log
|
|
maxretry = 5
|
|
findtime = 5m
|
|
bantime = 15m
|
|
|
|
[nginx-noproxy]
|
|
enabled = true
|
|
backend = auto
|
|
port = http,https
|
|
logpath = /var/log/nginx/*access.log
|
|
maxretry = 3
|
|
findtime = 5m
|
|
bantime = 15m
|
|
|
|
# Activer si trop de 404/403 en dehors des autres filtres
|
|
[nginx-4xx]
|
|
enabled = false
|
|
backend = auto
|
|
port = http,https
|
|
logpath = /var/log/nginx/*.log
|
|
maxretry = 10
|
|
findtime = 5m
|
|
bantime = 15m
|