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: keep your printer reachable on an exit node with --exit-node-allow-lan-access

Tailscale
~/tips/tip-tailscale-exit-node-lan

sudo tailscale set --exit-node=100.101.102.103 --exit-node-allow-lan-access=true

Keeps local network devices like printers reachable while the rest of your traffic uses an exit node.

You turn on an exit node and the printer in the next room disappears.

That is the point of an exit node: all traffic goes out through it, including traffic meant for your local network. There is a flag for exactly this case.

sudo tailscale set --exit-node=100.101.102.103 --exit-node-allow-lan-access=true

With it, the client still reaches devices on its local network while everything else goes through the exit node. To stop using the exit node, set the value empty:

sudo tailscale set --exit-node=

You can also give a name instead of an IP, and tailscale status shows which devices offer themselves as exit nodes.

Caveat from the docs: this exposes you to untrusted devices on that local network. At home that is fine. On a coffee shop network it defeats half the reason for using an exit node, so I would leave it off there.

Use the flag on trusted networks and skip it on untrusted ones. Only the last part of the command changes, so it is easy to flip when you move between places.

I would check the status before I leave home, so I know which mode I am in.

Further reading: Exit nodes, Tailscale CLI reference, On this site: tailscale exit-node list –filter finds exit nodes by country, On this site: an exit node needs a grant to autogroup:internet, not to itself

More Tailscale tips tailscale funnel --bg 3000 All Tailscale tips (2) All topics

Link