#!/bin/bash # # PANIX IP Ranges - iptables/ipset rules # ASN: AS2033 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create panix_v4 hash:net -exist ipset flush panix_v4 # Add IPv4 ranges ipset add panix_v4 204.90.78.0/24 ipset add panix_v4 198.186.151.0/24 ipset add panix_v4 206.54.128.0/20 ipset add panix_v4 166.84.160.0/22 ipset add panix_v4 198.7.0.0/21 ipset add panix_v4 204.52.248.0/23 ipset add panix_v4 198.7.4.0/22 ipset add panix_v4 166.84.0.0/16 ipset add panix_v4 192.150.103.0/24 ipset add panix_v4 204.29.154.0/24 ipset add panix_v4 206.223.36.0/24 ipset add panix_v4 204.52.227.0/24 # Create IPv6 ipset ipset create panix_v6 hash:net family inet6 -exist ipset flush panix_v6 # Add IPv6 ranges ipset add panix_v6 2602:f977::/36 ipset add panix_v6 2602:f977:3::/48 ipset add panix_v6 2602:f977:2::/48 ipset add panix_v6 2602:f977:800::/48 ipset add panix_v6 2602:f977:c00::/48 ipset add panix_v6 2602:f977:804::/48 ipset add panix_v6 2602:f977::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set panix_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set panix_v4 src -j DROP # ip6tables -A INPUT -m set --match-set panix_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set panix_v6 src -j DROP echo "IP ranges for PANIX loaded successfully!" echo "IPv4 ranges: 12" echo "IPv6 ranges: 7"