Skip to content

Commit 187f9c7

Browse files
authored
update
1 parent f78a8ee commit 187f9c7

File tree

2 files changed

+967
-15
lines changed

2 files changed

+967
-15
lines changed

fail2ban/data/filter.d/wordpress-xmlrpc.conf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ failregex =
44
^\S+ -.*"(?:GET|POST) /xmlrpc\.php HTTP.*" (?:403|405|406|200).*"(?:.*,\s*)?<HOST>"$
55

66
# Trường hợp không dùng Cloudflare: Lọc cả mã lỗi và 200 OK
7-
^<HOST> -.*"(?:GET|POST) /xmlrpc\.php HTTP.*" (?:403|405|406|200).*"-"$
7+
^<HOST> -.*"(?:GET|POST) /xmlrpc\.php HTTP.*" (?:403|405|406|200).*"-"$
8+
9+
# Cho phép các địa chỉ của Jetpack
10+
ignoreip = 122.248.245.244/32
11+
54.217.201.243/32
12+
54.232.116.4/32
13+
192.0.80.0/20
14+
192.0.96.0/20
15+
192.0.112.0/20
16+
195.234.108.0/22
17+
192.0.64.0/18

0 commit comments

Comments
 (0)