#!/bin/sh # 2024-04-23 02:39:28 TD IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 41.74.32.0/20 $IPSET add BLOCKLIST 102.131.56.0/22 $IPSET add BLOCKLIST 102.164.244.0/22 $IPSET add BLOCKLIST 102.177.88.0/22 $IPSET add BLOCKLIST 154.68.128.0/19 $IPSET add BLOCKLIST 154.73.112.0/22 $IPSET add BLOCKLIST 154.73.160.0/21 $IPSET add BLOCKLIST 169.239.120.0/22 $IPSET add BLOCKLIST 169.255.152.0/22 $IPSET add BLOCKLIST 196.223.42.0/24 $IPSET add BLOCKLIST 197.149.128.0/22 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP