更新 防火墙.MD
This commit is contained in:
@@ -1,2 +1,9 @@
|
|||||||
#### Debian12 封禁中国大陆 IP 访问 40000‑50000 端口
|
#### Debian12 封禁中国大陆 IP 访问 40000‑50000 端口
|
||||||
说明:封禁大陆 IP 段,有两种主流方案:**iptables + ipset(性能好,推荐)**、直接 iptables 批量添加规则(IP 段多,规则膨胀,不推荐)。端口范围:TCP+UDP 40000‑50000。
|
说明:封禁大陆 IP 段,有两种主流方案:**iptables + ipset(性能好,推荐)**、直接 iptables 批量添加规则(IP 段多,规则膨胀,不推荐)。端口范围:TCP+UDP 40000‑50000。
|
||||||
|
|
||||||
|
#### 方案一:ipset + iptables(推荐,Debian12)
|
||||||
|
1. 安装依赖
|
||||||
|
~~~
|
||||||
|
apt update
|
||||||
|
apt install ipset curl -y
|
||||||
|
~~~
|
||||||
Reference in New Issue
Block a user