#!/bin/sh # 2024-04-16 02:38:56 SR IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 168.121.84.0/22 $IPSET add BLOCKLIST 168.195.216.0/22 $IPSET add BLOCKLIST 186.179.128.0/17 $IPSET add BLOCKLIST 190.98.0.0/17 $IPSET add BLOCKLIST 200.1.156.0/22 $IPSET add BLOCKLIST 200.1.208.0/21 $IPSET add BLOCKLIST 200.2.160.0/19 $IPSET add BLOCKLIST 200.7.148.0/22 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP