#!/bin/sh # 2024-04-23 02:38:25 SB IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 103.2.88.0/22 $IPSET add BLOCKLIST 103.9.50.0/24 $IPSET add BLOCKLIST 103.21.230.0/23 $IPSET add BLOCKLIST 103.21.248.0/22 $IPSET add BLOCKLIST 103.115.80.0/23 $IPSET add BLOCKLIST 103.140.178.0/23 $IPSET add BLOCKLIST 103.142.98.0/23 $IPSET add BLOCKLIST 202.1.160.0/19 $IPSET add BLOCKLIST 202.63.254.0/23 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP