#!/bin/bash # # NCA5 Kyoto University IP Ranges - iptables/ipset rules # ASN: AS2504 # Generated: 2025-12-17 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create nca5kyotouniversity_v4 hash:net -exist ipset flush nca5kyotouniversity_v4 # Add IPv4 ranges ipset add nca5kyotouniversity_v4 130.54.0.0/16 ipset add nca5kyotouniversity_v4 192.50.24.0/23 ipset add nca5kyotouniversity_v4 133.3.0.0/16 ipset add nca5kyotouniversity_v4 192.50.8.0/23 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set nca5kyotouniversity_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set nca5kyotouniversity_v4 src -j DROP echo "IP ranges for NCA5 Kyoto University loaded successfully!" echo "IPv4 ranges: 4" echo "IPv6 ranges: 0"