#!/bin/bash # # PA-AS - The Press Association Ltd IP Ranges - iptables/ipset rules # ASN: AS2147 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create paasthepressassociationltd_v4 hash:net -exist ipset flush paasthepressassociationltd_v4 # Add IPv4 ranges ipset add paasthepressassociationltd_v4 193.36.64.0/24 ipset add paasthepressassociationltd_v4 193.36.69.0/24 ipset add paasthepressassociationltd_v4 193.36.68.0/24 ipset add paasthepressassociationltd_v4 193.36.71.0/24 ipset add paasthepressassociationltd_v4 193.36.64.0/21 ipset add paasthepressassociationltd_v4 144.178.116.0/24 ipset add paasthepressassociationltd_v4 144.178.255.0/24 ipset add paasthepressassociationltd_v4 193.36.65.0/24 ipset add paasthepressassociationltd_v4 144.178.106.0/24 ipset add paasthepressassociationltd_v4 193.36.70.0/24 ipset add paasthepressassociationltd_v4 193.36.68.0/22 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set paasthepressassociationltd_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set paasthepressassociationltd_v4 src -j DROP echo "IP ranges for PA-AS - The Press Association Ltd loaded successfully!" echo "IPv4 ranges: 11" echo "IPv6 ranges: 0"