←Back to Knowledge

Your phone can reach your NAS from anywhere, safely, if you don't open router ports. QuickConnect, Tailscale and WireGuard compared. NAS series part 4.

Date
Reading
6 min read
Written by
Nick Li
Tags
#Risk#Engineering

"Can I open my NAS from my phone when I'm out, and is it safe?" It's the question we hear most about NAS boxes. The short answer: yes, as long as you don't open router ports to it. This is part four of our NAS series; in part two we set up the office cloud and in part three looked at what else it can do. Now we connect your phone to it, three ways, from easiest to most private.

The one thing not to do: port forwarding

Older guides tell you to forward ports such as 5000 or 5001 on the router to the NAS. It works, and it's how most NAS ransomware gets in:

Port forwarding: the NAS login page faces the whole internet

  Your phone ─┐
  Anyone      ├──► router :5001 ──► NAS login page ──► everything on the NAS
  Bots, 24/7 ─┘

  Every scanner on the internet finds it within hours and starts guessing passwords
  or trying the latest DSM flaw.

Your NAS login page then faces every scanner on the internet, all day. A weak password gets guessed; a missed update gets exploited without any password at all, as happened with the DSM flaws in our ransomware article. If you set up port forwarding years ago, removing it is the most useful thing you can do after reading this. Also check that UPnP is off on your router, because it lets devices open ports by themselves; part six covers the router in detail.

Option 1: QuickConnect, the easy start

QuickConnect: Synology's relay in the middle

  Phone ──► Synology relay (QuickConnect ID) ◄── NAS (keeps an outgoing link open)

  No port opened on your router. But anyone who guesses your QuickConnect ID
  reaches your login page through the relay, so 2FA is a must.

QuickConnect is built into DSM. You pick a QuickConnect ID, and the Synology apps on your phone find the NAS through Synology's servers, either connecting directly or through a relay, without any router changes. It's the quickest way to get started.

The catch is in the diagram: your login page is reachable by anyone who knows or guesses the ID. So if you use QuickConnect, do these three things first:

  • Turn on two-factor sign-in for every account (Secure SignIn: approve on your phone, or a one-time code).

  • Turn on Auto Block (Control Panel → Security), so an address that keeps failing to log in is blocked.

  • Use a QuickConnect ID that isn't your company name. It's not a password, but there's no reason to make it easy.

Option 2: Tailscale, our recommendation

Tailscale: a private network of your own devices

  Phone (Tailscale app) ══ encrypted tunnel ══ NAS (Tailscale package)
        100.x.y.z                                  100.a.b.c

  Only devices you've signed in to your Tailscale account can reach the NAS.
  To the rest of the internet, there's nothing there to find.

Tailscale builds a private network between your own devices. Install it on the NAS and on each phone or laptop, sign in to the same account, and they can reach each other from anywhere through an encrypted tunnel, without any router changes. The NAS login page is never on the open internet at all: to everyone outside your account, there is nothing to find. Tailscale has a free plan for personal use that also covers many small offices.

Setting it up on a Synology, following Tailscale's own guide:

  1. Download the Synology package for your model from Tailscale's site and install it in Package Center → Manual Install. (The version listed inside Package Center is out of date, so Tailscale recommends the manual one.)

  2. Open the package and sign in with the account you'll use for the business, ideally one with two-factor login.

  3. On DSM 7, add the small start-up task from Tailscale's guide (it runs tailscale configure-host), so the NAS's own apps can use the tunnel after a restart.

  4. Install the Tailscale app on your phone and sign in to the same account. Your NAS appears with an address like 100.x.y.z, and a name you can type instead.

  5. In the Synology Photos and Synology Drive apps, use that name or address as the server.

From then on the phone reaches the NAS from anywhere, on mobile data or a hotel's Wi-Fi, as if it were in the office.

Option 3: your own WireGuard

If you'd rather depend on no outside service, you can run your own WireGuard server, on a router that supports it or in Docker on the NAS. Part three of our VPN series walks through it. It needs one UDP port open on the router, which sounds like breaking our rule, but it's different: a WireGuard port answers nothing to anyone without the right key, so there's no login page for scanners to find. The trade-off is more setup and nobody else to fix it for you.

Side by side

QuickConnectTailscaleYour own WireGuard
Setupeasiest: a few clicks in DSM20 minutes, app on each phonean hour, needs some know-how
Router changesnonenoneone quiet UDP port, on the router
Who can reach the login pageanyone with your QuickConnect IDonly your signed-in devicesonly devices with a key
Speedcan be slow when the relay is usedfast (direct link most of the time)fast
Depends onSynology's relayTailscale's service (free tier)only you
Our pick fora quick start, with 2FAmost homes and small officespeople who like to run their own

Whichever you choose

  • Two-factor sign-in on every NAS account, the admin's and everyone else's.

  • Phones sign in with their owner's account, never a shared login, so you can cut off one person without changing everyone's password.

  • Keep DSM and the apps updated. Remote access is only as safe as the software behind it.

If a phone is lost or stolen

  1. Tailscale: remove the device in the Tailscale admin console. It can't reach the NAS any more.

  2. DSM: in the user's account, sign out the lost device's sessions and remove it from trusted devices.

  3. Change that person's NAS password, and if the phone held the two-factor app, reset their two-factor sign-in.

None of this touches the data on the NAS. That's the advantage of keeping files on your own box rather than on the phone.

Coming next

With the phone connected, part five does the job most people bought a NAS for: backing up the photos on your phone automatically, step by step, and freeing up space on the phone.

Reach your NAS from anywhere, but never let the internet reach your NAS.

If you'd like help removing old port forwards and setting up safe remote access for your team, let's talk.

Further reading