gtmux / Direct 隧道Direct tunnel
Direct:连不上 Cloudflare 时的隧道Direct: the tunnel for when Cloudflare’s network is blocked
「任意网络」默认走 Standard:零配置的托管隧道,走 Cloudflare 的网络,免费,绝大多数网络下就该用它。但有些网络(部分公司内网、部分地区)会封锁或劫持 Cloudflare 的网络,Standard 在那里连不上。Direct 为此存在:走 443 端口直连 gtmux 自己的服务器,绕开被封的那一段。 "Anywhere" defaults to Standard: a zero-config hosted tunnel over Cloudflare’s network, free, and the right choice on most networks. Some networks (certain corporate ones, certain regions) block or hijack Cloudflare’s network, and Standard cannot connect there. Direct exists for that: it goes straight over port 443 to gtmux's own server and never touches the blocked network.
先确认你真的需要First, check you actually need it
Standard 能连上就用 Standard。Direct 的唯一用处是在 Standard 连不上的网络里连上,速度没有差别。判断办法:gtmux tunnel 起不来、手机端报 1033/530、或 ~/.local/share/gtmux/tunnel.log 里反复出现连不上 Cloudflare 的错误,这时才需要 Direct。 If Standard connects, use Standard. Direct’s only purpose is to connect where Standard cannot; it is no faster. The signs: gtmux tunnel won't come up, the phone shows error 1033/530, or ~/.local/share/gtmux/tunnel.log keeps failing to reach Cloudflare. That is when you need Direct.
解锁与使用Unlock and use
gtmux tunnel --redeem <访问码> # unlock once — writes the config for this Mac
gtmux tunnel --backend self # then run Direct (or flip it in the menu bar) 菜单栏 app 里同样能操作:偏好设置 → 远程访问 → 任意网络下把隧道切到直连,未解锁时会提示你贴访问码。访问码等同凭证,别贴到公开的地方。 The menu-bar app does the same: Preferences → Remote access → under Anywhere, switch the tunnel to Direct; if not yet unlocked it prompts for the access code. An access code is a credential; don't paste it anywhere public.
获取访问码Get an access code
写封邮件到 gtmux@ccy.dev,说明你的使用场景,一般 24 小时内回复价格与付款方式。Direct 是付费解锁:它背后是一台真实运转、有带宽成本的服务器。 Email gtmux@ccy.dev with a line about your use case; you'll hear back within a day with the price and payment options. Direct is a paid unlock: there is a real server with real bandwidth behind it.
或直接购买(微信/支付宝):爱发电 · gtmux Direct 访问码 ¥68,付款后 24 小时内通过爱发电私信发码。 Or buy directly (WeChat/Alipay): Afdian · gtmux Direct access code, ¥68; the code arrives by Afdian DM within 24 hours.
海外买家(国际信用卡,$9.99):Lemon Squeezy,付款后在确认页点按钮即时取码。 International cards ($9.99): Lemon Squeezy; get your code instantly on the confirmation screen after payment.
不想付费?自托管,完全支持Rather not pay? Self-hosting is fully supported
有自己的服务器和域名,就不需要访问码:仓库里的 deploy/self-tunnel/ 一键脚本把同一套 Direct 架在你自己的机器上,GTMUX_SELFTUNNEL_URL + GTMUX_SELFTUNNEL_SECRET 指过去即可。gtmux 是开源项目,付费的只是「用我们这台服务器」这一件事。 With your own server and domain you don't need a code: deploy/self-tunnel/ in the repo stands up the same Direct stack on your own machine; point GTMUX_SELFTUNNEL_URL + GTMUX_SELFTUNNEL_SECRET at it. gtmux is open source; the only thing that costs money is using our server.
← 手机与网页远程管理指南 · 远程访问参考 ← the phone & web guide · remote-access reference