#!/bin/bash # # NORTHEASTERN-GW-AS IP Ranges - iptables/ipset rules # ASN: AS156 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create northeasterngwas_v4 hash:net -exist ipset flush northeasterngwas_v4 # Add IPv4 ranges ipset add northeasterngwas_v4 129.10.0.0/22 ipset add northeasterngwas_v4 129.10.24.0/21 ipset add northeasterngwas_v4 129.10.8.0/21 ipset add northeasterngwas_v4 155.33.128.0/17 ipset add northeasterngwas_v4 129.10.32.0/19 ipset add northeasterngwas_v4 204.167.52.0/24 ipset add northeasterngwas_v4 155.33.0.0/16 ipset add northeasterngwas_v4 155.33.0.0/19 ipset add northeasterngwas_v4 129.10.16.0/22 ipset add northeasterngwas_v4 155.33.0.0/17 ipset add northeasterngwas_v4 129.10.64.0/18 ipset add northeasterngwas_v4 155.33.32.0/20 ipset add northeasterngwas_v4 129.10.0.0/16 ipset add northeasterngwas_v4 129.10.128.0/17 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set northeasterngwas_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set northeasterngwas_v4 src -j DROP echo "IP ranges for NORTHEASTERN-GW-AS loaded successfully!" echo "IPv4 ranges: 14" echo "IPv6 ranges: 0"