#!/bin/sh # 2024-04-23 02:29:40 BQ IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 138.185.208.0/22 $IPSET add BLOCKLIST 143.0.32.0/22 $IPSET add BLOCKLIST 161.0.80.0/20 $IPSET add BLOCKLIST 186.159.96.0/20 $IPSET add BLOCKLIST 190.4.64.0/20 $IPSET add BLOCKLIST 190.97.112.0/21 $IPSET add BLOCKLIST 190.107.248.0/21 $IPSET add BLOCKLIST 190.123.16.0/22 $IPSET add BLOCKLIST 200.6.144.0/21 $IPSET add BLOCKLIST 200.71.248.0/21 $IPSET add BLOCKLIST 200.107.84.0/22 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP