ssh-bridge 1.0.1: host port 2223 (2222 taken by core_ssh Terminal & SSH)

This commit is contained in:
Hermes Sysadmin committed 2026-11-19 23:37:35 +00:00
1 parent a1e2d6912e
commit 186481f8a1
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -3,11 +3,11 @@
What this is: one Alpine container running tailscaled + sshd. tailscale0 lives in
the container's own network namespace. The HAOS host and HA core never join the
tailnet and the container has no HA API access. Work laptop SSHes to
yellow:2222 (LAN/WAN), then jumps to tailnet hosts or opens a SOCKS proxy
yellow:2223 (LAN/WAN), then jumps to tailnet hosts or opens a SOCKS proxy
(`ssh -N -D 1080 bridge@...`) exactly like the old NAS VM did.
## Files
- config.yaml add-on manifest (NET_ADMIN + /dev/net/tun only; port 2222)
- config.yaml add-on manifest (NET_ADMIN + /dev/net/tun only; port 2223 on host, 2222 in-container)
- Dockerfile alpine + openssh + tailscale (community repo, in-image default)
- sshd_config key-only, AllowUsers bridge, forwarding on, everything else off
- run.sh tailscaled -> tailscale up (authkey from /share) -> sshd
@@ -23,7 +23,7 @@ yellow:2222 (LAN/WAN), then jumps to tailnet hosts or opens a SOCKS proxy
expiry 90d is fine; pre-authorize the node and add
the tag there if using auto-tags)
3. Start the add-on. First start registers the node `ssh-bridge`.
4. Router: forward new WAN port (e.g. 2222) → Yellow LAN IP:2222.
4. Router: forward new WAN port (e.g. 2222) → Yellow LAN IP:2223.
Keep the NAS VM bridge running until the new one is proven, then retire it.
5. Laptops: update ~/.ssh/config Host entries to the new port/host.