MIT License

项目介绍

joshuaavalon/SynologyCloudflareDDNS 是一个托管在 GitHub 上的开源项目,主要使用 Shell 编写,采用 MIT License 许可证,目前获得 666 个 Star、166 次 Fork。

仓库全名
joshuaavalon/SynologyCloudflareDDNS
开源许可证
MIT License
Star 数
666
Fork 数
166
未关闭 Issue
3

README 摘要

Synology Cloudflare DDNS Script 📜 The is a script to be used to add Cloudflare as a DDNS to Synology NAS. The script used an updated API, Cloudflare API v4. How to use Access Synology via SSH 1. Login to your DSM 2. Go to Control Panel > Terminal & SNMP > Enable SSH service 3. Use your client to access Synology via SSH. 4. Use your Synology admin account to connect. Run commands in Synology 1. Download…

完整内容见 GitHub 原始 README 或本页 。

常见问题

SynologyCloudflareDDNS 用什么语言开发?

主要使用 Shell 编写,采用 MIT License 许可证,目前有 666 个 Star。

SynologyCloudflareDDNS 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 SynologyCloudflareDDNS 的源码?

可以直接克隆仓库:git clone https://github.com/joshuaavalon/SynologyCloudflareDDNS.git,默认分支为 master;安装与运行步骤见仓库 README。

SynologyCloudflareDDNS 最近还在维护吗?

仓库最近一次更新为 2024年1月26日,当前有 3 个未关闭 Issue;Star 数为 666,可作为社区活跃度的参考。

关于

📜 Cloudflare DDNS script for Synology

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
999
价值分
449
活跃状态
归档

语言占比

Shell

README

Synology Cloudflare DDNS Script 📜

The is a script to be used to add Cloudflare as a DDNS to Synology NAS. The script used an updated API, Cloudflare API v4.

How to use

Access Synology via SSH

  1. Login to your DSM
  2. Go to Control Panel > Terminal & SNMP > Enable SSH service
  3. Use your client to access Synology via SSH.
  4. Use your Synology admin account to connect.

Run commands in Synology

  1. Download cloudflareddns.sh from this repository to /sbin/cloudflareddns.sh
wget https://raw.githubusercontent.com/joshuaavalon/SynologyCloudflareDDNS/master/cloudflareddns.sh -O /sbin/cloudflareddns.sh

It is not a must, you can put I whatever you want. If you put the script in other name or path, make sure you use the right path.

  1. Give others execute permission
chmod +x /sbin/cloudflareddns.sh
  1. Add cloudflareddns.sh to Synology
cat >> /etc.defaults/ddns_provider.conf << 'EOF'
[Cloudflare]
        modulepath=/sbin/cloudflareddns.sh
        queryurl=https://www.cloudflare.com
        website=https://www.cloudflare.com
E*.

queryurl does not matter because we are going to use our script but it is needed.

Get Cloudflare parameters

  1. Go to your domain overview page and copy your zone ID.
  2. Go to your profile > API Tokens > Create Token. It should have the permissions of Zone > DNS > Edit. Copy the api token.

Setup DDNS

  1. Login to your DSM
  2. Go to Control Panel > External Access > DDNS > Add
  3. Enter the following:
    • Service provider: Cloudflare
    • Hostname: www.example.com
    • Username/Email: <Zone ID>
    • Password Key: <API Token>

评论

暂无评论