#!/bin/sh # 2024-04-23 02:39:15 SX IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 131.161.84.0/22 $IPSET add BLOCKLIST 168.0.84.0/22 $IPSET add BLOCKLIST 168.197.108.0/22 $IPSET add BLOCKLIST 170.0.16.0/22 $IPSET add BLOCKLIST 190.102.0.0/19 $IPSET add BLOCKLIST 190.124.216.0/22 $IPSET add BLOCKLIST 190.185.64.0/19 $IPSET add BLOCKLIST 200.0.22.0/23 $IPSET add BLOCKLIST 200.7.32.0/19 $IPSET add BLOCKLIST 201.220.0.0/20 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP