#!/bin/sh # 2024-04-16 02:35:28 MF IPTABLES=/usr/sbin/iptables IPSET=/usr/sbin/ipset $IPSET create BLOCKLIST hash:net $IPSET add BLOCKLIST 74.112.232.0/21 $IPSET add BLOCKLIST 74.116.92.0/22 $IPSET add BLOCKLIST 148.64.60.0/23 $IPSET add BLOCKLIST 158.222.40.0/23 $IPSET add BLOCKLIST 162.12.217.0/24 $IPSET add BLOCKLIST 192.96.136.0/23 $IPSET add BLOCKLIST 192.139.192.0/24 $IPSET add BLOCKLIST 199.101.188.0/22 $IPSET add BLOCKLIST 204.27.52.0/22 $IPSET add BLOCKLIST 208.78.48.0/21 $IPSET add BLOCKLIST 208.91.192.0/22 $IPTABLES -A INPUT -m set --match-set BLOCKLIST src -j DROP $IPTABLES -A OUTPUT -m set --match-set BLOCKLIST dst -j DROP