Every rule explained¶
Below is a breakdown of every rule in our routing set. Rules are checked top to bottom — first match wins.
Overview: all 15 rules at a glance¶
graph LR
subgraph BLOCK["🚫 Block"]
R1["1. QUIC UDP:443"]
R6["6. Ads"]
R7["7. Windows telemetry"]
end
subgraph DIRECT["✅ Direct"]
R2["2. Private IPs"]
R3["3. Private domains"]
R4["4. BitTorrent protocol"]
R13["13. Russian sites"]
R14["14. Russian IPs"]
end
subgraph PROXY["🔒 Proxy"]
R5["5. DoH servers"]
R8["8. Telegram IPs"]
R9["9. Telegram domains"]
R10["10. Blocked IPs"]
R11["11. Blocked domains"]
R12["12. Google"]
R15["15. Everything else"]
end
Rule 1: Block QUIC (UDP:443)¶
Blocks QUIC (HTTP/3) protocol running over UDP port 443. When QUIC is blocked, browsers automatically fall back to regular HTTPS (TCP:443), which proxies cleanly through the tunnel.
Rules 2–3: Private networks direct¶
Rule 2 (geoip:private): Local IPs (192.168.x.x, 10.x.x.x, 127.0.0.1) → direct. Your router, NAS, printer, localhost.
Rule 3 (geosite:private): Local domains (localhost, *.local, *.lan) → direct.
Rule 4: Torrent direct¶
protocol: bittorrent: BitTorrent protocol from any torrent client → direct. Requires sniffing enabled in v2rayN. BitTorrent creates hundreds of connections — sending through proxy would overload the server.
Rule 5: DoH via proxy¶
DNS servers (dns.quad9.net, doh.mullvad.net) → proxy. Even though DoH is encrypted, your ISP can see which DNS server you connect to. Through proxy — ISP sees nothing.
Rules 6–7: Block ads and Windows telemetry¶
Rule 6 (geosite:category-ads-all): Blocks all known ad domains and trackers. Cleaner, faster browsing.
Rule 7 (geosite:win-spy): Blocks Windows telemetry domains (vortex.data.microsoft.com, etc.). Stops data collection at network level.
Rules 8–9: Telegram via proxy¶
Rule 8 (geoip:telegram): Telegram server IPs → proxy. Covers voice/video calls.
Rule 9 (geosite:telegram): Telegram domains → proxy. Covers web traffic.
Using geoip:telegram instead of manual IP ranges means the list auto-updates with geo-file updates.
Rules 10–11: Blocked in Russia → proxy¶
Rule 10 — Three IP lists for maximum coverage:
geoip:ru-blocked— official blocked IP registrygeoip:ru-blocked-community— community additionsgeoip:re-filter— IPs detected by active monitoring
Rule 11 (geosite:ru-blocked-all) — unified blocked domains list.
Rule 12: Google via proxy¶
All Google services (Search, YouTube, Gmail, Drive, Maps, Play Store, etc.) → proxy. Ensures all Google subdomains go through proxy even if not in ru-blocked-all.
Rules 13–14: Russian sites/IPs direct¶
Rule 13 (geosite:category-ru): Russian websites (VK, Yandex, Mail.ru, government services, banks, Avito, etc.) → direct.
Rule 14 (geoip:ru): Russian IP ranges → direct.
These rules come after blocked-site rules (10–11), so blocked Russian sites still go through proxy.
Rule 15: Everything else → proxy (final)¶
Any traffic not matching the 14 rules above → proxy. Safe default: if a blocked resource isn't in the lists, it still goes through proxy rather than being blocked directly.
Full routing flow¶
flowchart TD
START([New connection]) --> R1{QUIC?<br>UDP:443}
R1 -->|Yes| BLOCK1[🚫 Block]
R1 -->|No| R2{Private IP?}
R2 -->|Yes| DIRECT1[✅ Direct]
R2 -->|No| R3{Private domain?}
R3 -->|Yes| DIRECT1
R3 -->|No| R4{Torrent?}
R4 -->|Yes| DIRECT2[✅ Direct]
R4 -->|No| R5{DoH server?}
R5 -->|Yes| PROXY1[🔒 Proxy]
R5 -->|No| R67{Ads /<br>Telemetry?}
R67 -->|Yes| BLOCK2[🚫 Block]
R67 -->|No| R89{Telegram?}
R89 -->|Yes| PROXY1
R89 -->|No| R1011{Blocked<br>in Russia?}
R1011 -->|Yes| PROXY1
R1011 -->|No| R12{Google?}
R12 -->|Yes| PROXY1
R12 -->|No| R1314{Russian<br>site/IP?}
R1314 -->|Yes| DIRECT3[✅ Direct]
R1314 -->|No| R15[🔒 Proxy<br>default]