Tailscale PCP(5351) 探测导致 sing-box TUN CPU 占用高 #9955
Hendrix4858
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Tailscale 服务向默认网关发 UDP 5351 的 PCP/NAT-PMP 探测,用于端口映射打洞.
sing-box TUN 开了 auto_route,把默认网关改成了 172.18.0.2(TUN 自身)→ 探测被灌回 sing-box
gvisor UDP NAT 表几分钟内被填满 1024 条流 → CPU 升高(这是 sing-box 的 mixed 栈中 gvisor 部分在背 UDP NAT 表)
CPU 占用率30-50%左右
现在使用禁用udp的5351端口(用于 NAT-PMP)和设置环境变量
TS_DISABLE_PORTMAPPER=1解决.TS_DISABLE_PORTMAPPER 会降低 Tailscale 直连打洞成功率(走 DERP 中继)
tailscale/tailscale#13145
All reactions