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: let Tailscale count as local for Sonarr and Radarr logins

Network and access
~/tips/tip-arr-trust-cgnat-tailscale

SONARR__AUTH__TRUSTCGNATIPADDRESSES=true

Makes Tailscale addresses count as local when Sonarr or Radarr skips the login for local addresses.

Authentication Required has a setting that skips the login for local addresses. Tailscale addresses are not local by default, and there is a hidden switch for that.

In Sonarr, Radarr and Prowlarr you can set Authentication Required to Disabled for Local Addresses. Tailscale hands out addresses in 100.64.0.0/10, the CGNAT range, and the apps do not treat that range as local on their own. There is an option for it that is not in the UI. You set it in config.xml or with an environment variable, and it is off by default.

On Unraid I would add it as a variable on the container, then restart it.

SONARR__AUTH__TRUSTCGNATIPADDRESSES=true
RADARR__AUTH__TRUSTCGNATIPADDRESSES=true
PROWLARR__AUTH__TRUSTCGNATIPADDRESSES=true

Use the line that matches the app. It only changes the Disabled for Local Addresses check, so with Authentication Required set to Enabled nothing changes.

The caveat is the one the wiki repeats: a spoofed X-Forwarded-For header can fool this setting if you sit behind a reverse proxy that is not in Trusted Networks. If you do not need the skip at all, I would leave Authentication Required on Enabled and type the password.

I find this the tidiest way to keep a login-free LAN and still reach the apps from my phone over the tailnet, without opening a port to the internet.

Further reading: Sonarr settings, Servarr Wiki, Radarr settings, Servarr Wiki, On this site: click Backup now in Sonarr and Radarr, then take the zip off the server, On this site: set Minimum Free Space in Sonarr and Radarr so a full disk stops the imports, On this site: Hardlinks in Sonarr and Radarr: instant imports and seeding for free

Going deeper: Guide: link Prowlarr to Sonarr and Radarr once, and stop typing indexers into every app

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