#!/bin/bash # # PACIFIC-GAS IP Ranges - iptables/ipset rules # ASN: AS2013 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create pacificgas_v4 hash:net -exist ipset flush pacificgas_v4 # Add IPv4 ranges ipset add pacificgas_v4 192.68.122.0/24 ipset add pacificgas_v4 131.89.0.0/16 ipset add pacificgas_v4 192.68.118.0/24 ipset add pacificgas_v4 192.80.251.0/24 ipset add pacificgas_v4 130.19.0.0/16 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set pacificgas_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set pacificgas_v4 src -j DROP echo "IP ranges for PACIFIC-GAS loaded successfully!" echo "IPv4 ranges: 5" echo "IPv6 ranges: 0"