#!/bin/sh # 2024-04-16 02:36:01 MR IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 41.138.128.0/19 $IPSET add BLOCKLIST 41.188.64.0/18 $IPSET add BLOCKLIST 41.223.96.0/22 $IPSET add BLOCKLIST 82.151.64.0/19 $IPSET add BLOCKLIST 196.49.18.0/24 $IPSET add BLOCKLIST 196.223.45.0/24 $IPSET add BLOCKLIST 197.231.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