From e4a47e8a219f25fffebba6a9392a62225579d3e5 Mon Sep 17 00:00:00 2001 From: salem <77879189@qq.com> Date: Sun, 6 Sep 2026 19:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E9=98=B2=E7=81=AB?= =?UTF-8?q?=E5=A2=99.MD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 防火墙.MD | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/防火墙.MD b/防火墙.MD index 1cf927a..66b0f08 100644 --- a/防火墙.MD +++ b/防火墙.MD @@ -1,2 +1,9 @@ #### Debian12 封禁中国大陆 IP 访问 40000‑50000 端口 -说明:封禁大陆 IP 段,有两种主流方案:**iptables + ipset(性能好,推荐)**、直接 iptables 批量添加规则(IP 段多,规则膨胀,不推荐)。端口范围:TCP+UDP 40000‑50000。 \ No newline at end of file +说明:封禁大陆 IP 段,有两种主流方案:**iptables + ipset(性能好,推荐)**、直接 iptables 批量添加规则(IP 段多,规则膨胀,不推荐)。端口范围:TCP+UDP 40000‑50000。 + +#### 方案一:ipset + iptables(推荐,Debian12) +1. 安装依赖 +~~~ +apt update +apt install ipset curl -y +~~~ \ No newline at end of file