V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
idblife
V2EX  ›  macOS

macos 下的 stash 和 tailscale 不能一起使用?

  •  1
     
  •   idblife · 2022-07-27 22:24:02 +08:00 · 4490 次点击
    这是一个创建于 814 天前的主题,其中的信息可能已经有所发展或是发生改变。
    macos 系统,之前一直用 clash for windows ,发现有些场景代理不好用。
    换用 stash 感觉还不错,但是 tailscale 连不上其他机器了,倒是显示 tailscale 已连接。
    是因为都用的系统 vpn 所以冲突了?
    24 条回复    2024-08-21 19:33:59 +08:00
    idblife
        1
    idblife  
    OP
       2022-07-27 22:26:48 +08:00
    公司的 vpn 也不能连接了,虽然系统里显示已连接。
    但是公司的 vpn 和 tailscale 是能同时连接的。
    zhenjiachen
        2
    zhenjiachen  
       2022-07-27 22:38:20 +08:00 via iPhone
    tailscale 和 surge 也不能同时使用,可能是规则有问题
    idblife
        3
    idblife  
    OP
       2022-07-27 22:43:18 +08:00
    @zhenjiachen
    这就比较郁闷了
    之所以从 clash for windows 换成 stash 是为了解决 brew upgrade 的问题,
    明明同样的规则文件,clash for windows 无法更新,stash 却可以。
    Tink
        4
    Tink  
       2022-07-27 22:54:12 +08:00 via Android
    其他的不清楚,但是 clash x pro 和 zerotier 是可以同时使用的
    idblife
        5
    idblife  
    OP
       2022-07-27 23:44:46 +08:00
    @Tink
    clash 这种貌似不算系统 vpn
    xtinput
        6
    xtinput  
       2022-07-28 07:48:45 +08:00
    ClashX Pro 呢?
    idblife
        7
    idblife  
    OP
       2022-07-28 08:53:02 +08:00 via iPhone
    @xtinput
    今天试试 clashx pro
    我理解内核都是 clash ,应该和 clash for windows 表现一致
    xtinput
        8
    xtinput  
       2022-07-28 08:55:26 +08:00
    clashx pro 增强模式是虚拟一个网卡出来的,只开增强模式就 OK ,不需要再打开系统代理
    acoada
        9
    acoada  
       2022-07-28 14:33:10 +08:00
    不要用 App Store 版的 Tailscale ,直接去官网下载。
    XSNARUTO
        10
    XSNARUTO  
       2022-07-29 00:28:19 +08:00 via iPhone
    只是针对 brew 的话,其实终端配置一下代理就行了。cfw 的面板我还是更喜欢。
    wipbssl
        11
    wipbssl  
       2022-07-29 09:32:35 +08:00
    之前确实可以同时使用,但可能是 stash 更新后改了什么,现在用 stash 就不能用 tailscale ,quantumult x 倒是还能和 tailscale 一起用
    idblife
        12
    idblife  
    OP
       2022-07-29 16:47:59 +08:00
    @wipbssl
    stash 作者是不是在本站?
    wipbssl
        13
    wipbssl  
       2022-07-30 13:32:12 +08:00
    @idblife https://www.v2ex.com/t/839223?p=1 ,确实有号,但看起来不怎么活动
    CurtisAsia
        14
    CurtisAsia  
       2023-04-08 09:11:20 +08:00
    @idblife 之前和 Stash 反馈了这个问题 他们说近期修复了 看下新版 :D
    yy306525121
        15
    yy306525121  
       274 天前
    @wipbssl 大哥你的 quantumultx 怎么设置的和 tailscale 一起用啊? 我的开了 quantumultx 之后 tailscale 都连不上, 不知道该怎么设置
    lovepocky
        16
    lovepocky  
       219 天前
    @yy306525121 你是不是开了兼容性增强, 我这边不开是能同时用的, 开了就连不上了
    yy306525121
        17
    yy306525121  
       218 天前
    @lovepocky 是的, 哈哈, 不过现在没用 tailscale 了, 有了公网 Ipv4, 有空我再试试
    jianzhao123
        18
    jianzhao123  
       181 天前
    @wipbssl 老哥,现阶段 quantumultx 和 tailscale 还有路子一起用吗,现在连上圈 X ,tailscale 就不行了
    skies457
        19
    skies457  
       143 天前
    @jianzhao123 编辑 qx 配置文件,把 general 部分 excluded_routes 中的 100.64.0.0/10 改为 100.64.0.0/9
    ethdesign
        20
    ethdesign  
       119 天前
    @skies457 有试过,貌似不行,方便指导下吗?这个同时开启 Tailscale 与 QuantumultX 的需求对很多人来说还蛮重要的。
    skies457
        21
    skies457  
       109 天前
    @ethdesign qx 会覆写 excluded routes 到默认网口,导致 tailscale 失效,你可以在同时开启 qx 和 tailscale 时跑一下 route get 100.64.x.x 试试,看看输出的 interface 是不是默认的 en0

    解决办法就是把 excluded routes 设置得大一点,让 tailscale 的规则优先匹配,就像我之前提到的那样在 excluded routes 里加上 100.64.0.0/9 ,这样 qx 就覆盖不到 tailscale 的 100.64.0.0/10 路由。如果你是 subnets 不通,也可以如法炮制,excluded routes 里加上 subnets 大 1 bit 的子网
    ethdesign
        22
    ethdesign  
       106 天前
    @skies457 感谢🙏,我尝试下。
    yes365
        23
    yes365  
       62 天前
    @skies457 不能理解,quanx 里面的 100.64.0.0/10 不是已经把 ip 给排除了么, 为啥还需要扩大呢
    skies457
        24
    skies457  
       58 天前
    @yes365 quanx 排除 cidr 的方式是添加一条到默认接口的路由,这样会覆盖掉 tailscale 添加的到 utun 的路由。路由规则是由细到粗的,把 quanx 排除的 cidr 扩大一点就会让 quanx 的路由优先级低于 tailscale 的路由
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2408 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 04:37 · PVG 12:37 · LAX 21:37 · JFK 00:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.