#!/bin/bash # # STATE-OF-MN IP Ranges - iptables/ipset rules # ASN: AS1998 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create stateofmn_v4 hash:net -exist ipset flush stateofmn_v4 # Add IPv4 ranges ipset add stateofmn_v4 192.234.247.0/24 ipset add stateofmn_v4 192.112.137.0/24 ipset add stateofmn_v4 192.133.60.0/24 ipset add stateofmn_v4 151.111.0.0/16 ipset add stateofmn_v4 207.171.64.0/18 ipset add stateofmn_v4 156.98.0.0/15 ipset add stateofmn_v4 192.112.135.0/24 ipset add stateofmn_v4 192.112.136.0/24 ipset add stateofmn_v4 192.156.191.0/24 ipset add stateofmn_v4 64.8.128.0/18 # Create IPv6 ipset ipset create stateofmn_v6 hash:net family inet6 -exist ipset flush stateofmn_v6 # Add IPv6 ranges ipset add stateofmn_v6 2607:f830::/32 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set stateofmn_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set stateofmn_v4 src -j DROP # ip6tables -A INPUT -m set --match-set stateofmn_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set stateofmn_v6 src -j DROP echo "IP ranges for STATE-OF-MN loaded successfully!" echo "IPv4 ranges: 10" echo "IPv6 ranges: 1"