#!/bin/bash # # HP-POLY IP Ranges - iptables/ipset rules # ASN: AS543 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create hppoly_v4 hash:net -exist ipset flush hppoly_v4 # Add IPv4 ranges ipset add hppoly_v4 140.242.70.0/24 ipset add hppoly_v4 140.242.71.0/24 ipset add hppoly_v4 140.242.168.0/24 ipset add hppoly_v4 130.252.224.0/20 ipset add hppoly_v4 141.124.51.0/24 ipset add hppoly_v4 130.252.240.0/20 ipset add hppoly_v4 141.124.50.0/24 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set hppoly_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set hppoly_v4 src -j DROP echo "IP ranges for HP-POLY loaded successfully!" echo "IPv4 ranges: 7" echo "IPv6 ranges: 0"