#!/bin/bash # # COLGATE-UNIVERSITY IP Ranges - iptables/ipset rules # ASN: AS1289 # Generated: 2025-12-15 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create colgateuniversity_v4 hash:net -exist ipset flush colgateuniversity_v4 # Add IPv4 ranges ipset add colgateuniversity_v4 149.43.0.0/18 ipset add colgateuniversity_v4 149.43.192.0/18 ipset add colgateuniversity_v4 149.43.64.0/18 ipset add colgateuniversity_v4 149.43.128.0/18 ipset add colgateuniversity_v4 149.43.0.0/16 # Create IPv6 ipset ipset create colgateuniversity_v6 hash:net family inet6 -exist ipset flush colgateuniversity_v6 # Add IPv6 ranges ipset add colgateuniversity_v6 2602:819:1000::/40 ipset add colgateuniversity_v6 2602:819:100f::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set colgateuniversity_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set colgateuniversity_v4 src -j DROP # ip6tables -A INPUT -m set --match-set colgateuniversity_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set colgateuniversity_v6 src -j DROP echo "IP ranges for COLGATE-UNIVERSITY loaded successfully!" echo "IPv4 ranges: 5" echo "IPv6 ranges: 2"