Closed WeeAris closed 4 months ago
看起来你启用了 clash 的 tun 配置,请不要再使用 模块的 tproxy。 更新,看到你没有启用 auto route,所以 tun 没有实际启用。
Tun 与 Tproxy 应该是可以共用的,但由核心提供的自动路由( auto route )功能不能满足要求,要自己写路由表。
如果想要 tun 与其他 VPN 共用,可以参考 https://sing-box.sagernet.org/configuration/route/#override_android_vpn 使用该参数,sing-box 与 Clash.Meta 都使用了 sing-tun 实现,所以 https://sing-box.sagernet.org/configuration/inbound/tun 页面的配置绝大多数共用。
为什么我用你的不成功。用box_for_root 能成功
准确的说就是使用box4magisk的透明代理作为其他VPN应用的前置代理,组成代理链。我使用clash meta核心,将VPN应用(Adguard VPN和NekoBox)加入TPROXY白名单进行实验,流量会回环。 以下是我的部分配置文件:
scripts/box.config
clash/config.yaml