#!/bin/sh # 2024-04-16 02:39:42 TM IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 95.85.96.0/19 $IPSET add BLOCKLIST 185.69.184.0/22 $IPSET add BLOCKLIST 185.246.72.0/22 $IPSET add BLOCKLIST 195.191.230.0/23 $IPSET add BLOCKLIST 217.174.224.0/20 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP