systemctl ipblock

This commit is contained in:
nnduc
2026-05-30 13:53:21 +07:00
parent 387241d1f3
commit f3082296d8
2 changed files with 24 additions and 11 deletions

View File

@@ -9,9 +9,6 @@ SOURCES=(
"https://raw.githubusercontent.com/mayaxcn/china-ip-list/master/chnroute.txt"
)
echo "[*] Killing Steam..."
pkill -9 -f steam || true
echo "[*] Downloading CN IP ranges..."
for url in "${SOURCES[@]}"; do
echo " Trying $url ..."
@@ -46,8 +43,8 @@ iptables -t raw -A OUTPUT -m set --match-set "$IPSET_NAME" dst -j DROP
CIDR6_FILE="/tmp/cn6.cidr"
SOURCES6=(
"https://raw.githubusercontent.com/herrbischoff/country-ip-blocks/master/ipv6/cn.cidr"
"https://www.ipdeny.com/ipv6/ipaddresses/blocks/cn.cidr"
"https://raw.githubusercontent.com/gaoyifan/china-operator-ip/ip-lists/china6.txt"
"https://raw.githubusercontent.com/ipverse/rir-ip/master/country/cn/ipv6-aggregated.txt"
)
echo "[*] Downloading CN IPv6 ranges..."