#!/bin/bash # # MODEST-LABS IP Ranges - iptables/ipset rules # ASN: AS992 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create modestlabs_v4 hash:net -exist ipset flush modestlabs_v4 # Add IPv4 ranges ipset add modestlabs_v4 204.52.204.0/23 ipset add modestlabs_v4 198.169.173.0/24 ipset add modestlabs_v4 38.69.227.0/24 # Create IPv6 ipset ipset create modestlabs_v6 hash:net family inet6 -exist ipset flush modestlabs_v6 # Add IPv6 ranges ipset add modestlabs_v6 2602:810:5000::/48 ipset add modestlabs_v6 2602:810:5008::/45 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set modestlabs_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set modestlabs_v4 src -j DROP # ip6tables -A INPUT -m set --match-set modestlabs_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set modestlabs_v6 src -j DROP echo "IP ranges for MODEST-LABS loaded successfully!" echo "IPv4 ranges: 3" echo "IPv6 ranges: 2"