#!/bin/bash # # ANAXA3-ASN IP Ranges - iptables/ipset rules # ASN: AS989 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create anaxa3asn_v4 hash:net -exist ipset flush anaxa3asn_v4 # Add IPv4 ranges ipset add anaxa3asn_v4 8.44.142.0/24 ipset add anaxa3asn_v4 8.18.122.0/24 ipset add anaxa3asn_v4 8.8.246.0/24 ipset add anaxa3asn_v4 8.30.146.0/24 ipset add anaxa3asn_v4 8.36.239.0/24 ipset add anaxa3asn_v4 8.8.248.0/24 ipset add anaxa3asn_v4 8.44.143.0/24 ipset add anaxa3asn_v4 209.0.51.0/24 ipset add anaxa3asn_v4 8.8.244.0/24 ipset add anaxa3asn_v4 8.36.228.0/24 ipset add anaxa3asn_v4 8.8.245.0/24 ipset add anaxa3asn_v4 8.30.147.0/24 ipset add anaxa3asn_v4 8.36.224.0/24 ipset add anaxa3asn_v4 8.30.145.0/24 ipset add anaxa3asn_v4 8.18.121.0/24 ipset add anaxa3asn_v4 8.36.225.0/24 ipset add anaxa3asn_v4 209.0.50.0/24 ipset add anaxa3asn_v4 8.8.249.0/24 ipset add anaxa3asn_v4 8.36.229.0/24 ipset add anaxa3asn_v4 8.36.238.0/24 ipset add anaxa3asn_v4 8.18.120.0/24 ipset add anaxa3asn_v4 8.8.247.0/24 ipset add anaxa3asn_v4 8.30.144.0/24 # Create IPv6 ipset ipset create anaxa3asn_v6 hash:net family inet6 -exist ipset flush anaxa3asn_v6 # Add IPv6 ranges ipset add anaxa3asn_v6 2602:fb29::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set anaxa3asn_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set anaxa3asn_v4 src -j DROP # ip6tables -A INPUT -m set --match-set anaxa3asn_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set anaxa3asn_v6 src -j DROP echo "IP ranges for ANAXA3-ASN loaded successfully!" echo "IPv4 ranges: 23" echo "IPv6 ranges: 1"