#!/bin/bash # # HPE-AMS-CFC IP Ranges - iptables/ipset rules # ASN: AS1033 # Generated: 2026-08-14 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create hpeamscfc_v4 hash:net -exist ipset flush hpeamscfc_v4 # Add IPv4 ranges ipset add hpeamscfc_v4 16.7.22.0/24 ipset add hpeamscfc_v4 16.7.20.0/22 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set hpeamscfc_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set hpeamscfc_v4 src -j DROP echo "IP ranges for HPE-AMS-CFC loaded successfully!" echo "IPv4 ranges: 2" echo "IPv6 ranges: 0"