Introduction
In the previous article, Using Tailscale to Easily Create Secure and Private Tunnels, we explained how to use Tailscale to establish a VPN (tailnet) that only you can access.
This article will focus on how to install the latest version of Tailscale on a Synology NAS, and implement mechanisms for automatic updates to ensure Tailscale stays up-to-date.
The system configuration for the following operations is:
- NAS Device: DS220+
- Operating System: DiskStation Manager 7 (DSM 7)
- CPU: Intel Celeron J4025
- Synology Package Arch: Geminilake
- Generic Arch:
x86_64
To update to the latest version of Tailscale, it is necessary to know the generic architecture of your NAS. This will determine which Synology package (spk) file to download for installation and updates. If you’re unsure about your NAS architecture, you can check Synology and SynoCommunity Package Architectures to find out.
Traditional Installation Method
The traditional installation method is through the Synology Package Center, where you can install the version released by Synology.
Click the main menu button in the top left corner.
Click on the Package Center.
Find Tailscale at the bottom of all packages and click Install.
After installation, click on the main menu’s Tailscale and log in to use it.
In the Package Center, check the installed version to see it is the official version 1.38.4-700038004.
This version is released by Synology (2023/5/8).
According to Tailscale’s latest official release, the version is 1.58.2 (2024/1/25).
Installing the Latest Version of Tailscale from the Official Website
Tailscale compiles and releases the latest version of the spk for Synology with each update.
Users can download it themselves and manually install it via the Package Center. For future updates, repeat this process.
Here, Wells has integrated a script to automate installation and scheduled updates. Follow the steps below to execute it.
|
|
Copy the script content above into a text editor.
Modify the URL in the script,
adjusting it according to your NAS generic architecture
.You can check Synology and SynoCommunity Package Architectures to find your NAS’s generic architecture.
Find the Generic Arch corresponding to your NAS model. For DS220+, it’s
x86_64
.Visit Tailscale Stable Releases to find the corresponding DSM version and Generic Arch.
Copy its spk URL and replace the URL line in the script.
The script URL is suitable for
x86_64
. If your Generic Arch is the same, no changes to the script are needed.For example, DS224+, DS923+, DS723+, DS423+, DS1621+, DS220+, DS420+, RS820+, RS1219+, FS1018, FS3017, etc., all use x86_64, so the script can be used directly.
Click the main menu button in the top left corner.
Click on the Control Panel.
Click Task Scheduler.
Add a new scheduled task (scheduled execution).
Fill in the task name.
Set the script to execute at a scheduled time, here it is set to run at midnight daily.
In task settings, paste the script corresponding to your NAS architecture. You can set whether to return the execution result via email.
Click confirm.
The first time you can manually execute the update to upgrade the NAS version to the latest version.
Here, Wells installed the Package Center version (1.38) without removing it.
It can be directly upgraded to the latest version, so it doesn’t matter whether it is removed first or not.
Check the version in the Package Center, it should be 1.58.2, while Synology’s latest version is 1.38.4.
Thus, Tailscale will automatically update at midnight daily.
Conclusion
After installation, you can go to the control panel and click on the Tailscale app. This will open a new tab, where you can log in and start networking.
For detailed networking, refer to Using Tailscale to Easily Create Secure and Private Tunnels.