#!/bin/bash # # U-CHICAGO-AS IP Ranges - iptables/ipset rules # ASN: AS160 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create uchicagoas_v4 hash:net -exist ipset flush uchicagoas_v4 # Add IPv4 ranges ipset add uchicagoas_v4 192.5.85.0/24 ipset add uchicagoas_v4 128.135.0.0/16 ipset add uchicagoas_v4 192.170.192.0/19 ipset add uchicagoas_v4 192.170.224.0/19 ipset add uchicagoas_v4 205.208.0.0/17 ipset add uchicagoas_v4 198.177.153.0/24 # Create IPv6 ipset ipset create uchicagoas_v6 hash:net family inet6 -exist ipset flush uchicagoas_v6 # Add IPv6 ranges ipset add uchicagoas_v6 2605:9a00:10::/48 ipset add uchicagoas_v6 2605:9a00::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set uchicagoas_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set uchicagoas_v4 src -j DROP # ip6tables -A INPUT -m set --match-set uchicagoas_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set uchicagoas_v6 src -j DROP echo "IP ranges for U-CHICAGO-AS loaded successfully!" echo "IPv4 ranges: 6" echo "IPv6 ranges: 2"