#!/bin/bash # # NL-GIGAPOP IP Ranges - iptables/ipset rules # ASN: AS57 # Generated: 2025-12-17 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create nlgigapop_v4 hash:net -exist ipset flush nlgigapop_v4 # Add IPv4 ranges ipset add nlgigapop_v4 192.35.86.0/24 ipset add nlgigapop_v4 146.57.248.0/21 ipset add nlgigapop_v4 192.42.152.0/24 ipset add nlgigapop_v4 64.62.149.0/24 # Create IPv6 ipset ipset create nlgigapop_v6 hash:net family inet6 -exist ipset flush nlgigapop_v6 # Add IPv6 ranges ipset add nlgigapop_v6 2607:ea00::/32 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set nlgigapop_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set nlgigapop_v4 src -j DROP # ip6tables -A INPUT -m set --match-set nlgigapop_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set nlgigapop_v6 src -j DROP echo "IP ranges for NL-GIGAPOP loaded successfully!" echo "IPv4 ranges: 4" echo "IPv6 ranges: 1"