#!/bin/sh # 2024-04-23 02:32:09 GD IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 74.117.84.0/22 $IPSET add BLOCKLIST 74.122.88.0/21 $IPSET add BLOCKLIST 104.245.48.0/22 $IPSET add BLOCKLIST 104.245.92.0/22 $IPSET add BLOCKLIST 162.245.152.0/22 $IPSET add BLOCKLIST 196.3.73.0/24 $IPSET add BLOCKLIST 199.83.192.0/21 $IPSET add BLOCKLIST 199.85.236.0/22 $IPSET add BLOCKLIST 206.126.244.0/24 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP