#!/bin/sh # 2024-04-23 02:35:38 MH IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 103.202.148.0/22 $IPSET add BLOCKLIST 117.103.88.0/21 $IPSET add BLOCKLIST 203.78.152.0/22 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP