#!/bin/sh # 2024-03-26 02:40:50 VA IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 46.36.200.0/22 $IPSET add BLOCKLIST 185.17.220.0/22 $IPSET add BLOCKLIST 185.152.68.0/22 $IPSET add BLOCKLIST 193.43.102.0/23 $IPSET add BLOCKLIST 193.43.128.0/22 $IPSET add BLOCKLIST 212.77.0.0/19 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP