หน้านี้ยังไม่ได้แปลเป็นภาษาไทย จึงแสดงเป็นภาษาอื่น
Multi-transport guide (failover + traffic-class splitting)
bx supports six transport engines coexisting as peers: each can be used alone, combined into a failover pool, or split by traffic class. One core principle runs throughout: not leaking is the essence — for any transport/failover/split, an unhealthy tunnel is always a fail-closed Block, never a fallback to direct that exposes the real IP.
The six transports are not on one level — three tiers by today's blocking/detection landscape
⚠ Important: more protocols ≠ better. Since the GFW (2025-2026) upgraded with active probing + AI DPI, survival rates differ enormously between protocols. The tables below tier them by real-world effectiveness (data: GFW 2025-2026 measurements, see sources at the end), to help you choose correctly rather than pick at random.
🟢 Primary tier (still effective under strong adversarial conditions — prefer these two)
| Transport | scheme | Why it is strong | Role |
|---|---|---|---|
| REALITY | vless://…security=reality |
Borrows the TLS handshake of a real site (e.g. apple.com); an active prober that connects is forwarded to the real site and gets a normal response; early-2026 measurements show a 98-99% success rate, currently the stealthiest | First choice under heavy blocking (stealthy TCP) |
| hysteria2 | hysteria2:// hy2:// |
QUIC/UDP, faster on lossy, high-RTT links (cellular/cross-border); bare QUIC gets identified/throttled by SNI, so always pair it with salamander obfuscation | Speed tier (UDP) |
🟡 Compatibility tier (picks up the nodes you already have; under strong DPI, since 2025 these are mostly caught almost instantly — use with caution)
| Transport | scheme | Current status |
|---|---|---|
| trojan | trojan:// |
~90% detected after the 2025-08 GFW upgrade (active probing + TLS-in-TLS fingerprint) |
| vmess | vmess:// |
~80% detected since 2025-09 |
| shadowsocks | ss:// |
~95% detected (entropy fingerprint + ML), and the server IP is easily banned |
| brook | brook:// |
Embedded default, simplest; easily blocked in plaintext, can be disguised with wss/443 |
You can hand bx
vless:///hysteria2:///trojan:///ss:///vmess://share links from elsewhere directly and bx will accept them (bare links contain plaintext credentials; treat them like a password). But when you paste a compatibility-tier link intobx setupit warns you: these protocols are weak against today's strong DPI/server-side risk controls (including Claude/OpenAI/Google), and recommends switching the server to REALITY.
Recommended combination: REALITY (TCP) + hysteria2 (UDP) + brook (last resort)
This is exactly the shape bx's traffic-class splitting + failover is built to deliver, and the mainstream recommended solution for 2026 — both safe and fast:
- TCP/stealth goes through REALITY (the main transport), UDP/QUIC/speed goes through
hysteria2 (
udp.transport). - brook as fallback: it is embedded with zero extra server dependency, covering for health
jitter or a crashed process on the main transport.
Note that brook is weak against blocking — if REALITY is blocked because of escalated
censorship, brook most likely cannot save you either; the real anti-blocking redundancy should
be a second REALITY (different server IP / SNI / port). So the most robust
transports:order isreality (primary) › reality2 (backup) › brook (last resort).
Best configuration for REALITY / hysteria2 (the bx client defaults already follow 2026 practice)
REALITY: when bx parses vless://…reality it defaults to flow=xtls-rprx-vision (removes the
length fingerprint, reduces inner TLS overhead), fp=chrome (uTLS mimicking the Chrome
fingerprint), and TCP transport — these three are exactly the recommended 2026 production
configuration, no need to add them yourself.
Server-side essentials: borrow the SNI of a high-traffic real site that supports TLS1.3+H2, that you
do not control, and whose certificate chain is small enough (e.g.
www.cloudflare.com/www.apple.com; do not use www.microsoft.com — its certificate is too
large and the reality borrowed handshake fails, confirmed by a real-machine e2e test),
with the port on 443 or a high port the server already allows.
hysteria2: bx does not set up/down bandwidth by default → sing-box uses BBR (adaptive, a
safe default); Hysteria's Brutal fixed-rate algorithm is aggressive, but requires accurately
entering the link's real bandwidth, and a wrong value makes it worse, so it is not on by default.
Adding salamander obfuscation is strongly recommended against QUIC SNI detection: add
?obfs=salamander&obfs-password=<pw> to the link
(configure the same obfs on the server's hysteria2 inbound too). When UDP is throttled by the ISP,
priority: China Unicom (AS4837) > China Telecom.
Install the server with one command, sudo bx server up (see Server); if you maintain your own sing-box / Xray
server, for REALITY see reality-server-setup.md, and for hysteria2 use a sing-box hysteria2 inbound
(requires a TLS certificate, or self-signed + insecure; salamander obfs recommended).
Sources (GFW 2025-2026 measurements): gfw.report SS detection · USENIX'25 QUIC SNI censorship · 2026 protocol comparison · Hysteria2 against QUIC throttling.
1. Single transport (simplest)
One link is enough. A bare link works directly (it contains plaintext credentials and ends up in your shell history, so treat it like a password):
sudo bx setup 'vless://<uuid>@<vps>:9998?security=reality&pbk=...&sid=...&sni=www.apple.com'
bx up
bx status # the "Via" line shows which transport is in use
2. Automatic multi-transport failover (reality primary / brook backup)
Configure several links as an ordered priority pool; when the primary transport stays unhealthy it switches to a backup automatically, fail-closed throughout:
Option 1: a single bundle link (recommended, one paste configures it all)
bx blink 'vless://…reality…' 'brook://…' # multiple links → one failover bx:// (primary first)
# → bx://<bundle>
sudo bx setup 'bx://<bundle>' # automatically written as a transports: list
Option 2: write the config directly
# /etc/bx/config.yaml
transports:
- vless://<uuid>@<vps>:9998?security=reality&pbk=...&sid=...&sni=www.apple.com # primary
- brook://server?server=<vps>%3A9999&password=<pw> # backup
killswitch: true
Behavior: while the primary is healthy, use the primary; when it stays unhealthy (past the
hysteresis window) → automatically swapTo a backup; all unhealthy → keep the current one +
Block (judged to be a network problem, so no flapping between transports). The "Via" line of
bx status shows the currently active transport + the failover list in real time.
Debouncing: switching has hysteresis (switch only after consecutive unhealthy checks) + a cooldown (no switching right after a switch), so transient jitter does not cause flapping.
3. Traffic-class splitting: UDP via hysteria for speed, TCP via reality
Different protocols have different strengths — send UDP/QUIC through hysteria (native QUIC, fast on lossy links) and the remaining TCP through the main transport (reality for stealth):
# /etc/bx/config.yaml
server: vless://<uuid>@<vps>:9998?security=reality&... # main transport (TCP goes through it)
udp:
mode: proxy # must be proxy (otherwise udp.transport is an error)
transport: hysteria2://<pw>@<vps>:8443?sni=<domain> # UDP/QUIC goes through it
killswitch: true
The two tunnels run in parallel: if the UDP transport fails → UDP falls back to the main
transport (both go to the same VPS through the same encrypted tunnel, so the fallback does not
leak the real IP, it just loses the QUIC speed boost; bx status reports the number of
fallbacks); only if the main transport also fails does it Block — it never falls back to direct
at any time. bx status shows UDP→hysteria2@<vps>. This way it is both safe (neither leaks)
and fast (UDP uses the engine best suited to it).
UDP defaults to
mode: proxy, notblock. On a machine set up withbx setup, non-DNS UDP (QUIC/HTTP3, STUN, games) is forwarded through the tunnel, with the VPS as the exit. This is not a leak (it goes through that encrypted tunnel), but it is not "UDP is blocked" either.If you really want no UDP to go out at all, run
bx realtime off(it writesudp.modeasblock;bx realtime --helpdoes not list it). With protection on, bx restarts the tunnel on the spot for it to take effect — a second or two without network, while the kill switch keeps blocking; a hand-edited configuration file needsbx down && bx upto take effect. When a dedicated UDP transport (udp.transport) is configured,blockcannot be written; the two contradict each other. The cost is that QUIC has to fall back to TCP and real-time apps degrade. Three modes:proxy(default, through the tunnel) ·block(blocked) ·direct-realtime(really connects directly with the real IP, which leaks; for emergencies only). To speed up UDP separately, addudp.transport.
Safety guarantees (invariants)
- No path leaks: failover switching windows, traffic-class splitting, all transports — an unhealthy tunnel is always Block, never a fallback to direct.
- Private networks/China direct are unaffected: private networks are always direct; in non-global mode Chinese IPs/domains go direct (china list).
- Loop prevention: the servers of every transport (primary + backup + UDP) automatically get a routing bypass + static DNS, so the tunnel's own connections to its servers do not loop.
Troubleshooting
bx status # "Via" line: currently active + failover list + dedicated UDP
bx doctor # server_link / transports / udp_transport / connectivity probe
For pitfalls when running your own REALITY server see reality-server-setup.md: use port 443, pick
an SNI site that supports TLS 1.3 and has a certificate chain < ~4.5KB (default www.cloudflare.com), and test connectivity
on OpenWrt with curl, not /dev/tcp.