#!/bin/bash # # RAND IP Ranges - iptables/ipset rules # ASN: AS21 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create rand_v4 hash:net -exist ipset flush rand_v4 # Add IPv4 ranges ipset add rand_v4 130.154.11.0/24 ipset add rand_v4 130.154.30.0/24 ipset add rand_v4 130.154.0.0/24 ipset add rand_v4 130.154.111.0/24 ipset add rand_v4 130.154.33.0/24 ipset add rand_v4 130.154.1.0/24 ipset add rand_v4 130.154.113.0/24 ipset add rand_v4 192.5.14.0/24 ipset add rand_v4 130.154.3.0/24 ipset add rand_v4 166.67.240.0/24 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set rand_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set rand_v4 src -j DROP echo "IP ranges for RAND loaded successfully!" echo "IPv4 ranges: 10" echo "IPv6 ranges: 0"