Hey there! Ever found yourself needing to access your Synology NAS while away from home? I sure have. Setting up remote access can be a bit daunting, especially with all the VPN configurations and security concerns. But guess what? I discovered Tailscale, and it’s been a game-changer for me. In this guide, I’ll walk you through how to set up Tailscale on your Synology NAS, so you can securely access your files from anywhere without the usual VPN headaches.
Why Choose Tailscale for Your Synology NAS?
Tailscale is a modern solution for secure remote access. Built on top of WireGuard, it provides a device-to-device VPN that’s both secure and easy to set up. Unlike traditional VPNs, Tailscale doesn’t require port forwarding or a public IP address. This means you can disable QuickConnect and ensure your NAS is only accessible through your local network or Tailscale itself.
Understanding Tailscale and VPNs
Before we dive in, let’s understand what makes Tailscale different from traditional VPNs. Traditional VPNs often require complex setups, including port forwarding and managing public IP addresses. They can also introduce latency due to relay servers.
Tailscale Inc is a private company that produces software called Tailscale. This software leverages WireGuard to create a secure mesh network known as a tailnet. In this mesh network, all your devices can communicate directly and securely over the internet, without the need for centralized VPN servers.
Benefits of Using Tailscale
Here are some reasons why I recommend Tailscale for your Synology NAS:
- No Port Forwarding Needed: Simplifies your network configuration.
- Enhanced Security: Secure, encrypted connections using WireGuard.
- Easy Setup: Minimal configuration compared to traditional VPNs.
- Free for Personal Use: Generous free tier suitable for most home users.
- Versatile Access: Perfect for remote backups, file access, and more.
How Tailscale Works
Tailscale establishes secure, peer-to-peer connections between your devices. It uses the STUN protocol to efficiently traverse network firewalls, allowing direct communication over the internet. This means faster speeds and lower latency compared to traditional VPN solutions that rely on relay servers.
By adding your devices to your tailnet, you can access them remotely as if they were on the same local network. Plus, you can share access with others by sending them an invite link, making collaboration effortless.
Zero Trust Networking
Tailscale employs a zero-trust networking model, meaning each device must authenticate and authorize connections individually. This enhances security by ensuring that only approved devices can connect to your tailnet.
Installing Tailscale on Your Synology NAS
Now, let’s get our hands dirty and install Tailscale on your Synology NAS. Don’t worry; it’s simpler than you might think!
Prerequisites
- A Synology NAS running DSM 6.2 or higher.
- Administrative access to your NAS.
- An account with an identity provider (Google, Microsoft, GitHub, etc.).
- A device on the same local network as your NAS for initial setup.
Step-by-Step Installation Guide
- Log in to DSM: Access your Synology DiskStation Manager (DSM) by entering your NAS’s local IP address in your web browser.
- Open Package Center: Navigate to the Package Center from the main menu.
- Install Tailscale: In the Package Center, use the search bar to find “Tailscale” and click the install button. Follow the on-screen instructions to complete the installation.
- Verify Local Connection: Ensure you’re connected locally by checking the IP address in your browser’s address bar (e.g.,
192.168.x.x
). If you’re using QuickConnect or accessing remotely, switch to a local connection. - Open Tailscale: Once installed, open the Tailscale app from the main menu. If prompted with a security warning, proceed to the next step.
- Authenticate: Click on “Log in” and choose your preferred identity provider (Google, Microsoft, GitHub, etc.). You’ll be redirected to a login page to authorize Tailscale.
Authentication and Security
Tailscale uses a zero-trust model, which means it doesn’t rely on traditional username/password authentication. Instead, it uses your chosen identity provider for secure access. This adds an extra layer of security and convenience, as you don’t have to manage separate credentials for your NAS.
Configuring Tailscale for Remote Access
With Tailscale installed, let’s configure it for remote access to your Synology NAS.
Installing Tailscale on Other Devices
To access your NAS remotely, you’ll need Tailscale on your other devices too. Here’s how:
- Computers: Install Tailscale on your macOS, Windows, or Linux machines by downloading it from the official website.
- Mobile Devices: Get the Tailscale app for your iOS or Android devices from the App Store or Google Play Store.
Connecting to Your NAS Remotely
Once Tailscale is installed on all your devices, they will be part of your tailnet. To access your NAS:
- Open Tailscale on your device and ensure it’s connected. Log in using the same identity provider you used on your NAS.
- Find your NAS’s Tailscale IP address from the Tailscale admin console or the Tailscale app on your device.
- Enter the IP address in your file explorer, web browser, or Synology apps like DS File.
Using Tailscale for Network Drive Mapping
One of my favorite features is mapping network drives over Tailscale. This allows you to access your NAS shares as if they were local drives, even when you’re halfway around the world.
For Windows Users
To map a network drive in Windows:
- Open File Explorer.
- In the address bar, type
\\
and press Enter. - Enter your NAS credentials when prompted.
- Browse to the shared folder you want to map.
- Right-click on the folder and select “Map network drive.”
- Choose a drive letter and ensure “Reconnect at sign-in” is checked if you want it to persist.
For macOS Users
To connect on macOS:
- In Finder, press
Command + K
to open “Connect to Server.” - Enter
smb://
and click Connect. - Provide your NAS username and password when prompted.
- Select the shared folder you want to access.
- To make the connection persistent, drag the share to your Dock or add it to your Login Items under System Preferences.
Advanced Use: Backing Up Between Synology Devices
If you have multiple Synology NAS devices, Tailscale makes it easy to back up between them over the internet. This is perfect for off-site backups, enhancing your data redundancy.
Overcoming Synology’s Default Restrictions
By default, Synology’s firewall settings prevent outbound connections through Tailscale. This means that if you try to use a Tailscale IP in Hyper Backup, it won’t work without some adjustments.
Running a Custom Script
We’ll create a scheduled task that runs a script to reconfigure the host networking. This will allow your NAS to initiate outbound connections through Tailscale.
Steps to Create the Scheduled Task:
- Create a Scheduled Task: In DSM, go to Control Panel > Task Scheduler > Create > Triggered Task > User-defined script.
- Name the Task: Call it “Tailscale Up” and set it to run as root under the “General” tab.
- Insert the Script: Under the “Task Settings” tab, paste the following code:
/volume1/@appstore/Tailscale/bin/tailscale up --accept-routes
- Set the Schedule: Under the “Schedule” tab, choose “Run on the following date” and set it to “Boot-up.”
- Save and Run: Save the task and run it manually to apply changes immediately without rebooting.
Security Considerations
While this script requires root access, rest assured that Tailscale is open-source and vetted by Synology. However, always exercise caution when granting elevated permissions and ensure you’re comfortable with the changes.
Setting Up Hyper Backup Over Tailscale
Now that your NAS can initiate outbound connections, you can set up Hyper Backup:
- Open Hyper Backup on your source NAS.
- Create a new backup task and select “Remote NAS device.”
- Enter the destination NAS’s Tailscale IP address.
- Provide the username and password of an account on the destination NAS with appropriate permissions.
- Follow the on-screen instructions to complete the backup setup.
Troubleshooting and Final Thoughts
If you update the Tailscale package, you might need to rerun the “Tailscale Up” task or reboot your NAS. This ensures the host networking configuration remains intact.
There’s so much more Tailscale can do, from advanced network configurations to custom access controls. For instance, you can set up subnet routing, use Magic DNS for easier device naming, and even integrate with cloud services.
I encourage you to explore the Tailscale Knowledge Base for more insights and advanced configurations that can further enhance your network setup.
Conclusion
Thanks for sticking with me through this guide! Setting up Tailscale on your Synology NAS opens up a world of possibilities for secure, remote access. Whether you’re managing backups between devices, accessing your files on the go, or collaborating with others, Tailscale makes it simple and efficient.
If you have any questions or run into any issues, feel free to drop a comment below. I’m here to help you make the most out of your NAS setup!
Happy networking!