#!/bin/sh # 2024-04-16 02:28:17 AI IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 104.193.196.0/22 $IPSET add BLOCKLIST 104.255.176.0/22 $IPSET add BLOCKLIST 162.251.108.0/22 $IPSET add BLOCKLIST 162.254.188.0/22 $IPSET add BLOCKLIST 192.30.124.0/24 $IPSET add BLOCKLIST 204.14.248.0/21 $IPSET add BLOCKLIST 208.66.48.0/21 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP