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

3 天前
 oyama

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 正常

可能会是什么原因呢?

549 次点击
所在节点    宽带症候群
3 条回复
oyama
3 天前
更正:3 、使用官方节点,默认配置 OmitDefaultRegions:False 结果:IPV4 stun 正常,ipv6 正常
zzyyzz
2 天前
测一下你自建 DERP 的 ipv6 的 stun 服务能通吗。
oyama
2 天前
@zzyyzz

2025/09/02 12:34:49 netcheck: received STUN packet from [2402:4e00:xxxx:xxxx:xxxxxx]:3478

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1156583

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX