synology cloudflare ddns
Configure Cloudflare for Synology DDNS
Synology doesn’t support Cloudflare by default, but JoshuaAvalon has written a script to get this configured within DSM: from https://github.com/joshuaavalon/SynologyCloudflareDDNS/
SSH into your Synology NAS and complete the following steps:
- Download DDNS script — I recommend saving as cloudflare_domainname.sh if you have multiple domains.
$ sudo wget https://corcoran.medium.com/using-cloudflare-for-ddns-and-tls-certificates-on-synology-dsm6-1549e55d557fhttps://raw.githubusercontent.com/joshuaavalon/SynologyCloudflareDDNS/master/cloudflareddns.sh -O /sbin/cloudflaredns_domainname.sh
2. Grant execute permissions
$ sudo chmod +x /sbin/cloudflaredns_domainname.sh
3. Push configuration to DSM DDNS provider list
$ sudo echo "[Cloudflare Domain Name]">>/etc.defaults/ddns_provider.conf
$ sudo echo " modulepath=/sbin/cloudflaredns_domainname.sh">>/etc.defaults/ddns_provider.conf
$ sudo echo " queryurl=https://www.cloudflare.com/">>/etc.defaults/ddns_provider.conf
$ sudo echo " website=https://www.cloudflare.com/">>/etc.defaults/ddns_provider.conf
Open Cloudflare dashboard for your domain name and complete the following steps:
- Get Zone ID for your domain
- Generate scoped API Token with the following permissions:
- Zone — Zone — Read
- Zone — DNS — Edit
Scope the token to your required domain name, if you have multiple Zones and/or require multiple DDNS entries for different hostnames
Return to DSM Gui and complete the following steps:
- Open Control Panel -> External Access -> DDNS
- Create “Cloudflare Domain Name”” DDNS entry in DSM Console:
- hostname: the a record of your domainname (mine syno.itsonpremises.dev)
- Username/Email: the ZoneID of your zone
- Password/Key: the scoped API token created in Cloudflare dashboard

Great stuff! DDNS should now be working, and you can move on to create the corresponding TLS certificates for your Synology NAS
sourece:
评论
发表评论