分页: 1 / 1

sing-box 绕过 tailscale 路由解决直连打洞问题

发表于 : 2023年 12月 13日 19:20
BobMaster
默认配置下tun模式里tailscale是没法直接打洞成功的,根据官方文档,tailscale使用100.64.0.0/10fd7a:115c:a1e0::/48子网段,我们将这个网段排除在sing-box tun的路由之外即可。
版本:>= 1.10.0

代码: 全选

"inbounds": [
    {
      "type": "tun",
      "address": [
        "172.18.0.1/30",
        "fdfe:dcba:9876::1/126"
      ],
      "auto_route": true,
      "route_exclude_address": [
        "100.64.0.0/10",
        "fd7a:115c:a1e0::/48"
      ]
    }
  ]
版本:<1.10.0

代码: 全选

"inbounds": [
    {
      "type": "tun",
      "inet4_address": "172.19.0.1/30",
      "inet6_address": "fdfe:dcba:9876::1/126",
      "auto_route": true,
      "inet4_route_exclude_address": [
        "100.64.0.0/10"
      ],
      "inet6_route_exclude_address": [
          "fd7a:115c:a1e0::/48"
      ]
    }
  ]