Skip to content

NetBird の STUN を外のもの(Cloudflare)にして、内蔵の STUN をやめる - #448

Merged
5ym merged 1 commit into
mainfrom
netbird-external-stun
Oct 18, 2026
Merged

5ym merged 1 commit into
mainfrom
netbird-external-stun

Conversation

@5ym

@5ym 5ym commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

routing peer が内蔵の STUN(stun:nb.doany.io:3478、WAN 側)に届かず、IPv4 の P2P の候補を出せていなかった(ステータスが Checking... のまま、wait for gathering timed out が 5 分ごと)。

  • stuns に stun:stun.cloudflare.com:3478 を書き、内蔵の STUN を止める(v0.81.2 の combined/config.yaml.example にある設定)
  • hostPort 3478 と、それを説明していたコメント・docs(router.md の表の行など)を消す
  • マージ後に routing peer の STUN が Available になり、ICE の候補に srflx が出るかを確かめる

🤖 Generated with Claude Code

https://claude.ai/code/session_01JbmWyUB9jcBcYCnNyiGBSV

内蔵の STUN は WAN 側(nb.doany.io の A)で問い合わせるので、クラスタの中の routing peer からは
ルーターで折り返さず届かず、IPv4 の P2P の候補を出せなかった(ステータスが Checking... のまま)。
config の stuns に外の STUN を書くと内蔵は止まる(combined/config.yaml.example、v0.81.2)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JbmWyUB9jcBcYCnNyiGBSV
@claude

claude Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Claude finished @5ym's task in 16s —— View job


レビュー結果

問題なしです。

  • stunPorts と hostPort 3478 の記述は、コード・docs のどちらにも残っていません。grep で確認しました。
  • namespace.yaml の PSA の理由は、routing peer の hostPort 51820 と NET_ADMIN に書き換わっています。routing-peer.yaml の実態と合っています。privileged のままで正しいです。
  • deployment.yaml の Recreate は、RWO の PVC を理由に残っています。コメントも実態に合っています。
  • docs の更新(router.md の表の行、talos.md、decisions.md)は漏れなく揃っています。

要確認(コードからは確かめられません)

  • 説明どおり、stuns を書くと内蔵の STUN が止まるのか。netbirdio/netbird-server:0.81.2 の config.yaml.example で書式を確かめてください。この環境では参照していません。
  • マージ後に、routing peer の STUN が Available になるか。ICE の候補に srflx が出るか。PR 本文のとおり確認してください。
  • ルーターの UDP 3478 の転送は、もう不要になります。ルーター側の設定が残っていれば、閉じてよいか確認してください。これはリポジトリ外の作業です。
    | branch: netbird-external-stun

@5ym
5ym merged commit e5eb43e into main Oct 18, 2026
1 check passed
@5ym
5ym deleted the netbird-external-stun branch October 18, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant