Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshuaavalon/SynologyCloudflareDDNS
📜 Cloudflare DDNS script for Synology
https://github.com/joshuaavalon/SynologyCloudflareDDNS
cloudflare cloudflare-api ddns synology synology-nas
Last synced: 3 months ago
JSON representation
📜 Cloudflare DDNS script for Synology
- Host: GitHub
- URL: https://github.com/joshuaavalon/SynologyCloudflareDDNS
- Owner: joshuaavalon
- License: mit
- Archived: true
- Created: 2017-04-27T12:37:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-26T03:22:35.000Z (about 1 year ago)
- Last Synced: 2024-08-01T16:33:36.131Z (6 months ago)
- Topics: cloudflare, cloudflare-api, ddns, synology, synology-nas
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 593
- Watchers: 22
- Forks: 152
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-cloudflare - DDNS script for Synology - DDNS script for Synology NAS. (DNS)
- awesome-cloudflare - DDNS script for Synology - DDNS script for Synology NAS. (DNS)
README
# Synology Cloudflare DDNS Script 📜
The is a script to be used to add [Cloudflare](https://www.cloudflare.com/) as a DDNS to [Synology](https://www.synology.com/) 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.
2. Give others execute permission
```
chmod +x /sbin/cloudflareddns.sh
```3. 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: ``
- Password Key: ``