#!/bin/bash # # OCB_HONEY_CDN_ASN - Orange S.A. IP Ranges - iptables/ipset rules # ASN: AS2285 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create ocbhoneycdnasnorangesa_v4 hash:net -exist ipset flush ocbhoneycdnasnorangesa_v4 # Add IPv4 ranges ipset add ocbhoneycdnasnorangesa_v4 90.84.164.0/24 ipset add ocbhoneycdnasnorangesa_v4 90.84.249.0/24 ipset add ocbhoneycdnasnorangesa_v4 90.84.160.0/24 ipset add ocbhoneycdnasnorangesa_v4 90.84.165.0/24 ipset add ocbhoneycdnasnorangesa_v4 90.84.162.0/24 ipset add ocbhoneycdnasnorangesa_v4 90.84.248.0/24 ipset add ocbhoneycdnasnorangesa_v4 90.84.163.0/24 ipset add ocbhoneycdnasnorangesa_v4 90.84.161.0/24 # Create IPv6 ipset ipset create ocbhoneycdnasnorangesa_v6 hash:net family inet6 -exist ipset flush ocbhoneycdnasnorangesa_v6 # Add IPv6 ranges ipset add ocbhoneycdnasnorangesa_v6 2a01:c9c0:8014::/48 ipset add ocbhoneycdnasnorangesa_v6 2a01:c9c0:8018::/48 ipset add ocbhoneycdnasnorangesa_v6 2a01:c9c0:8030::/48 ipset add ocbhoneycdnasnorangesa_v6 2a01:c9c0:8012::/48 ipset add ocbhoneycdnasnorangesa_v6 2a01:c9c0:8016::/48 ipset add ocbhoneycdnasnorangesa_v6 2a01:c9c0:801a::/48 ipset add ocbhoneycdnasnorangesa_v6 2a01:c9c0:8010::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set ocbhoneycdnasnorangesa_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set ocbhoneycdnasnorangesa_v4 src -j DROP # ip6tables -A INPUT -m set --match-set ocbhoneycdnasnorangesa_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set ocbhoneycdnasnorangesa_v6 src -j DROP echo "IP ranges for OCB_HONEY_CDN_ASN - Orange S.A. loaded successfully!" echo "IPv4 ranges: 8" echo "IPv6 ranges: 7"