blycoris
V2EX  ›  问与答

Mac mini 上的 tailscale 做为出口端的时候,外部设备墙外流量无法连接

  •  
  •   blycoris · May 7, 2025 · 3308 views
    This topic created in 546 days ago, the information mentioned may be changed or developed.

    openwrt 做主路由负责端口转发,mac mini 安装了 surge 做旁路由以及安装 tailscale 做出口端,手机安装 tailscale 来使用家里的 tailscale 管理上网流量,手机上国内流量可以通,telegram 可以连接,但是大部分翻墙流量无法连接,surge 的请求里也看不到无法连接的翻墙流量

    12 replies  •  2026-03-06 10:39:52 +08:00
    IDAEngine
    IDAEngine
    May 7, 2025
    1
    tailscale 做好路由表分流,不然转发的流量都走国内出口
    daisyfloor
    daisyfloor
    May 7, 2025
    2
    为什么还需要 tailcale ,手机里把网关指向 mac mini 不就完事了么?
    blycoris
    blycoris
    OP
    May 7, 2025
    3
    @daisyfloor 不是本地网络,外网的设备要用内网 tailscale 做为出口翻墙
    blycoris
    blycoris
    OP
    May 7, 2025
    4
    @IDAEngine 添加下面的路由不管用,也找不到教程,头大
    sudo route add -net 0.0.0.0/1 -interface utun4
    sudo route add -net 128.0.0.0/1 -interface utun4
    daisyfloor
    daisyfloor
    May 7, 2025
    5
    @blycoris 明白了。但感觉有点折腾。

    手机自己搞定呗。先走虚拟网进内网,本身就多一层。延迟和速度也不好。
    phenixc
    phenixc
    May 7, 2025
    6
    surge 有 tun 模式吗,开 tun 模式试试呢。不过这个方案并不好,我使用了一段时间,所有国内流量都经过家里网口出去,会慢很多,尤其是扫码时搁那转圈圈烦的要死,
    我现在是家里部署 tailscale ,同时搭建 v6 的 ss6 节点,云服务器部署 tailscale 和家里组网,同时部署 v4 的 ss4 节点,然后 fallback ss6 和 ss4, 需要回家时有 v6 直连 ss6 回家,没 v6 走 ss4 中转回家。其他流量手机分流不经过家里。
    blycoris
    blycoris
    OP
    May 7, 2025
    7
    @phenixc 这太复杂了,我准备放弃了
    SakuraYuki
    SakuraYuki
    May 8, 2025
    8
    你都用 surge 了为什么不直接用 surge ponte ,完全不用配置,ios 也不用反复开关 surge 和 tailscale ,规则里把内网地址加一个 device:xxx 规则就行了
    blycoris
    blycoris
    OP
    May 8, 2025
    9
    @SakuraYuki 也在用着,不是只能连接家庭设备吗,但是实现不了外地设备的流量走 device:xxx 这个内网的设备吧
    IDAEngine
    IDAEngine
    May 8, 2025
    10
    参考下 tailscale + Mullvad VPN ,超级简单
    wyman222
    11
    兄弟,折腾好了吗,我这也是。手机上 tailscale 连接家里 Mac ,国外网始终上不去,国内网能上但是慢。倒是 mac 所处的局域网链接的倒是挺快的 折腾了三天还没搞定
    wyman222
    12
    @phenixc 兄弟有具体教程吗,求推荐一下。被折磨的死去活来了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4912 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 08:04 · PVG 16:04 · LAX 00:04 · JFK 03:04
    ♥ Do have faith in what you're doing.