fail2ban防火墙规则

This commit is contained in:
kejilion 2023-09-25 10:17:47 +08:00 committed by GitHub
parent 4b40cf11c0
commit 3f061ea5b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

38
nginx.local Normal file
View file

@ -0,0 +1,38 @@
[nginx-http-auth]
enabled = true
mode = fallback
port = http,https
logpath = /home/web/log/nginx/access.log
[nginx-limit-req]
enabled = true
port = http,https
logpath = /home/web/log/nginx/access.log
[nginx-botsearch]
enabled = true
port = http,https
logpath = /home/web/log/nginx/access.log
[nginx-bad-request]
enabled = true
port = http,https
logpath = /home/web/log/nginx/access.log
[php-url-fopen]
enabled = true
port = http,https
logpath = /home/web/log/nginx/access.log

5
sshd.local Normal file
View file

@ -0,0 +1,5 @@
[sshd]
enabled = true
mode = normal
backend = systemd