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 list --filter finds exit nodes by country

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

tailscale exit-node list --filter=Netherlands

Lists the exit nodes available to you by country and suggests a recommended one.

Picking an exit node from a long menu is slow. The CLI can narrow the list.

The exit-node command inspects the exit nodes available to you. The list subcommand takes a country filter:

tailscale exit-node list --filter=Netherlands
tailscale exit-node suggest

suggest gives a recommended exit node, and the docs link it to the auto exit node feature. You can also hand the choice over entirely: tailscale set --exit-node=auto:any is accepted by set.

I live in the Netherlands, so a Dutch exit node is the one I would reach for first when I am abroad. A country filter finds it in one line.

Caveat: the docs do not describe the output of suggest in detail, and which nodes show up depends on what your tailnet and policy allow. If the list is empty, nothing in your tailnet is offering one, or your access rules hide it.

If you manage several exit nodes, say one per country, this is also a decent way to check that each one is still advertised and visible to you before a trip.

It does not replace reading the policy, but it beats scrolling a menu on a small screen, especially in a phone-sized terminal over SSH.

Further reading: Tailscale CLI reference, Exit nodes, On this site: keep your printer reachable on an exit node with –exit-node-allow-lan-access, On this site: tailscale ping tells you if a device is reached directly or through a relay, On this site: 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