#!/bin/sh # 2024-04-23 02:30:48 CV IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 41.74.128.0/20 $IPSET add BLOCKLIST 41.79.124.0/22 $IPSET add BLOCKLIST 41.215.208.0/20 $IPSET add BLOCKLIST 41.221.192.0/20 $IPSET add BLOCKLIST 102.69.151.0/24 $IPSET add BLOCKLIST 165.90.96.0/19 $IPSET add BLOCKLIST 169.239.12.0/22 $IPSET add BLOCKLIST 197.255.128.0/20 $IPSET add BLOCKLIST 213.150.192.0/21 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP