V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
oyama
V2EX  ›  宽带症候群

tailscale 自建 derp stun IPV6 no, but OS has support 不工作

  •  
  •   oyama · 1 天前 · 429 次点击

    Access controls:

    {
    	"randomizeClientPort": true,
    	"derpMap": { 
    		"OmitDefaultRegions":true,
    		"Regions": {
    		"900": {
    			"RegionID": 900,
    			"RegionCode": "GZ",
    			"RegionName": "tencent",
    			"Nodes": [{
    			"Name":             "a",
    			"RegionID":         900,
    			"HostName":         "ts-derp.xxx.com",
    			"DERPPort":         443,
    		}]},
    	}},
    	"nodeAttrs": [
    		{
    			"target": ["*"],
    			"ipPool": ["100.64.18.0/24"],
    		},
    	],
    }
    
    

    1 、使用自建 DERP ,OmitDefaultRegions:True 屏蔽官方节点开启 结果:IPV4 stun 正常,ipv6 no, but OS has support

    tailscale netcheck --verbose
    2025/09/02 12:34:49 netcheck: sent to x.x.x.x:3478
    2025/09/02 12:34:49 netcheck: sent to [2402:4e00:xxxx:xxxx:xxxxxx]:3478
    2025/09/02 12:34:49 portmap: [v1] Got PMP response; IP: 192.168.30.251, epoch: 2383592
    2025/09/02 12:34:49 portmap: [v1] Got PCP response: epoch: 2383592
    2025/09/02 12:34:49 netcheck: received STUN packet from x.x.x.x:3478
    2025/09/02 12:34:49 netcheck: received STUN packet from [2402:4e00:xxxx:xxxx:xxxxxx]:3478
    2025/09/02 12:34:49 portmap: [v1] UPnP reply {Location:http://192.168.31.1:5351/rootDesc.xml Server:MiWiFi/x UPnP/1.1 MiniUPnPd/2.1 USN:uuid:5c324c80-1fff-4fae-997b-abbbf977de89::urn:schemas-upnp-org:device:InternetGatewayDevice:1}, "HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=120\r\nST: urn:schemas-upnp-org:device:InternetGatewayDevice:1\r\nUSN: uuid:5c324c80-1fff-4fae-997b-abbbf977de89::urn:schemas-upnp-org:device:InternetGatewayDevice:1\r\nEXT:\r\nSERVER: MiWiFi/x UPnP/1.1 MiniUPnPd/2.1\r\nLOCATION: http://192.168.31.1:5351/rootDesc.xml\r\nOPT: \"http://schemas.upnp.org/upnp/1/0/\"; ns=01\r\n01-NLS: 1754400791\r\nBOOTID.UPNP.ORG: 1754400791\r\nCONFIGID.UPNP.ORG: 1337\r\n\r\n"
    2025/09/02 12:34:49 portmap: UPnP meta changed: [{Location:http://192.168.31.1:5351/rootDesc.xml Server:MiWiFi/x UPnP/1.1 MiniUPnPd/2.1 USN:uuid:5c324c80-1fff-4fae-997b-abbbf977de89::urn:schemas-upnp-org:device:InternetGatewayDevice:1}]
    2025/09/02 12:34:49 netcheck: portMap done
    2025/09/02 12:34:49 netcheck: [v2] attempting to do captive portal detection on interface en0
    2025/09/02 12:34:49 netcheck: [v2] 2 available captive portal detection endpoints; trying 2
    2025/09/02 12:34:49 netcheck: captivedetection: failed to set IP_BOUND_IF (ifIndex=14): invalid argument
    2025/09/02 12:34:49 netcheck: captivedetection: failed to set IP_BOUND_IF (ifIndex=14): invalid argument
    2025/09/02 12:34:49 netcheck: DetectCaptivePortal(found=false)
    2025/09/02 12:34:49 netcheck: [v1] report: udp=true v6=false v6os=true mapvarydest=true portmap=UMC v4a=x.x.x.x:7651 captiveportal=false derp=900 derpdist=900v4:14ms
    2025/09/02 12:34:49 netcheck: GetReport took 770ms; err=<nil>
    
    Report:
    	* Time: 2025-09-02T04:34:49.905493Z
    	* UDP: true
    	* IPv4: yes, x.x.x.x:7651
    	* IPv6: no, but OS has support
    	* MappingVariesByDestIP: true
    	* PortMapping: UPnP, NAT-PMP, PCP
    	* CaptivePortal: false
    	* Nearest DERP: 
    	* DERP latency:
    		- tencent-derp: 13.7ms  (derp900, )
    

    2 、使用自建 DERP ,OmitDefaultRegions:False 屏蔽官方节点关闭 结果:IPV4 stun 正常,ipv6 正常

    3 、使用官方节点,默认配置 OmitDefaultRegions:True 结果:IPV4 stun 正常,ipv6 正常

    可能会是什么原因呢?

    3 条回复    2025-09-03 12:30:57 +08:00
    oyama
        1
    oyama  
    OP
       1 天前
    更正:3 、使用官方节点,默认配置 OmitDefaultRegions:False 结果:IPV4 stun 正常,ipv6 正常
    zzyyzz
        2
    zzyyzz  
       21 小时 37 分钟前
    测一下你自建 DERP 的 ipv6 的 stun 服务能通吗。
    oyama
        3
    oyama  
    OP
       18 小时 57 分钟前
    @zzyyzz

    2025/09/02 12:34:49 netcheck: received STUN packet from [2402:4e00:xxxx:xxxx:xxxxxx]:3478
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1200 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 23:28 · PVG 07:28 · LAX 16:28 · JFK 19:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.