#!/bin/sh # 2024-04-16 02:34:19 KN IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 23.131.208.0/24 $IPSET add BLOCKLIST 198.167.192.0/19 $IPSET add BLOCKLIST 199.21.164.0/22 $IPSET add BLOCKLIST 204.16.8.0/22 $IPSET add BLOCKLIST 204.19.200.0/22 $IPSET add BLOCKLIST 208.70.92.0/22 $IPSET add BLOCKLIST 208.81.160.0/22 $IPSET add BLOCKLIST 208.87.144.0/22 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP