#!/bin/sh # 2024-04-16 02:41:06 WS IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 43.241.164.0/22 $IPSET add BLOCKLIST 103.9.228.0/22 $IPSET add BLOCKLIST 103.63.27.0/24 $IPSET add BLOCKLIST 103.131.62.0/23 $IPSET add BLOCKLIST 110.5.112.0/22 $IPSET add BLOCKLIST 123.176.72.0/21 $IPSET add BLOCKLIST 182.50.72.0/22 $IPSET add BLOCKLIST 182.50.168.0/22 $IPSET add BLOCKLIST 202.4.32.0/19 $IPSET add BLOCKLIST 202.87.208.0/22 $IPSET add BLOCKLIST 203.99.156.0/22 $IPSET add BLOCKLIST 203.99.255.0/24 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP