#!/bin/bash # # FR-INRIA-ROCQ - Institut National de Recherche en Informatique IP Ranges - iptables/ipset rules # ASN: AS775 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create frinriarocqinstitutnationalderechercheeninformatique_v4 hash:net -exist ipset flush frinriarocqinstitutnationalderechercheeninformatique_v4 # Add IPv4 ranges ipset add frinriarocqinstitutnationalderechercheeninformatique_v4 192.93.2.0/24 ipset add frinriarocqinstitutnationalderechercheeninformatique_v4 192.93.1.0/24 ipset add frinriarocqinstitutnationalderechercheeninformatique_v4 192.5.59.0/24 ipset add frinriarocqinstitutnationalderechercheeninformatique_v4 192.93.122.0/24 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set frinriarocqinstitutnationalderechercheeninformatique_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set frinriarocqinstitutnationalderechercheeninformatique_v4 src -j DROP echo "IP ranges for FR-INRIA-ROCQ - Institut National de Recherche en Informatique loaded successfully!" echo "IPv4 ranges: 4" echo "IPv6 ranges: 0"