#!/bin/sh # 2024-04-16 02:39:19 TC IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 65.255.48.0/20 $IPSET add BLOCKLIST 142.54.204.0/22 $IPSET add BLOCKLIST 192.203.37.0/24 $IPSET add BLOCKLIST 199.103.28.0/22 $IPSET add BLOCKLIST 199.182.192.0/22 $IPSET add BLOCKLIST 204.13.104.0/22 $IPSET add BLOCKLIST 204.110.56.0/21 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP