#!/bin/bash # # UTWENTE-AS - SURF B.V. IP Ranges - iptables/ipset rules # ASN: AS1133 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create utwenteassurfbv_v4 hash:net -exist ipset flush utwenteassurfbv_v4 # Add IPv4 ranges ipset add utwenteassurfbv_v4 130.89.0.0/16 # Create IPv6 ipset ipset create utwenteassurfbv_v6 hash:net family inet6 -exist ipset flush utwenteassurfbv_v6 # Add IPv6 ranges ipset add utwenteassurfbv_v6 2001:67c:2564::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set utwenteassurfbv_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set utwenteassurfbv_v4 src -j DROP # ip6tables -A INPUT -m set --match-set utwenteassurfbv_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set utwenteassurfbv_v6 src -j DROP echo "IP ranges for UTWENTE-AS - SURF B.V. loaded successfully!" echo "IPv4 ranges: 1" echo "IPv6 ranges: 1"