sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

[Windows] TUN 模式下 IPv6 访问异常

Open DarkRRb opened this issue 4 weeks ago • 0 comments

操作系统

Windows

系统版本

Windows 10

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本

sing-box version 1.12.12

Environment: go1.25.3 windows/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_acme,with_clash_api,with_tailscale
Revision: 54ed58499d7063136ed52dabf87d179d252425d0
CGO: disabled

描述

TUN 模式下配置了 IPv6 后, 访问 IPv6 刷出大量日志, 且无法访问

确定不使用 sing-box 的时候可以访问 IPv6 网站

我的 IPv6 地址也是 ULA 的,可能是这个原因?

重现方式

{
    "log": {
        "level": "trace",
        "timestamp": true
    },
    "dns": {
        "servers": [
            {
                "type": "tls",
                "tag": "dnspod-dns",
                "server": "1.12.12.12"
            }
        ],
        "rules": [
            {
                "action": "route",
                "server": "dnspod-dns"
            }
        ],
        "disable_cache": true,
        "reverse_mapping": true
    },
    "inbounds": [
        {
            "type": "tun",
            "tag": "tun-in",
            "address": [
                "10.255.255.253/30",
                "fdfe:dcba:9876::1/126"
            ],
            "auto_route": true,
            "strict_route": true
        }
    ],
    "outbounds": [
        {
            "type": "direct",
            "tag": "direct-out"
        }
    ],
    "route": {
        "rules": [
            {
                "action": "sniff",
                "sniffer": [
                    "dns"
                ]
            },
            {
                "protocol": "dns",
                "action": "hijack-dns"
            },
            {
                "inbound": "tun-in",
                "action": "route",
                "outbound": "direct-out"
            }
        ],
        "auto_detect_interface": true
    }
}

日志

https://github.com/DarkRRb/SingBoxLog

包含了从启动到结束的所有日志, 访问 IPv6 后刷屏非常快, 因此日志有点大, 对此进行了压缩

支持我们

完整性要求

  • [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • [x] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • [x] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • [x] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

DarkRRb avatar Dec 07 '25 19:12 DarkRRb