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: clear every Serve and Funnel setting with tailscale serve reset

Network and access
~/tips/tip-tailscale-serve-reset

tailscale serve reset

Lists what a machine shares over Tailscale and wipes all Serve settings in one command.

Turning a share off properly is fiddlier than turning it on.

To remove one share you have to repeat the original flags and add off. The docs say the target is optional, but the other flags are required. After a few experiments that gets annoying, and it is easy to forget what you started.

Look first, then wipe:

tailscale serve status
tailscale serve reset

status prints what this machine currently shares. reset clears the whole Serve configuration in one go. Funnel has the same pair: tailscale funnel status and tailscale funnel reset.

If you only want to drop a single path, the targeted form still exists, for example tailscale serve --https=443 --set-path=/foo off.

The caveat is the obvious one. Reset does not ask which share you meant. If something on the machine relies on a Serve rule you forgot about, it stops working until you set it up again. I would read the status output before I press enter.

My habit is to run serve status every time I sit down at a machine I have not touched for a while. It takes a second and it answers the question of what this box is offering the tailnet.

Further reading: tailscale serve, tailscale funnel, On this site: add –bg to tailscale serve so it survives a reboot, On this site: Funnel only listens on ports 443, 8443 and 10000

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