#!/bin/bash # # NLM-GW IP Ranges - iptables/ipset rules # ASN: AS70 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create nlmgw_v4 hash:net -exist ipset flush nlmgw_v4 # Add IPv4 ranges ipset add nlmgw_v4 130.14.12.0/24 ipset add nlmgw_v4 130.14.20.0/23 ipset add nlmgw_v4 130.14.77.0/24 ipset add nlmgw_v4 130.14.169.0/24 ipset add nlmgw_v4 130.14.106.0/24 ipset add nlmgw_v4 130.14.241.0/24 ipset add nlmgw_v4 130.14.232.0/22 ipset add nlmgw_v4 130.14.8.0/23 ipset add nlmgw_v4 130.14.0.0/16 ipset add nlmgw_v4 130.14.240.0/23 ipset add nlmgw_v4 130.14.143.0/24 ipset add nlmgw_v4 130.14.119.0/24 ipset add nlmgw_v4 130.14.112.0/24 ipset add nlmgw_v4 130.14.148.0/24 ipset add nlmgw_v4 130.14.168.0/24 ipset add nlmgw_v4 130.14.76.0/24 ipset add nlmgw_v4 130.14.180.0/23 ipset add nlmgw_v4 130.14.144.0/24 ipset add nlmgw_v4 130.14.155.0/24 ipset add nlmgw_v4 130.14.71.0/24 ipset add nlmgw_v4 130.14.5.0/24 ipset add nlmgw_v4 130.14.163.0/24 ipset add nlmgw_v4 130.14.176.0/24 ipset add nlmgw_v4 130.14.2.0/24 ipset add nlmgw_v4 130.14.231.0/24 ipset add nlmgw_v4 130.14.13.0/24 ipset add nlmgw_v4 130.14.160.0/24 ipset add nlmgw_v4 130.14.253.0/24 ipset add nlmgw_v4 130.14.200.0/21 ipset add nlmgw_v4 130.14.124.0/24 ipset add nlmgw_v4 130.14.154.0/24 ipset add nlmgw_v4 130.14.136.0/24 ipset add nlmgw_v4 130.14.110.0/24 ipset add nlmgw_v4 130.14.128.0/17 ipset add nlmgw_v4 130.14.64.0/18 ipset add nlmgw_v4 130.14.108.0/24 ipset add nlmgw_v4 130.14.114.0/24 ipset add nlmgw_v4 130.14.192.0/22 ipset add nlmgw_v4 130.14.242.0/24 ipset add nlmgw_v4 130.14.147.0/24 ipset add nlmgw_v4 130.14.170.0/24 ipset add nlmgw_v4 130.14.0.0/17 ipset add nlmgw_v4 130.14.135.0/24 ipset add nlmgw_v4 130.14.236.0/22 ipset add nlmgw_v4 130.14.123.0/24 ipset add nlmgw_v4 130.14.254.0/24 ipset add nlmgw_v4 130.14.120.0/24 ipset add nlmgw_v4 130.14.157.0/24 ipset add nlmgw_v4 130.14.118.0/24 ipset add nlmgw_v4 130.14.244.0/23 ipset add nlmgw_v4 130.14.162.0/24 ipset add nlmgw_v4 130.14.142.0/24 ipset add nlmgw_v4 130.14.156.0/24 ipset add nlmgw_v4 130.14.128.0/18 ipset add nlmgw_v4 130.14.116.0/24 ipset add nlmgw_v4 130.14.75.0/24 ipset add nlmgw_v4 130.14.0.0/18 ipset add nlmgw_v4 130.14.248.0/23 ipset add nlmgw_v4 130.14.6.0/24 ipset add nlmgw_v4 130.14.11.0/24 ipset add nlmgw_v4 130.14.72.0/24 ipset add nlmgw_v4 130.14.177.0/24 ipset add nlmgw_v4 130.14.43.0/24 ipset add nlmgw_v4 130.14.192.0/18 # Create IPv6 ipset ipset create nlmgw_v6 hash:net family inet6 -exist ipset flush nlmgw_v6 # Add IPv6 ranges ipset add nlmgw_v6 2607:f220:41e::/48 ipset add nlmgw_v6 2607:f220:411::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set nlmgw_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set nlmgw_v4 src -j DROP # ip6tables -A INPUT -m set --match-set nlmgw_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set nlmgw_v6 src -j DROP echo "IP ranges for NLM-GW loaded successfully!" echo "IPv4 ranges: 64" echo "IPv6 ranges: 2"