#!/bin/bash # # ERX-TANET-ASN1 Taiwan Academic Network TANet Information Center IP Ranges - iptables/ipset rules # ASN: AS1659 # Generated: 2025-12-15 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 hash:net -exist ipset flush erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 # Add IPv4 ranges ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.83.196.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.221.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.62.64.0/19 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.83.192.0/22 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 134.208.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.134.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 120.96.0.0/11 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.119.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.183.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.67.248.0/21 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.71.0.0/17 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.192.24.0/23 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 163.14.0.0/15 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.240.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.92.128.0/17 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 163.24.0.0/14 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.222.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.59.0.0/17 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.12.0/23 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.184.0/22 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.62.240.0/21 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.92.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.124.0/23 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.112.0.0/12 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 203.71.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.190.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.192.23.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.83.168.0/21 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.122.0/23 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 203.72.0.0/21 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.83.176.0/20 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.8.0/22 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.192.22.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.83.166.0/23 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.92.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.92.0.0/17 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.243.0.0/18 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.223.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 203.64.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.28.0/22 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 163.32.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.138.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.192.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.110.0.0/15 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.62.224.0/20 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 163.28.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.126.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.70.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.188.0/23 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.128.0.0/13 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 203.72.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.192.26.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 203.68.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 140.136.0.0/15 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.80.0/21 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 163.30.0.0/15 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 210.60.88.0/22 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 192.192.21.0/24 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 163.13.0.0/16 ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 163.16.0.0/13 # Create IPv6 ipset ipset create erxtanetasn1taiwanacademicnetworktanetinformationcenter_v6 hash:net family inet6 -exist ipset flush erxtanetasn1taiwanacademicnetworktanetinformationcenter_v6 # Add IPv6 ranges ipset add erxtanetasn1taiwanacademicnetworktanetinformationcenter_v6 2001:288::/32 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set erxtanetasn1taiwanacademicnetworktanetinformationcenter_v4 src -j DROP # ip6tables -A INPUT -m set --match-set erxtanetasn1taiwanacademicnetworktanetinformationcenter_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set erxtanetasn1taiwanacademicnetworktanetinformationcenter_v6 src -j DROP echo "IP ranges for ERX-TANET-ASN1 Taiwan Academic Network TANet Information Center loaded successfully!" echo "IPv4 ranges: 61" echo "IPv6 ranges: 1"