Browsing this Thread:   1 Anonymous Users






fail2ban nginx
#1
Just can't stay away
Just can't stay away


See User information

## /etc/fail2ban/filter.d/nginx-bad-req.conf

# fail2ban filter configuration for nginx


[Definition]

failregex = ^<HOST> .* "(GET|POST|HEAD).*HTTP.*" 500 .*$



### /etc/fail2ban/jail.local

[nginx-bad-req]
enabled true
port 
http,https
filter 
nginx-bad-req
logpath 
= %(nginx_access_log)s
maxretry 
10
findtime 
60
bantime 
3600
ignoreip 
127.0.0.1


Posted on: 2023/2/27 13:04
Top








friend links
Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories
Xoops (11)
--Modules (2)
--Themes (0)
Article (8)