#!/bin/bash # # IN2P3 - IN2P3 Autonomous System IP Ranges - iptables/ipset rules # ASN: AS789 # Generated: 2026-08-14 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create in2p3in2p3autonomoussystem_v4 hash:net -exist ipset flush in2p3in2p3autonomoussystem_v4 # Add IPv4 ranges ipset add in2p3in2p3autonomoussystem_v4 193.48.100.0/24 ipset add in2p3in2p3autonomoussystem_v4 134.158.0.0/16 ipset add in2p3in2p3autonomoussystem_v4 193.48.99.0/24 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set in2p3in2p3autonomoussystem_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set in2p3in2p3autonomoussystem_v4 src -j DROP echo "IP ranges for IN2P3 - IN2P3 Autonomous System loaded successfully!" echo "IPv4 ranges: 3" echo "IPv6 ranges: 0"