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 ping tells you if a device is reached directly or through a relay

Network and access
~/tips/tip-tailscale-ping

tailscale ping my-nas

Shows whether your connection to another Tailscale device is direct or goes through a relay, and how fast it is.

When a Tailscale connection feels slow, the first question for me is whether it is direct or relayed. A normal ping cannot tell you. tailscale ping can.

Use a device name from your tailnet:

tailscale ping my-nas

The first replies often say they came via DERP, which is Tailscale’s relay. Tailscale then tries to set up a direct path, and when it works the replies change to a direct address with a lower latency. If it stays on DERP, a firewall or a strict NAT is probably in the way, and traffic works but is slower.

Caveat: the first pings can go via a relay even when a direct path is possible, so give it a few seconds before you decide anything. tailscale status also shows whether a peer is direct or relayed.

Further reading: tailscale ping (Tailscale CLI docs), Connection types (Tailscale docs), On this site: run tailscale ping to see if your connection is direct or relayed, On this site: tailscale exit-node list –filter finds exit nodes by country, On this site: Why a Tailscale device vanishes after 180 days, and how to stop it

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