#!/bin/sh # 2024-04-23 02:32:58 GY IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 138.94.248.0/22 $IPSET add BLOCKLIST 168.232.144.0/22 $IPSET add BLOCKLIST 181.41.64.0/18 $IPSET add BLOCKLIST 181.177.216.0/22 $IPSET add BLOCKLIST 181.199.224.0/19 $IPSET add BLOCKLIST 190.80.0.0/17 $IPSET add BLOCKLIST 190.93.36.0/22 $IPSET add BLOCKLIST 190.105.156.0/22 $IPSET add BLOCKLIST 190.108.196.0/22 $IPSET add BLOCKLIST 190.108.200.0/21 $IPSET add BLOCKLIST 190.108.208.0/21 $IPSET add BLOCKLIST 190.124.220.0/22 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP