#!/bin/bash # # MOE-BGP IP Ranges - iptables/ipset rules # ASN: AS1012 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create moebgp_v4 hash:net -exist ipset flush moebgp_v4 # Add IPv4 ranges ipset add moebgp_v4 216.146.28.0/23 ipset add moebgp_v4 199.189.156.0/22 # Create IPv6 ipset ipset create moebgp_v6 hash:net family inet6 -exist ipset flush moebgp_v6 # Add IPv6 ranges ipset add moebgp_v6 2602:234::/40 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set moebgp_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set moebgp_v4 src -j DROP # ip6tables -A INPUT -m set --match-set moebgp_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set moebgp_v6 src -j DROP echo "IP ranges for MOE-BGP loaded successfully!" echo "IPv4 ranges: 2" echo "IPv6 ranges: 1"