#!/bin/sh # 2024-04-16 02:31:04 DJ IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 41.189.224.0/19 $IPSET add BLOCKLIST 196.49.10.0/24 $IPSET add BLOCKLIST 196.201.192.0/20 $IPSET add BLOCKLIST 196.223.38.0/24 $IPSET add BLOCKLIST 197.241.0.0/17 $IPSET add BLOCKLIST 217.78.64.0/20 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP