systemctl ipblock
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user