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: Linux needs tailscale set --accept-routes to use subnet routes

Linux
~/tips/tip-tailscale-accept-routes

sudo tailscale set --accept-routes

Makes a Linux machine use the subnet routes that other tailnet devices advertise.

The subnet router is approved, the route is visible in the admin console, and your Linux laptop still cannot reach the network behind it.

Linux clients do not pick up new subnet routes on their own. Other platforms (Android, iOS, macOS, tvOS, Windows) do. On Linux you opt in:

sudo tailscale set --accept-routes

The router side looks like this, with your own subnet in place of the example:

sudo tailscale set --advertise-routes=192.0.2.0/24

The router also needs IP forwarding on, and the route must be approved in the admin console or through autoApprovers.

Caveat: for high availability setups with several routers advertising the same routes, the docs advise against --accept-routes on the routers. A standby router can accept its own routes from the primary and make a silly path. Use --advertise-routes alone there.

If a route seems to be missing, I would check the client first and the router second. The client is the more common culprit, and the command to fix it is short enough to remember.

Think of it as the Linux exception: the other platforms do it by default, so a missing route on a Linux box looks like a bug.

Further reading: Subnet routers, On this site: advertise the more specific route too when subnet routes overlap, On this site: autoApprovers saves you the clicks in the admin console

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link