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:

  1. 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:

  1. Get Zone ID for your domain
  2. 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:

  1. Open Control Panel -> External Access -> DDNS
  2. 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


source: https://corcoran.medium.com/using-cloudflare-for-ddns-and-tls-certificates-on-synology-dsm6-1549e55d557f


评论

此博客中的热门博文

带8个免费监控授权的黑群晖DSM7.X安装教程和注意事项

甲骨文云dd重装系统一键脚本

synology 查看隐藏目录和 文件夹大小