#!/bin/sh # 2024-03-26 02:32:16 GF IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 45.169.164.0/22 $IPSET add BLOCKLIST 128.201.88.0/22 $IPSET add BLOCKLIST 161.22.64.0/18 $IPSET add BLOCKLIST 170.233.72.0/22 $IPSET add BLOCKLIST 186.2.244.0/22 $IPSET add BLOCKLIST 200.13.136.0/21 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP