#!/bin/bash # # OCBHONEY - Orange S.A. IP Ranges - iptables/ipset rules # ASN: AS2280 # Generated: 2025-12-15 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create ocbhoneyorangesa_v4 hash:net -exist ipset flush ocbhoneyorangesa_v4 # Add IPv4 ranges ipset add ocbhoneyorangesa_v4 90.84.154.0/24 ipset add ocbhoneyorangesa_v4 90.84.176.0/21 ipset add ocbhoneyorangesa_v4 90.84.39.0/24 ipset add ocbhoneyorangesa_v4 90.84.176.0/22 ipset add ocbhoneyorangesa_v4 90.84.172.0/22 ipset add ocbhoneyorangesa_v4 90.84.184.0/21 ipset add ocbhoneyorangesa_v4 90.84.155.0/24 ipset add ocbhoneyorangesa_v4 90.84.180.0/22 ipset add ocbhoneyorangesa_v4 90.84.43.0/24 ipset add ocbhoneyorangesa_v4 90.84.44.0/22 ipset add ocbhoneyorangesa_v4 90.84.196.0/22 ipset add ocbhoneyorangesa_v4 90.84.251.0/24 ipset add ocbhoneyorangesa_v4 90.84.15.0/24 ipset add ocbhoneyorangesa_v4 90.84.240.0/22 ipset add ocbhoneyorangesa_v4 90.84.192.0/21 ipset add ocbhoneyorangesa_v4 90.84.20.0/22 ipset add ocbhoneyorangesa_v4 90.84.42.0/24 ipset add ocbhoneyorangesa_v4 90.84.168.0/21 ipset add ocbhoneyorangesa_v4 90.84.168.0/22 ipset add ocbhoneyorangesa_v4 90.84.40.0/24 ipset add ocbhoneyorangesa_v4 90.84.252.0/23 ipset add ocbhoneyorangesa_v4 90.84.154.0/23 ipset add ocbhoneyorangesa_v4 90.84.16.0/22 ipset add ocbhoneyorangesa_v4 90.84.16.0/21 ipset add ocbhoneyorangesa_v4 90.84.11.0/24 ipset add ocbhoneyorangesa_v4 90.84.253.0/24 ipset add ocbhoneyorangesa_v4 90.84.192.0/22 ipset add ocbhoneyorangesa_v4 90.84.188.0/22 ipset add ocbhoneyorangesa_v4 90.84.14.0/24 ipset add ocbhoneyorangesa_v4 90.84.252.0/24 ipset add ocbhoneyorangesa_v4 90.84.240.0/21 ipset add ocbhoneyorangesa_v4 90.84.14.0/23 ipset add ocbhoneyorangesa_v4 90.84.184.0/22 ipset add ocbhoneyorangesa_v4 90.84.244.0/22 ipset add ocbhoneyorangesa_v4 90.84.254.0/24 ipset add ocbhoneyorangesa_v4 90.84.40.0/21 # Create IPv6 ipset ipset create ocbhoneyorangesa_v6 hash:net family inet6 -exist ipset flush ocbhoneyorangesa_v6 # Add IPv6 ranges ipset add ocbhoneyorangesa_v6 2a01:c9c0:800f::/48 ipset add ocbhoneyorangesa_v6 2a01:c9c0:8000::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set ocbhoneyorangesa_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set ocbhoneyorangesa_v4 src -j DROP # ip6tables -A INPUT -m set --match-set ocbhoneyorangesa_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set ocbhoneyorangesa_v6 src -j DROP echo "IP ranges for OCBHONEY - Orange S.A. loaded successfully!" echo "IPv4 ranges: 36" echo "IPv6 ranges: 2"