#!/bin/sh # 2024-04-23 02:31:12 DM IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 69.12.108.0/22 $IPSET add BLOCKLIST 104.153.248.0/22 $IPSET add BLOCKLIST 104.245.204.0/22 $IPSET add BLOCKLIST 162.213.168.0/22 $IPSET add BLOCKLIST 162.253.100.0/22 $IPSET add BLOCKLIST 192.243.48.0/20 $IPSET add BLOCKLIST 198.101.28.0/22 $IPSET add BLOCKLIST 199.127.196.0/22 $IPSET add BLOCKLIST 206.53.141.0/24 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP