#!/bin/bash # # CORE Nippon Telegraph and Telephone Corporation IP Ranges - iptables/ipset rules # ASN: AS2511 # Generated: 2025-12-15 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create corenippontelegraphandtelephonecorporation_v4 hash:net -exist ipset flush corenippontelegraphandtelephonecorporation_v4 # Add IPv4 ranges ipset add corenippontelegraphandtelephonecorporation_v4 192.47.167.0/24 ipset add corenippontelegraphandtelephonecorporation_v4 163.138.0.0/17 ipset add corenippontelegraphandtelephonecorporation_v4 192.5.216.0/24 ipset add corenippontelegraphandtelephonecorporation_v4 192.26.94.0/24 ipset add corenippontelegraphandtelephonecorporation_v4 163.138.128.0/19 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set corenippontelegraphandtelephonecorporation_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set corenippontelegraphandtelephonecorporation_v4 src -j DROP echo "IP ranges for CORE Nippon Telegraph and Telephone Corporation loaded successfully!" echo "IPv4 ranges: 5" echo "IPv6 ranges: 0"