Documentation

Architecture, Rules & Operations Guide

Practical workflows for five-mode routing, subscription cleanup, .mrs rule-set inspection, MITM certificate trust, and multi-hop proxy chains.

1. Five-Mode Unified Switcher

Switch seamlessly between Split, Proxy, Global, TUN, and Direct from the Dashboard, Top Bar, or Menu Tray. Explicit user rules and rule-sets are always evaluated ahead of mode fallback so LAN bypasses and block rules never regress.

  • Split (PAC): Only rule-matched traffic enters Nexora; direct connections stay native OS sockets.
  • Proxy / Global: System proxy at 127.0.0.1:2333; rules still run first before group or global selection.
  • TUN: Native macOS utun / Windows WinTun L3 capture with process-level routing logs.
export HTTP_PROXY=http://127.0.0.1:2333
export HTTPS_PROXY=http://127.0.0.1:2333
export ALL_PROXY=socks5://127.0.0.1:2333

2. Subscriptions, Groups & Collapsible Cards

Import Clash / Mihomo YAML, Shadowrocket .conf, Base64 subscriptions, or raw URIs (ss://, vless://, hysteria2://, anytls://, trojan://, vmess://). Left-rail cards fold/expand cleanly and display unsupported protocol reasons when present.

  • Custom Groups: Pin select, url-test, fallback, or load-balance groups by regex filter or explicit nodes.
  • Protocol Badges: Nodes surface REALITY, Hysteria2, AnyTLS, SS 2022, gRPC, and HTTPUpgrade tags live.
vless://uuid@edge.example.com:443?security=reality&type=grpc&serviceName=Gun#JP-gRPC

3. Routing Logs -> One-Click Deduplicated Rules

Every inbound HTTP/HTTPS/SOCKS5/UDP/TUN event records process name, destination host/URL, matched rule, and outbound node. Expand any row in Routing Logs to prepend exact host, *.root domain, direct, reject, or app rules with automatic signature deduplication.

DOMAIN-SUFFIX,anthropic.com,Proxy
PROCESS-NAME,Cursor,AI-Group
IP-CIDR,192.168.0.0/16,DIRECT,no-resolve

4. Native .mrs Binary Rule-Sets & Settings Sync

Open Settings -> Rule-Sets & Config to manage Clash rule-providers and custom .mrs lists. URLs ending in .mrs auto-enable zstd binary decoding and display loaded entry counts, sync timestamps, and manual Refresh All.

rule-providers:
  ads_mrs: { type: http, behavior: domain, format: mrs, url: https://example.com/ads.mrs }
  lan_inline: { type: inline, behavior: ipcidr, payload: ["10.0.0.0/8"] }

5. HTTPS MITM, URL Rewrite & cURL Replay

Enable MITM in Capture & MITM, generate and trust the local root CA certificate in your OS keychain, and configure target hostnames. Inspect decrypted headers/bodies, inject or rewrite headers/302/body regex, copy cURL commands, or replay through the active proxy.

^https?://.*/beacon\.js - reject-200
^https?://api\.example\.com/.* "X-Env: staging" req-header

6. Multi-Hop Proxy Chains & Shadowsocks 2022 EIH

In Proxy Chains, enter 2+ node or group names separated by commas to build sequential dialer-proxy tunnels (entry -> relay -> exit), failover backups, or round-robin balancers. For multi-user SS 2022, supply iPSK:uPSK directly in the node password.

ss://2022-blake3-aes-256-gcm:iPSK_B64:uPSK_B64@relay.example.com:8388#SS22-EIH