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

分享讨论IT相关的内容
回复
头像
BobMaster
锋芒初露
锋芒初露
帖子: 1207
注册时间: 2020年 12月 7日 08:05
来自: 神秘的东方
我的状态: 🎯
为圈友点赞: 349 次
被赞次数: 189 次
联系:

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

帖子 BobMaster »

默认配置下tun模式里tailscale是没法直接打洞成功的,根据官方文档,tailscale使用100.64.0.0/10fd7a:115c:a1e0::/48子网段,我们将这个网段排除在sing-box tun的路由之外即可。

代码: 全选

"inbounds": [
    {
      "type": "tun",
      "sniff": true,
      "inet4_address": "172.19.0.1/30",
      "inet6_address": "fdfe:dcba:9876::1/126",
      "auto_route": true,
      "stack": "system",
+      "inet4_route_exclude_address": [
+        "100.64.0.0/10"
+      ],
+      "inet6_route_exclude_address": [
+          "fd7a:115c:a1e0::/48"
+      ]
    }
  ]
人生如音乐,欢乐且自由
回复
  • 猜你喜欢
    回复总数
    阅读次数
    最新帖子

在线用户

正浏览此版面之用户: 没有注册用户 和 16 访客