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 get shows what a device is set to, and prints it as flags you can reuse

Network and access
~/tips/tailscale-get

tailscale get

Prints a device's current Tailscale settings, or the flags that would recreate them.

I always forget which options I set on a Tailscale device. tailscale get reads them back, so I stop guessing.

It prints the preferences the machine has right now, the ones you set with tailscale set or tailscale up. Run it without an argument (or with all) and you get everything. Name one setting and you only get that value. The names are the same as the flags of tailscale set.

tailscale get
tailscale get --json
tailscale get --set-flags

The last one is my favourite. --set-flags prints the settings as command-line flags, so tailscale set $(tailscale get --set-flags) sets every preference to the value it already has. That is handy as a base when you want to copy the same setup to a second box, say another Unraid server: print the flags, read them, change the ones that should differ.

One caveat: if you use fast user switching, it only shows the preferences of the tailnet you are connected to at that moment. I’d also read the flag list before pasting it anywhere, because it can contain a hostname you don’t want to share.

Further reading: Tailscale CLI reference, Tailscale on Unraid (Unraid docs)

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 exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link