mirror of
https://github.com/kejilion/sh.git
synced 2025-08-17 20:41:11 +08:00
fail2ban防火墙规则
This commit is contained in:
parent
4b40cf11c0
commit
3f061ea5b3
2 changed files with 43 additions and 0 deletions
38
nginx.local
Normal file
38
nginx.local
Normal 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
5
sshd.local
Normal file
|
@ -0,0 +1,5 @@
|
|||
[sshd]
|
||||
|
||||
enabled = true
|
||||
mode = normal
|
||||
backend = systemd
|
Loading…
Add table
Add a link
Reference in a new issue