#!/bin/bash # # BARRA-NET-AS IP Ranges - iptables/ipset rules # ASN: AS1311 # Generated: 2025-12-15 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create barranetas_v4 hash:net -exist ipset flush barranetas_v4 # Add IPv4 ranges ipset add barranetas_v4 144.203.129.0/24 ipset add barranetas_v4 144.203.128.0/24 ipset add barranetas_v4 144.203.130.0/24 ipset add barranetas_v4 193.164.145.0/24 ipset add barranetas_v4 144.203.132.0/24 ipset add barranetas_v4 144.203.142.0/24 ipset add barranetas_v4 144.203.133.0/24 ipset add barranetas_v4 144.203.141.0/24 ipset add barranetas_v4 144.203.131.0/24 ipset add barranetas_v4 144.203.143.0/24 ipset add barranetas_v4 144.203.128.0/23 ipset add barranetas_v4 144.203.140.0/24 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set barranetas_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set barranetas_v4 src -j DROP echo "IP ranges for BARRA-NET-AS loaded successfully!" echo "IPv4 ranges: 12" echo "IPv6 ranges: 0"