#!/bin/sh # 2024-04-23 02:36:41 NE IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 41.78.116.0/22 $IPSET add BLOCKLIST 41.138.32.0/19 $IPSET add BLOCKLIST 41.190.228.0/22 $IPSET add BLOCKLIST 41.203.128.0/19 $IPSET add BLOCKLIST 154.66.220.0/22 $IPSET add BLOCKLIST 154.127.80.0/20 $IPSET add BLOCKLIST 197.214.0.0/18 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP