#!/bin/bash # # DIGICOMTECH IP Ranges - iptables/ipset rules # ASN: AS2568 # Generated: 2025-12-15 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create digicomtech_v4 hash:net -exist ipset flush digicomtech_v4 # Add IPv4 ranges ipset add digicomtech_v4 38.44.15.0/24 ipset add digicomtech_v4 184.95.231.0/24 ipset add digicomtech_v4 38.44.14.0/24 ipset add digicomtech_v4 104.192.17.0/24 ipset add digicomtech_v4 38.44.8.0/21 ipset add digicomtech_v4 104.192.16.0/21 ipset add digicomtech_v4 38.44.12.0/24 ipset add digicomtech_v4 104.192.21.0/24 ipset add digicomtech_v4 104.192.22.0/24 ipset add digicomtech_v4 104.192.16.0/24 ipset add digicomtech_v4 104.192.23.0/24 ipset add digicomtech_v4 204.101.160.0/24 ipset add digicomtech_v4 162.142.127.0/24 ipset add digicomtech_v4 104.192.18.0/24 ipset add digicomtech_v4 38.44.13.0/24 ipset add digicomtech_v4 104.192.20.0/24 ipset add digicomtech_v4 104.192.19.0/24 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set digicomtech_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set digicomtech_v4 src -j DROP echo "IP ranges for DIGICOMTECH loaded successfully!" echo "IPv4 ranges: 17" echo "IPv6 ranges: 0"