To keep this tutorial short, I’m assuming that the reader has the minimal level of knowledge to upload files, launch a container on the NAS and use SSH.
This is a solution to configure Tailscale remotely when you only have QuickConnect access to your NAS.
Install Container Manager on the NAS
Click on Package Center -> Search for Container Manager -> and install it. It’ll create a docker volume that we are going to use next.
Enable SSH on the NAS
Click on Control Panel -> Terminal & SNMP -> Enable SSH service.
Keep the default port to 22. If you modify it, also modify the port value in the ngrok.yml config file below.
Setup NGROK
https://ngrok.com/ is a tool to easily expose services behind NATs to public internet.
Create a free account
Retrieve your
NGROK_AUTHTOKENCreate a file
ngrok.ymlwith this contentversion: 2 authtoken: NGROK_AUTHTOKEN tunnels: dsm: proto: http addr: https://localhost:5001 ssh: proto: tcp addr: 22The first
dsmservice will expose the DSM web interface service. The secondsshservice will expose the SSH serviceReplace
NGROK_AUTHTOKENwith the value you got from step 2.Upload the file in the
dockervolume.Open the Container Manager
From the Registry menu, download the
ngrok/ngrokimage for the release3-alpine. (It’s always better to fix the release version instead of takinglatestfor later compatibility)From the Container menu, create a container:
- image:
ngrok/ngrok:3-alpine - keep Enable auto-restart disable. It’s not needed.
- Add File in Volume settings mapping /docker/ngrok.yml to /ngrok.yml in Read-Only.
- Select Host in the Network
- Set
start --config /ngrok.yml --allas Command in the Execution Command
- image:
And run it
If ok, the container should be green and you will have two endpoints in your ngrok endpoints dashboard.
Setup Tailscale
Use the HTTPS endpoints to connect to your NAS and once connected, install Tailscale from the Package Center.
From the NAS, click on Open Tailscale, log in and add your devices to your account.
From the NAS, click again on Open and activate the Advertise as Exit Node
From that point on, I’m assuming you know how to configure and use Tailscale.
The last step is to advertise a route. For this step, you’ll need to use the TCP endpoint you configured with ngrok.
Use it to ssh to your NAS ssh -p <the port> <user>:<the tcp url without tcp://>.
Once connected, configure the advertising route with this command sudo tailscale up --advertise-routes 192.168.1.0/24 --advertise-exit-node --reset.
Conclusion
Congrats, you’re done! For security, you can stop the ngrok container and even deactivate the SSH service.