Since the question arises occasionally, the following steps might help in setting up a Synology NAS as a WebDAV sync location 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 to port-forwarding 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. Instead of re-purposing an existing user, you could create a new user who has access only to this folder. - make sure that your NAS is accessible from the internet by port-forwarding:
- 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 always 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 incoming port above 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 “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.
- employing DDNS ensures that you can use the same sync provider on your LAN and also from the outside. If you only want to use sync inside 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, your router shields all your devices 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 might be 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, DT must 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 change it regularly, and since your router is not registered in the Domain Name System (DNS), you cannot simply use something like myrouter.myprovider.com
to address it.
DDNS (dynamic DNS) to the rescue: It provides a (pseudo) name for your router and registers 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, with DDNS you can talk to your router by using something like host.synology.me
.
But you want to talk to your NAS, and that is still not visible from the net. Therefore, you have to tell your router to send all internet traffic arriving at its port 5006 (or any other port above 1024 that you fancy) to your NAS’s port 5006 (which is encrypted WebDAV on your Synology).
An alternative to port-forwarding, which many consider unsafe as it pokes a hole in your firewall, would be a VPN. If your router permits that, you can use it as a VPN server and set up your mobile machines (macOS or iOS/iPadOS) as clients. You’ll probably still need a DDNS name for that to work, though. If you’re running a VPN, your mobile devices can talk directly to the NAS in your home network, using its IP address.