#!/bin/sh # 2024-04-16 02:32:40 GQ IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 41.79.48.0/22 $IPSET add BLOCKLIST 41.222.112.0/21 $IPSET add BLOCKLIST 102.141.216.0/22 $IPSET add BLOCKLIST 102.164.248.0/21 $IPSET add BLOCKLIST 105.235.224.0/20 $IPSET add BLOCKLIST 154.73.56.0/22 $IPSET add BLOCKLIST 164.160.84.0/22 $IPSET add BLOCKLIST 169.239.112.0/22 $IPSET add BLOCKLIST 196.251.240.0/22 $IPSET add BLOCKLIST 197.149.168.0/22 $IPSET add BLOCKLIST 197.214.64.0/20 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP