#!/bin/sh # 2024-03-26 02:36:03 MQ IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 94.124.216.0/21 $IPSET add BLOCKLIST 104.245.112.0/21 $IPSET add BLOCKLIST 109.203.224.0/19 $IPSET add BLOCKLIST 176.111.56.0/24 $IPSET add BLOCKLIST 185.60.232.0/22 $IPSET add BLOCKLIST 193.178.191.0/24 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP