#!/bin/sh # 2024-04-23 02:35:58 MP IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 45.117.196.0/22 $IPSET add BLOCKLIST 103.1.96.0/22 $IPSET add BLOCKLIST 103.57.232.0/22 $IPSET add BLOCKLIST 202.88.64.0/19 $IPSET add BLOCKLIST 210.23.80.0/20 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP