From 623f3a55603120ba46feec45891d8a513424502f Mon Sep 17 00:00:00 2001 From: Ruk Doe Date: Sun, 18 Oct 2026 13:12:33 +0900 Subject: [PATCH] =?UTF-8?q?NetBird=20=E3=81=AE=20routing=20peer=20?= =?UTF-8?q?=E3=81=AE=20WireGuard=20=E3=82=92=2051820=20=E3=81=AB=E6=88=BB?= =?UTF-8?q?=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 51822 は wg-easy と併走していた頃(2026-09-07 に撤去)の名残。ルーターは DMZ で 全部をノードに向けているので、ルーター側の変更は要らない。 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JbmWyUB9jcBcYCnNyiGBSV --- apps/netbird/routing-peer.yaml | 11 +++++------ docs/router.md | 2 +- docs/talos.md | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/netbird/routing-peer.yaml b/apps/netbird/routing-peer.yaml index c9c36946..95139f64 100644 --- a/apps/netbird/routing-peer.yaml +++ b/apps/netbird/routing-peer.yaml @@ -107,17 +107,16 @@ spec: value: https://nb.doany.io - name: NB_LOG_LEVEL value: info - # 51820 ではなく 51822。元は wg-easy と併走していたときの回避で、 - # あちらは撤去済み(2026-09-07)。戻す必然性が無いのでそのまま - # (STUN が外から通っているのでホールパンチは成立する)。 + # WireGuard の口。下の hostPort と揃える。2026-10-18 までは wg-easy と併走していた頃の名残で 51822 だった。 + # ルーターは DMZ で全部をノードに向けているので、番号を変えてもルーターは触らない(docs/router.md)。 - name: NB_WIREGUARD_PORT - value: "51822" + value: "51820" ports: # hostNetwork をやめたので、WireGuard の口は hostPort で出す。 # 無くても relay 経由で通信は成立するが、直接 P2P にならない。 - name: wireguard - containerPort: 51822 - hostPort: 51822 + containerPort: 51820 + hostPort: 51820 protocol: UDP securityContext: capabilities: diff --git a/docs/router.md b/docs/router.md index dc88fdfa..dec4b048 100644 --- a/docs/router.md +++ b/docs/router.md @@ -39,7 +39,7 @@ DMZ の向け先を変えると、下の全部と AdGuard の split-horizon が | 53 UDP・TCP / 853 TCP | AdGuard Home(DNS / DoT) | 開けている(下の「53 番は外にも開けている」) | | 8443 UDP・TCP | LiveKit(Matrix の通話。apps/matrix/README.md) | 要る | | 3478 UDP | NetBird の STUN(apps/netbird/) | 要る | -| 51822 UDP | NetBird の routing peer(WireGuard) | 要る | +| 51820 UDP | NetBird の routing peer(WireGuard) | 要る | | 3129 TCP | 3proxy の TLS 口(apps/3proxy/) | 外から使うなら要る | | 6443 TCP | Kubernetes の API(`ks.doany.io:6443`。recovery/README.md) | 要る(認証つき) | diff --git a/docs/talos.md b/docs/talos.md index 9c2eaa95..e533b13f 100644 --- a/docs/talos.md +++ b/docs/talos.md @@ -68,7 +68,7 @@ curl -X POST --data-binary @schematic.yaml https://factory.talos.dev/schematics | --- | --- | | `kube-system` | Cilium(privileged・hostNetwork・hostPath・SYS_ADMIN/NET_ADMIN・hostPort)。**Talos の側で例外にしてある** | | `local-path-storage` | ヘルパー Pod の hostPath。[`talos/manifests/local-path.yaml`](../talos/manifests/local-path.yaml) がラベルを付ける | -| `netbird` | hostPort 3478(内蔵 STUN。UDP なのでゲートウェイを通せない)・51822、NET_ADMIN 等、hostPath | +| `netbird` | hostPort 3478(内蔵 STUN。UDP なのでゲートウェイを通せない)・51820、NET_ADMIN 等、hostPath | | `denpa` | privileged・hostPath(`/dev/dvb`・`/dev/bus`・`/dev/dri`)、PT3 を付け直す DaemonSet([apps/pt3/](../apps/pt3/))。**ラベルは denpa リポジトリの `deploy/namespace.yaml`** にあり、gitops だけを grep すると抜けて見える | | `adguardhome` | hostPort 53 / 853 | | `matrix` | hostPort 8443(LiveKit) |