Skip to content

Commit 3f061ea

Browse files
authored
fail2ban防火墙规则
1 parent 4b40cf1 commit 3f061ea

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

nginx.local

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[nginx-http-auth]
2+
3+
enabled = true
4+
mode = fallback
5+
port = http,https
6+
logpath = /home/web/log/nginx/access.log
7+
8+
9+
10+
[nginx-limit-req]
11+
12+
enabled = true
13+
port = http,https
14+
logpath = /home/web/log/nginx/access.log
15+
16+
17+
18+
[nginx-botsearch]
19+
20+
enabled = true
21+
port = http,https
22+
logpath = /home/web/log/nginx/access.log
23+
24+
25+
26+
[nginx-bad-request]
27+
28+
enabled = true
29+
port = http,https
30+
logpath = /home/web/log/nginx/access.log
31+
32+
33+
34+
[php-url-fopen]
35+
36+
enabled = true
37+
port = http,https
38+
logpath = /home/web/log/nginx/access.log

sshd.local

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[sshd]
2+
3+
enabled = true
4+
mode = normal
5+
backend = systemd

0 commit comments

Comments
 (0)