#!/bin/sh # 2024-04-23 02:37:05 NR IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 43.230.6.0/24 $IPSET add BLOCKLIST 103.20.124.0/24 $IPSET add BLOCKLIST 103.49.173.0/24 $IPSET add BLOCKLIST 103.49.174.0/23 $IPSET add BLOCKLIST 103.121.24.0/23 $IPSET add BLOCKLIST 203.98.224.0/19 $IPSET add BLOCKLIST 203.190.216.0/24 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP