#!/bin/bash # # HPINC-AMERICAS IP Ranges - iptables/ipset rules # ASN: AS71 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create hpincamericas_v4 hash:net -exist ipset flush hpincamericas_v4 # Add IPv4 ranges ipset add hpincamericas_v4 192.56.15.0/24 ipset add hpincamericas_v4 192.56.8.0/24 ipset add hpincamericas_v4 192.56.51.0/24 ipset add hpincamericas_v4 192.56.45.0/24 ipset add hpincamericas_v4 192.56.12.0/24 ipset add hpincamericas_v4 192.56.13.0/24 ipset add hpincamericas_v4 192.56.46.0/24 ipset add hpincamericas_v4 192.56.10.0/24 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set hpincamericas_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set hpincamericas_v4 src -j DROP echo "IP ranges for HPINC-AMERICAS loaded successfully!" echo "IPv4 ranges: 8" echo "IPv6 ranges: 0"