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 ↗

Guide: manage your Unraid server from anywhere with Tailscale and no open ports

manage your Unraid server from anywhere with Tailscale and no open ports

Guide unraid

10 steps 8 min read

The best port forward is the one that does not exist. I run Tailscale on my Unraid server precisely so that my Ziggo or KPN box has nothing forwarded to it, and the WebGUI and SSH are simply not on the internet. This is how I’d set it up: the Tailscale plugin on the server, key-only SSH, and then the satisfying part, deleting the old router rules. You need Unraid 7 or later (Tailscale’s own Unraid page says official support starts at v7), a free Tailscale account and a phone with mobile data for the final test.

Time
8 min
Steps
10
Updated
19 Nov 2026

You will learn

  • How it works without a single forward
  • Check your Unraid version
  • Install the Tailscale plugin and log…
  • Prove the tunnel works
  • SSH with keys only
The Unraid WebGUI dashboard, version 6.12.8, the screen you reach over your tailnet

Step 1 of 10: How it works without a single forward

Port forwarding means your router waits for strangers and hands them to the server. Tailscale turns that around: the server and your phone both connect outward, and Tailscale’s own write-up on NAT traversal says every step depends on outbound connections, so no inbound port needs to be open on either side. The two devices send UDP packets out at roughly the same time, which opens a return path in each firewall, and a coordination server helps them find each other. If the direct route fails, an encrypted relay called DERP carries the traffic until a direct path works.

So the router can have an empty forwarding table and the server is still reachable for you, and only for you, because the tunnel is encrypted and tied to your tailnet’s keys. A stranger who probes your public address finds nothing to talk to. The animation below shows it.

Animation: a stranger's packet is stopped at a router with zero port forwards, while packets from the phone travel through the WireGuard tunnel to the Unraid server
Animation: no open ports, tailnet path from phone to server

Step 2 of 10: Check your Unraid version

Open the Unraid WebGUI and look at the version in the top left corner. The Unraid Tailscale page says its steps are current for Unraid 7 and later, so on an older release I would update first. Also open the Tailscale admin console and, as Unraid’s docs recommend, turn on MagicDNS and HTTPS certificates before you add the server. Know that machine names in HTTPS certificates end up in a public certificate log, so pick a hostname you don’t mind being listed.

Step 3 of 10: Install the Tailscale plugin and log in

In the Apps tab (Community Apps) search for the Tailscale plugin and install it. Then go to Settings, Tailscale, switch on Advanced View and click Reauthenticate. Sign in with your Tailscale account and click Connect. If your tailnet uses device approval, approve the server on the Machines page of the admin console. The server now has a tailnet name and a 100.x address.

On the Unraid WebGUI side, Settings, Management Access shows the Tailscale URLs for the WebGUI. Open that URL from a phone or laptop that is on your tailnet. The Unraid docs only describe those URLs. I could not find a documented “use Tailscale for the WebGUI” toggle, and they describe Serve and Funnel only for Docker containers, so I won’t tell you to click anything I can’t verify. If you want an HTTPS front for a container, I covered that in my post on tailscale serve.

Step 4 of 10: Prove the tunnel works

Before you touch the router, check that the server really is on your tailnet. From a laptop that runs Tailscale, these are the commands the Tailscale CLI docs describe:

tailscale status
tailscale ip your-server-name
tailscale ping your-server-name

tailscale status lists your devices with their Tailscale IP, name and connection state. tailscale ip with a hostname prints that peer’s address. tailscale ping pings over Tailscale only, and gives more detail than the normal ping, which makes it the right tool here. With MagicDNS on, the short machine name works, except for devices shared with you from another tailnet, which need the full name. If tailscale ping answers, you have a working path and the router rules become optional leftovers.

Step 5 of 10: SSH with keys only

Unraid’s own security page says exposing SSH is a risk of brute force and that you should use keys or a VPN. Over Tailscale you get the VPN part for free, and I’d still use keys. Make one on your computer:

ssh-keygen -t ed25519 -C "unraid"

Then enable SSH under Settings, Management Access (the release notes say telnet and SSH are off by default on new setups). The easy way to add the key is the box on the root user’s edit page: the 6.10 release notes mention a text box there for pasting SSH authorized keys. The other way is a file on the flash drive: since 6.9, /root/.ssh persists, and the notes say to put authorized_keys in config/ssh/root on the flash device. Test it:

ssh root@your-server-name

Should you switch off password login? Unraid’s docs do not describe that, so I’m not giving you an sshd_config recipe from a forum thread. Tailscale SSH is a different route: tailscale set --ssh works on Linux according to Tailscale, but Unraid’s docs only list Tailscale SSH for containers. I haven’t verified it on the host, so I keep plain SSH with a key.

Step 6 of 10: Close the router

Log in to your Ziggo Connect Box, KPN Experia Box or whatever sits in your hall and remove every forward that points at the server: 22, 80, 443, 445 and anything else you once opened for a quick test. Also turn off UPnP if you don’t need it elsewhere. Unraid’s docs say its Connect remote access feature needs WAN port forwarding or UPnP, so if you enabled it, switch it off too. They also say never to put the server in the DMZ and never to expose the WebGUI directly.

Check it from outside: put your phone on mobile data with Wi-Fi off, and first leave Tailscale disconnected. Opening the server’s public address or SSH should fail. Then connect the Tailscale app and open the tailnet URL. If both behave like that, nothing is listening for strangers.

Step 7 of 10: Test it the hard way

Do the final test from outside your home network. Wi-Fi off, mobile data on, Tailscale disconnected: your public address should show nothing for the WebGUI and SSH. Switch Tailscale on and the same server opens through its tailnet name. If you can only get in with Tailscale on, the setup does what it should. If you can still reach it with Tailscale off, some forward or UPnP mapping is still there, and I’d go back to the router before anything else.

Step 8 of 10: Troubleshooting

The server shows as offline. Check the key first. Tailscale’s key expiry page says new domains default to 180 days, adjustable between 1 and 180 days, and the Machines page of the admin console has a menu per device with Disable Key Expiry. For a server I’d turn that on, then note it somewhere, because it removes a safety net as well as a nuisance.

It connects but feels slow. Run tailscale ping a few times. Tailscale says the relay is a fallback and connections upgrade to a direct path when one works, so a first slow reply that gets better is normal. tailscale netcheck reports on UDP availability, NAT behaviour and relay latency of the network you are on, and some networks block outbound UDP altogether.

The name does not resolve. MagicDNS is on by default for tailnets created on or after 20 October 2022; an older tailnet needs it switched on on the DNS page of the admin console. Until then, use the 100.x address.

SSH refuses your key. Look at the exact line you pasted: one key per line, no line breaks inside it. And remember where Unraid reads the file from, as described in step 4.

Step 9 of 10: Keep it tidy and keep it alive

I also limit who can reach what. A tag on the server plus a grant that only lets your own devices in on the ports you use is a short policy file. I wrote that up in the ACLs and tags guide.

The usual way this setup breaks is expiry. Tailscale keys expire by default, and a server that dropped off the tailnet is exactly the moment you wanted to log in remotely. Read my key expiry guide and check the expiry setting for the server in the admin console. Also keep a local way in, a monitor or the LAN, for the day you break something.

Cheat sheet with the six steps of the setup, from checking the Unraid version to testing on mobile data

Step 10 of 10: My advice

Do it in this order: tunnel first, proof second, router last. Deleting forwards before you know the tunnel works is how people lock themselves out. After that, leave the plugin alone, keep the key expiry decision on purpose, and keep a monitor or LAN cable plan for the day Tailscale itself is the thing that is broken.

Further reading

Link