termal.in

← Blog

One Docker container that reaches your whole home network

· Termalin Team nasdockerconnectorhomelabself-hosting

If you already run Docker on a NAS or a home-lab box, you can reach the entire network it sits on — every other machine’s SSH, every internal web UI, every RDP or VNC desktop — from one small container, with no inbound port opened and no key left on anything. This is different from SSHing into the NAS itself: there, the NAS is the destination. Here, the NAS is the gateway, and one Termalin Connector container behind it is the door to the whole LAN.

Why a container, not a binary

A Connector normally installs as a system service with one line. But a NAS is happiest running containers, not stray binaries, and some boxes (a router, a minimal appliance) can only run containers. The official image fits the way a home lab already works:

  • One place to manage it — it shows up next to your other containers, with the same restart policy and logs.
  • Nothing to open. It dials out to Termalin over HTTPS and holds the link open. It never listens, so NAT, CGNAT and your router’s firewall are all irrelevant.
  • Reaches past itself. From its spot on the LAN it can reach any other private address on the network, not just the host it runs on.

The image: four megabytes, no shell, no SSH server

ghcr.io/termalinapp/termalin-connector:<version>   (and :latest)
  • About 4 MB. Just the static Connector and CA certificates — no shell, no package manager, no SSH server. It runs as uid 10001 and keeps its enrolment in the /data volume.
  • Multi-arch: linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6, linux/386 and linux/riscv64. Docker picks the right one — arm/v7 for a 32-bit Pi 2/3 or most ARM NAS boxes, arm/v6 for a Pi 1 or Zero.
  • Built in the open, in the public termalinapp/termalin repository, only from the signed release binaries on termal.in.

Enrol it in one docker run

Get an enrolment token in the cabinet (Connectors → Add), then:

docker run -d --name termalin --restart unless-stopped \
  -v termalin:/data \
  -e TERMALIN_TOKEN=<token> \
  -e TERMALIN_TARGET=192.168.1.10:22 \
  -e TERMALIN_USER=deploy \
  ghcr.io/termalinapp/termalin-connector
VariableWhat it does
TERMALIN_TOKENEnrolment token; used only on the first start, when /data has no config yet.
TERMALIN_TARGEThost:port of the one SSH server that terminals, commands and files go to — the NAS, or another machine. Inside the container 127.0.0.1 is the container itself, which has no SSH server.
TERMALIN_USERLogin user on that SSH server.
TERMALIN_NAMEName in the cabinet (defaults to the container’s hostname).

On Synology, Container Manager: add ghcr.io/termalinapp/termalin-connector from the Registry, set those variables, map a volume to /data, turn “auto restart” on, and enable SSH under Control Panel → Terminal & SNMP. On Unraid: Docker → Add Container, point /data at /mnt/user/appdata/termalin. A bind-mounted folder must be writable by uid 10001 (chown 10001:10001 …); a named volume is handled for you.

Two kinds of reach, and only one needs an SSH server

This is the part worth getting straight, because it decides what you can do with no sshd anywhere on the network:

SSH reach — needs a server and the sign-in line. A browser terminal, commands (ssh_exec), SFTP files, backups and metrics all go to the one machine in TERMALIN_TARGET. For that machine to accept Termalin’s short-lived certificates, add the sign-in line the container prints at enrolment (docker exec termalin termalin-agent check prints it again) to that login user’s ~/.ssh/authorized_keys:

cert-authority,principals="termalin-<account id>" ssh-ed25519 AAAA… termalin-connector

Dial reach — needs no SSH at all. Internal sites (any web UI) and remote desktops (RDP, VNC) don’t go through SSH: the Connector just opens a connection straight to the target’s own host:port. So you can publish your whole rack of dashboards and desktops with no sshd anywhere — only a Connector container.

What that gets you across the LAN

With one container on the network:

  • Every machine’s shell — set TERMALIN_TARGET to each box in turn (one target SSH server per Connector; run a second container for a second shell target), reached from a browser terminal on any device.
  • Every internal web UI — Home Assistant on :8123, Grafana on :3000, Portainer, Proxmox, your NAS admin page — added as internal sites by their private address. The step-by-step is in reach Home Assistant or Grafana without port forwarding.
  • Desktops — an RDP or VNC machine anywhere on the LAN, in a browser tab, with no port 3389 open to the internet.
  • An AI agent — point Claude or ChatGPT at the hosted MCP endpoint to run commands on the SSH target, bounded by a per-Connector command policy and written to an audit log.

Dial targets have to be private — RFC 1918 (10.x, 172.16–31.x, 192.168.x), loopback, link-local, CGNAT 100.64/10 (Tailscale), IPv6 ULA. The Connector is not a relay to the internet, and cloud metadata addresses are always refused.

Updates and the one rule to remember

The container never updates itself — pull a new tag and recreate it (docker compose pull && docker compose up -d); the /data volume keeps the enrolment, so you don’t enrol again. And keep one running container per enrolment: two containers on the same /data volume would be the same Connector twice.

Where this image goes next

The same ~4 MB image is how you reach a cloud private network too — one replica in Kubernetes reaches cluster-internal services with no Ingress or VPN, and an ECS task can replace an AWS bastion host. For a Raspberry Pi behind home NAT, the binary installer handles every model from a Zero up — see Raspberry Pi remote access without port forwarding.


Termalin is a free, cross-platform SSH client with a web terminal, internal sites and a keyless Connector for private networks — download it, or read the Connector in Docker. The Connector needs Pro or the 14-day trial.

Try it on one host.

Termalin is a fast SSH client for you — and your agents.

Free tier · 14-day Pro trial · pricing

Add Termalin as a preferred source on Google