Integration: Tailscale

Your Wall and Its KVMs on Your Tailnet

Tailscale lets the wall reach KVMs wherever they are, and lets people reach the wall, with no port open to the internet. qKVM finds the tailnet's machines, serves Tailscale's own certificate for its name, and talks to each device directly, as on a local network.

What It Does on a Tailnet

KVMs found on the tailnet

Find KVMs asks the machines Tailscale says are online: 256 at the most, of 100.64.0.0/10 only. Nothing is added that you do not tick.

A certificate browsers trust

--tls-tailscale shows Tailscale's certificate to whoever opens the wall at its ts.net name: no warning to click through, renewed without a restart.

Only the wall reaches the KVMs

The KVMs tagged tag:kvm, the wall tag:qkvm: access rules let the wall reach the KVMs, and people the wall's port 8787 alone.

Never Funnel

The wall holds KVM passwords and presses servers' power buttons: it is for your tailnet, not the internet. qKVM never switches Funnel on, nor anything else of Tailscale's.

A Comet joins by itself

A GL.iNet Comet has a Tailscale client of its own: switch it on in its web page, with an auth key tagged tag:kvm.

In Docker beside it

A Compose file runs qKVM in the network of Tailscale's container, with nothing published on the host's own network.

MagicDNS names

The wall answers every name under ts.net as its own. On a plain install with MagicDNS on, a KVM can be added by its name.

No key in sight

qKVM never logs, shows back or exports a key or a token of a tailnet.

Set It Up in Docker

  1. An auth keyTailscale's admin console, Settings, Keys: one tagged tag:qkvm.
  2. In .envBeside the Compose file, TS_AUTHKEY and the key, for the first start only.
  3. Start itDocker Compose with the Tailscale file: qKVM runs in the network of Tailscale's container.
  4. Open itAt the wall's ts.net name on port 8787, with the setup code from qKVM's log.

The commands: docker compose -f docker-compose.tailscale.yml up -d, then https://qkvm.<your tailnet>.ts.net:8787/ with the code from docker compose -f docker-compose.tailscale.yml logs qkvm. On a plain install, --bind tailscale listens on the tailnet's address and on this computer alone, and --allow-from 100.64.0.0/10 turns everybody else away before there is a sign-in page to guess at.

Good to Know

Certificates
Switch on HTTPS Certificates in Tailscale's admin console (DNS). The machine's name and the tailnet's are then written into the public Certificate Transparency logs.
Renewal
qKVM asks Tailscale again every six hours, every hour in the certificate's last two weeks, and serves a new one from the next connection on.
Not as root
On Linux, tailscaled hands the certificate only to an account named in TS_PERMIT_CERT_UID. The Compose file sets it for the image's account, 10001.
The local API
In a container, Tailscale's socket is mounted read-only and asked only where it is root's or qKVM's own. On Windows the command is asked, never the named pipe.
Pinned image
The Compose file names Tailscale's image by its digest, never by whatever stable or latest points to on the day.
How it was tried
On a real tailnet on Linux. --tls-tailscale on Windows and the Compose file were tried against stand-ins only.