gtmux / Direct 隧道Direct tunnel
Direct:用于连接受限网络的隧道Direct tunnel for networks that block Cloudflare
「任意网络」默认使用免费的 Standard 隧道,通过 Cloudflare 网络连接。部分公司网络或地区无法连接 Cloudflare 时,可改用 Direct,通过 443 端口连接 gtmux 的服务器。 "Anywhere" uses the free Standard tunnel through Cloudflare by default. If your network blocks Cloudflare, Direct connects through gtmux’s server on port 443.
何时使用 DirectWhen to use Direct
Standard 可以正常连接时,继续使用即可。Direct 用于解决 Cloudflare 连接受限的问题。可先检查以下情况:gtmux tunnel 无法启动、手机端报 1033/530,或 ~/.local/share/gtmux/tunnel.log 里反复出现无法连接 Cloudflare 的错误。 Keep using Standard if it connects. Direct addresses restrictions on Cloudflare connections. Check whether gtmux tunnel won't come up, the phone shows error 1033/530, or ~/.local/share/gtmux/tunnel.log keeps failing to reach Cloudflare.
解锁与使用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. The hosted Direct service is paid to cover server and bandwidth costs.
或直接购买(微信/支付宝):爱发电 · 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.
自托管 DirectSelf-host Direct
有自己的服务器和域名,就不需要访问码:仓库里的 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 deploys the Direct stack on your own machine; point GTMUX_SELFTUNNEL_URL + GTMUX_SELFTUNNEL_SECRET at it. gtmux is open source; self-hosting does not require purchasing the hosted service.
← 手机与网页远程管理指南 · 远程访问参考 ← the phone & web guide · remote-access reference