brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: tailscale exit-node suggest picks a recommended exit node

Network and access
~/tips/tip-tailscale-exit-node-suggest

tailscale exit-node suggest

Asks Tailscale which exit node it recommends for this device, without switching to it.

If your tailnet has several exit nodes, choosing one by name gets old fast. Tailscale will make the pick for you and show it first, which I like, because nothing changes until I say so.

tailscale exit-node suggest

The command prints the ID of the exit node Tailscale recommends. The docs show the output in this shape:

Suggested exit node: <ID>.
To accept this suggestion, use `tailscale set --exit-node=<ID>`.

It only suggests. Your current exit node setting stays as it was, so you can run it as often as you like. The recommendation is based on your location and latency, according to the Tailscale page on recommended exit nodes.

To accept the suggestion, copy the command from the output:

tailscale set --exit-node=<ID>

The same flag takes a Tailscale IP or a machine name, and an empty value turns the exit node off again. According to the CLI docs it also accepts auto:any, which leaves the choice to Tailscale instead of to you.

If you want to see every candidate and not only the winner, tailscale exit-node list lists the exit nodes in your tailnet, and its --filter flag narrows the list by country.

One caveat: the command doesn’t switch anything. I’d run tailscale status afterwards to check which exit node you are really using.

Further reading: Recommended exit nodes, Tailscale CLI

Going deeper: Why a Tailscale device vanishes after 180 days, and how to stop it

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off caddy reverse-proxy --from :2016 --to :9000 All Network and access tips (163) All topics

Link