#!/bin/bash # # TIETOTIE-AS - Tietoevry Oyj IP Ranges - iptables/ipset rules # ASN: AS375 # Generated: 2025-12-16 # Source: ScaniteX (https://scanitex.com) # # Usage: chmod +x this_script.sh && sudo ./this_script.sh # # Create IPv4 ipset ipset create tietotieastietoevryoyj_v4 hash:net -exist ipset flush tietotieastietoevryoyj_v4 # Add IPv4 ranges ipset add tietotieastietoevryoyj_v4 192.49.112.0/22 ipset add tietotieastietoevryoyj_v4 192.49.192.0/18 ipset add tietotieastietoevryoyj_v4 192.49.126.0/24 ipset add tietotieastietoevryoyj_v4 192.49.128.0/22 ipset add tietotieastietoevryoyj_v4 192.49.174.0/23 ipset add tietotieastietoevryoyj_v4 192.49.140.0/23 ipset add tietotieastietoevryoyj_v4 192.49.72.0/23 ipset add tietotieastietoevryoyj_v4 192.49.10.0/24 ipset add tietotieastietoevryoyj_v4 192.49.117.0/24 ipset add tietotieastietoevryoyj_v4 192.49.72.0/24 ipset add tietotieastietoevryoyj_v4 192.49.92.0/22 ipset add tietotieastietoevryoyj_v4 192.49.133.0/24 ipset add tietotieastietoevryoyj_v4 192.49.19.0/24 ipset add tietotieastietoevryoyj_v4 192.49.9.0/24 ipset add tietotieastietoevryoyj_v4 192.163.145.0/24 ipset add tietotieastietoevryoyj_v4 192.49.146.0/24 ipset add tietotieastietoevryoyj_v4 192.49.81.0/24 ipset add tietotieastietoevryoyj_v4 192.49.68.0/24 ipset add tietotieastietoevryoyj_v4 192.49.91.0/24 ipset add tietotieastietoevryoyj_v4 192.49.134.0/24 ipset add tietotieastietoevryoyj_v4 192.49.40.0/21 ipset add tietotieastietoevryoyj_v4 192.49.52.0/23 ipset add tietotieastietoevryoyj_v4 192.49.48.0/22 ipset add tietotieastietoevryoyj_v4 192.49.56.0/21 ipset add tietotieastietoevryoyj_v4 131.207.0.0/17 ipset add tietotieastietoevryoyj_v4 192.49.70.0/23 ipset add tietotieastietoevryoyj_v4 192.49.20.0/24 ipset add tietotieastietoevryoyj_v4 192.49.22.0/24 ipset add tietotieastietoevryoyj_v4 192.49.176.0/20 ipset add tietotieastietoevryoyj_v4 192.49.139.0/24 ipset add tietotieastietoevryoyj_v4 192.49.160.0/21 ipset add tietotieastietoevryoyj_v4 192.49.124.0/23 ipset add tietotieastietoevryoyj_v4 192.49.168.0/23 ipset add tietotieastietoevryoyj_v4 192.49.88.0/23 ipset add tietotieastietoevryoyj_v4 192.49.13.0/24 ipset add tietotieastietoevryoyj_v4 192.49.136.0/23 ipset add tietotieastietoevryoyj_v4 192.49.120.0/22 ipset add tietotieastietoevryoyj_v4 192.49.33.0/24 ipset add tietotieastietoevryoyj_v4 192.49.0.0/21 ipset add tietotieastietoevryoyj_v4 192.49.173.0/24 ipset add tietotieastietoevryoyj_v4 192.49.78.0/24 ipset add tietotieastietoevryoyj_v4 192.49.55.0/24 ipset add tietotieastietoevryoyj_v4 192.49.152.0/21 ipset add tietotieastietoevryoyj_v4 192.49.96.0/20 ipset add tietotieastietoevryoyj_v4 192.49.64.0/22 ipset add tietotieastietoevryoyj_v4 192.49.36.0/22 ipset add tietotieastietoevryoyj_v4 192.49.170.0/24 ipset add tietotieastietoevryoyj_v4 192.49.148.0/22 ipset add tietotieastietoevryoyj_v4 192.49.144.0/24 ipset add tietotieastietoevryoyj_v4 192.49.119.0/24 ipset add tietotieastietoevryoyj_v4 192.49.142.0/24 ipset add tietotieastietoevryoyj_v4 192.49.86.0/23 # Create IPv6 ipset ipset create tietotieastietoevryoyj_v6 hash:net family inet6 -exist ipset flush tietotieastietoevryoyj_v6 # Add IPv6 ranges ipset add tietotieastietoevryoyj_v6 2a03:9b80::/34 # Apply iptables rules (uncomment to use) # iptables -A INPUT -m set --match-set tietotieastietoevryoyj_v4 src -j ACCEPT # iptables -A INPUT -m set --match-set tietotieastietoevryoyj_v4 src -j DROP # ip6tables -A INPUT -m set --match-set tietotieastietoevryoyj_v6 src -j ACCEPT # ip6tables -A INPUT -m set --match-set tietotieastietoevryoyj_v6 src -j DROP echo "IP ranges for TIETOTIE-AS - Tietoevry Oyj loaded successfully!" echo "IPv4 ranges: 52" echo "IPv6 ranges: 1"