#!/bin/bash # # NIKHEF - Stichting Nederlandse Wetenschappelijk Onderzoek Instituten IP Ranges - iptables/ipset rules # ASN: AS1104 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 hash:net -exist ipset flush nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 # Add IPv4 ranges ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 194.171.96.0/21 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 145.107.4.0/22 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 192.16.185.0/24 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 145.116.216.0/24 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 192.16.194.0/24 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 192.16.195.0/24 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 192.16.186.0/24 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 185.153.60.0/22 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 145.116.208.0/21 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 192.16.199.0/24 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 192.16.192.0/24 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 145.110.0.0/16 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 145.116.48.0/20 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 145.102.132.0/22 # Create IPv6 ipset ipset create nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 hash:net family inet6 -exist ipset flush nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 # Add IPv6 ranges ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 2a07:8504:1a0::/48 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 2a07:8500::/32 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 2001:610:120::/48 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 2a07:8504::/32 ipset add nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 2a07:8504:120::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v4 src -j DROP # ip6tables -A INPUT -m set --match-set nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set nikhefstichtingnederlandsewetenschappelijkonderzoekinstituten_v6 src -j DROP echo "IP ranges for NIKHEF - Stichting Nederlandse Wetenschappelijk Onderzoek Instituten loaded successfully!" echo "IPv4 ranges: 14" echo "IPv6 ranges: 5"