#!/bin/bash # # ORANGELABS - Orange S.A. IP Ranges - iptables/ipset rules # ASN: AS2278 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create orangelabsorangesa_v4 hash:net -exist ipset flush orangelabsorangesa_v4 # Add IPv4 ranges ipset add orangelabsorangesa_v4 161.106.0.0/16 ipset add orangelabsorangesa_v4 161.105.128.0/17 ipset add orangelabsorangesa_v4 192.144.77.0/24 # Create IPv6 ipset ipset create orangelabsorangesa_v6 hash:net family inet6 -exist ipset flush orangelabsorangesa_v6 # Add IPv6 ranges ipset add orangelabsorangesa_v6 2a01:cf00::/42 ipset add orangelabsorangesa_v6 2a01:cf00:5::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set orangelabsorangesa_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set orangelabsorangesa_v4 src -j DROP # ip6tables -A INPUT -m set --match-set orangelabsorangesa_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set orangelabsorangesa_v6 src -j DROP echo "IP ranges for ORANGELABS - Orange S.A. loaded successfully!" echo "IPv4 ranges: 3" echo "IPv6 ranges: 2"