Since the question arises occasionally, the following steps might help in setting up a Synology NAS as a sync store for DEVONthink. This explanation uses port forwarding. There’s a TL;DR about the basics that might help to set this up with another NAS. An alternative would be to set up your router as a VPN server and your mobile devices as VPN clients to connect to it.
- install WebDAV from Synology’s packet repository
- in its settings, turn on HTTPS, leave HTTP off and select the option to redirect HTTP requests to HTTPS. That encrypts all traffic to and from the NAS via WebDAV.
- set up a shared folder, which will be called
DT
here - make sure that one of the NAS users has read and write access to
DT
. This user’s password should be excellent, i.e. long. You may also create a new user who has access only to this folder. - make sure that your NAS is accessible from the internet
- set up “Remote Access” for the NAS: select Synology as DDNS provider. You’ll get a pseudo host name of the form
host.synology.me
. Make sure that its status is “Normal” in the DDNS overview. - Open the tab “router configuration” and select “configure router”.
- In my experience, automatic router configuration does not work. The Synology NAS tries it, but if it fails, follow the next step.
- define the port forwarding in your router. Make sure that the router’s port 5006 is forwarded to the NAT’s port 5006. Choose HTTPS as the protocol for this rule. Note: You can choose any port greater than 1024 on your router, but the one on the NAS should be 5006.
- set up “Remote Access” for the NAS: select Synology as DDNS provider. You’ll get a pseudo host name of the form
- the DDNS setup on the NAS should now show the port forwarding, and you can check that it’s working by clicking on “check connection”
- In DT’s sync settings, set up a new sync location: set the protocol to WebDAV, enter the URL
https://host.synology.me:5006/DT
, replacinghost
with the first part of your DDNS host name andDT
with the name of the shared folder you created before - enter the name and password of the user who has read/write access to this folder.
- using DDNS makes sure that you can use the same sync provider on your LAN and also from the outside. If you only want to use sync in your local network, you can simply use the NAS’s local name or IP address like so
SynologyDS.local:5006/DT
TL;DR: What’s this “DDNS” and “port forwarding” all about?
Usually, all your devices are shielded by the router from the Internet. The router has an IP address that’s visible and accessible from the outside (assigned to it from your Internet provider). All your desktops, notebooks, smart speakers, and the NAS have only “private” IP addresses: they are inaccessible directly from the outside. Which is fine because usually you do not want the big, bad Internet to have access to your private machines.
That’s different for a NAS, though: Many people would want at least part of its content to be accessible when they’re abroad. In particular, if you want to sync DT databases while you’re not at home, you have to have a way to access the NAS.
There are two hurdles to scale here: First, your router has to make sure that you can talk to the NAS. That’s what port forwarding does. Second, you have to know the current IP address of your router – many providers occasionally change it, and since your router is not registered in the Domain Name System (DNS), you cannot simply use myrouter.myprovider.com
to address it.
DDNS (dynamic DNS) to the rescue: It provides a (pseudo) name for your router and follows every change of its IP address. Synology offers such a DDNS with its host.synology.me
, but there are other DDNS providers too (e.g., users of the German AVM routers can get a “MyFritz” name).
So now you can talk to your router by using something like host.synology.com
.
But you want to talk to your NAS. Therefore, you have to tell your router to send all internet traffic arriving at its port 5006 (or any other port greater than 1024 that you fancy) to your NAS’s port 5006 (which is encrypted WebDAV on your Synology).