#!/bin/bash # # ANDREWNET IP Ranges - iptables/ipset rules # ASN: AS1003 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create andrewnet_v4 hash:net -exist ipset flush andrewnet_v4 # Add IPv4 ranges ipset add andrewnet_v4 23.143.82.0/24 ipset add andrewnet_v4 45.41.37.0/24 # Create IPv6 ipset ipset create andrewnet_v6 hash:net family inet6 -exist ipset flush andrewnet_v6 # Add IPv6 ranges ipset add andrewnet_v6 2602:fc26:1::/48 ipset add andrewnet_v6 2602:fc26:16::/48 ipset add andrewnet_v6 2602:fc26:6::/48 ipset add andrewnet_v6 2602:fc26:14::/48 ipset add andrewnet_v6 2602:fc26:12::/48 ipset add andrewnet_v6 2602:fc26:8::/48 ipset add andrewnet_v6 2602:fc26:a::/48 ipset add andrewnet_v6 2602:fc26:7::/48 ipset add andrewnet_v6 2602:fc26:b::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set andrewnet_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set andrewnet_v4 src -j DROP # ip6tables -A INPUT -m set --match-set andrewnet_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set andrewnet_v6 src -j DROP echo "IP ranges for ANDREWNET loaded successfully!" echo "IPv4 ranges: 2" echo "IPv6 ranges: 9"