#!/bin/bash # # IOT-CADV-OBS-AS - Orange S.A. IP Ranges - iptables/ipset rules # ASN: AS2287 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create iotcadvobsasorangesa_v4 hash:net -exist ipset flush iotcadvobsasorangesa_v4 # Add IPv4 ranges ipset add iotcadvobsasorangesa_v4 90.84.166.0/24 ipset add iotcadvobsasorangesa_v4 90.84.157.0/24 ipset add iotcadvobsasorangesa_v4 90.84.158.0/24 ipset add iotcadvobsasorangesa_v4 90.84.138.0/24 ipset add iotcadvobsasorangesa_v4 90.84.139.0/24 ipset add iotcadvobsasorangesa_v4 90.84.167.0/24 # Create IPv6 ipset ipset create iotcadvobsasorangesa_v6 hash:net family inet6 -exist ipset flush iotcadvobsasorangesa_v6 # Add IPv6 ranges ipset add iotcadvobsasorangesa_v6 2a01:ceff:1::/48 ipset add iotcadvobsasorangesa_v6 2a01:ceff::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set iotcadvobsasorangesa_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set iotcadvobsasorangesa_v4 src -j DROP # ip6tables -A INPUT -m set --match-set iotcadvobsasorangesa_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set iotcadvobsasorangesa_v6 src -j DROP echo "IP ranges for IOT-CADV-OBS-AS - Orange S.A. loaded successfully!" echo "IPv4 ranges: 6" echo "IPv6 ranges: 2"