#!/bin/bash # # GTT-DXB IP Ranges - iptables/ipset rules # ASN: AS260 # Generated: 2025-12-17 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create gttdxb_v4 hash:net -exist ipset flush gttdxb_v4 # Add IPv4 ranges ipset add gttdxb_v4 185.78.163.0/24 ipset add gttdxb_v4 89.42.169.0/24 ipset add gttdxb_v4 185.78.161.0/24 ipset add gttdxb_v4 185.19.102.0/24 ipset add gttdxb_v4 78.40.204.0/23 # Create IPv6 ipset ipset create gttdxb_v6 hash:net family inet6 -exist ipset flush gttdxb_v6 # Add IPv6 ranges ipset add gttdxb_v6 2605:4380::/32 ipset add gttdxb_v6 2a04:1123::/32 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set gttdxb_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set gttdxb_v4 src -j DROP # ip6tables -A INPUT -m set --match-set gttdxb_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set gttdxb_v6 src -j DROP echo "IP ranges for GTT-DXB loaded successfully!" echo "IPv4 ranges: 5" echo "IPv6 ranges: 2"