#!/bin/sh # 2024-03-26 02:40:53 VC IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 104.219.24.0/22 $IPSET add BLOCKLIST 104.255.232.0/22 $IPSET add BLOCKLIST 162.212.210.0/23 $IPSET add BLOCKLIST 192.58.140.0/23 $IPSET add BLOCKLIST 199.192.224.0/23 $IPSET add BLOCKLIST 204.13.240.0/22 $IPSET add BLOCKLIST 207.191.240.0/21 $IPSET add BLOCKLIST 208.84.200.0/21 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP