#!/bin/sh # 2024-03-26 02:39:11 ST IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 154.72.12.0/22 $IPSET add BLOCKLIST 197.159.160.0/19 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP