#!/bin/bash # # LSHIY IP Ranges - iptables/ipset rules # ASN: AS955 # Generated: 2026-08-14 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create lshiy_v4 hash:net -exist ipset flush lshiy_v4 # Add IPv4 ranges ipset add lshiy_v4 66.118.228.0/22 ipset add lshiy_v4 66.118.229.0/24 ipset add lshiy_v4 66.118.228.0/24 ipset add lshiy_v4 66.118.230.0/24 ipset add lshiy_v4 103.203.242.0/24 ipset add lshiy_v4 66.118.231.0/24 ipset add lshiy_v4 103.203.242.0/23 ipset add lshiy_v4 103.203.243.0/24 # Create IPv6 ipset ipset create lshiy_v6 hash:net family inet6 -exist ipset flush lshiy_v6 # Add IPv6 ranges ipset add lshiy_v6 2401:4020::/32 ipset add lshiy_v6 2606:82c0:1::/48 ipset add lshiy_v6 2606:82c0:22::/48 ipset add lshiy_v6 2606:82c0:44::/48 ipset add lshiy_v6 2606:82c0:42::/48 ipset add lshiy_v6 2606:82c0:31::/48 ipset add lshiy_v6 2606:82c0:23::/48 ipset add lshiy_v6 2606:82c0::/32 ipset add lshiy_v6 2606:82c0:21::/48 ipset add lshiy_v6 2606:82c0:2::/47 ipset add lshiy_v6 2606:82c0:14::/48 ipset add lshiy_v6 2606:82c0:32::/48 ipset add lshiy_v6 2606:82c0:41::/48 ipset add lshiy_v6 2606:82c0:12::/48 ipset add lshiy_v6 2606:82c0:43::/48 ipset add lshiy_v6 2606:82c0:34::/48 ipset add lshiy_v6 2606:82c0:13::/48 ipset add lshiy_v6 2606:82c0:33::/48 ipset add lshiy_v6 2606:82c0:11::/48 ipset add lshiy_v6 2606:82c0:24::/48 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set lshiy_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set lshiy_v4 src -j DROP # ip6tables -A INPUT -m set --match-set lshiy_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set lshiy_v6 src -j DROP echo "IP ranges for LSHIY loaded successfully!" echo "IPv4 ranges: 8" echo "IPv6 ranges: 20"