#!/bin/sh # 2024-04-23 02:32:38 GP IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 104.250.0.0/19 $IPSET add BLOCKLIST 107.191.208.0/20 $IPSET add BLOCKLIST 137.83.76.0/24 $IPSET add BLOCKLIST 137.83.102.0/24 $IPSET add BLOCKLIST 193.218.114.0/24 $IPSET add BLOCKLIST 199.91.160.0/22 $IPSET add BLOCKLIST 208.72.228.0/22 $IPSET add BLOCKLIST 208.79.96.0/22 $IPSET add BLOCKLIST 208.94.168.0/22 $IPSET add BLOCKLIST 208.103.148.0/23 $IPSET add BLOCKLIST 216.230.17.0/24 $IPSET add BLOCKLIST 216.230.19.0/24 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP