All Projects → mrikirill → Synologyddnscloudflaremultidomain

mrikirill / Synologyddnscloudflaremultidomain

Synology DDNS Cloudflare service provider with multidomains and subdomains

Projects that are alternatives of or similar to Synologyddnscloudflaremultidomain

cloudflareddns
DDNS with Cloudflare
Stars: ✭ 33 (-35.29%)
Mutual labels:  cloudflare, synology
Synologycloudflareddns
📜 Cloudflare DDNS script for Synology
Stars: ✭ 222 (+335.29%)
Mutual labels:  synology, cloudflare
Ppscripts
Post-processing scripts for Sick Beard, NzbDrone/sonarr and CouchPotato Server
Stars: ✭ 6 (-88.24%)
Mutual labels:  synology
Reconftw
reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
Stars: ✭ 974 (+1809.8%)
Mutual labels:  subdomain
Ds Mediatheken
Ermöglicht es mit der Synology Download Station Videos aus den Mediatheken der ÖR herunterzuladen.
Stars: ✭ 27 (-47.06%)
Mutual labels:  synology
Dnslink Cloudflare
Update dnslink TXT records in Cloudflare
Stars: ✭ 22 (-56.86%)
Mutual labels:  cloudflare
Cfhookbash
Cloudflare hook bash for dehydrated - DNS-01 Challenge Let's Encrypt
Stars: ✭ 28 (-45.1%)
Mutual labels:  cloudflare
Godns
A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
Stars: ✭ 784 (+1437.25%)
Mutual labels:  cloudflare
Synology Notifications
Synology notifications service
Stars: ✭ 47 (-7.84%)
Mutual labels:  synology
Docker Taiga
Docker container for Taiga https://taiga.io
Stars: ✭ 14 (-72.55%)
Mutual labels:  synology
Moviemagnetbot
🤖 telegram bot for movies
Stars: ✭ 39 (-23.53%)
Mutual labels:  synology
Emby.plugins.javscraper
Emby/Jellyfin 的一个日本电影刮削器插件,可以从某些网站抓取影片信息。
Stars: ✭ 864 (+1594.12%)
Mutual labels:  synology
Cloudflare Ddns
DDNS script to sync public IP address to CloudFlare dns records.
Stars: ✭ 23 (-54.9%)
Mutual labels:  cloudflare
Virtualbox4dsm
VirtualBox package for Synology DSM 6.2.x
Stars: ✭ 34 (-33.33%)
Mutual labels:  synology
Cloudflare Workers Webpack Plugin
Launch Cloudflare Workers to the Edge from the comfort of your build step 🚀
Stars: ✭ 18 (-64.71%)
Mutual labels:  cloudflare
Cloudcheck
Checks using a test string if a Cloudflare DNS bypass is possible using CloudFail.
Stars: ✭ 41 (-19.61%)
Mutual labels:  cloudflare
Cloudscraper
A Python module to bypass Cloudflare's anti-bot page.
Stars: ✭ 804 (+1476.47%)
Mutual labels:  cloudflare
V3n0m Scanner
Popular Pentesting scanner in Python3.6 for SQLi/XSS/LFI/RFI and other Vulns
Stars: ✭ 847 (+1560.78%)
Mutual labels:  cloudflare
Cloudflare Public Dynamic Ip Update
Updating public dynamic IP address to existing cloudflare DNS record
Stars: ✭ 28 (-45.1%)
Mutual labels:  cloudflare
Th3inspector
Th3Inspector 🕵️ Best Tool For Information Gathering 🔎
Stars: ✭ 1,041 (+1941.18%)
Mutual labels:  cloudflare

Synology Dynamic DNS with Cloudflare for both multidomains and subdomains

Table of contents

What this script does

  • A PHP script for Synology DSM (and potentially Synology SRM devices) adding support for Cloudflare to Network Centre > Dynamic DNS (DDNS).
  • Supports single domains, multidomains, subdomains and regional domains, or any combination thereof (example: dev.my.domain.com.au, domain.com.uk etc)
  • Easy instalation process
  • Based on CloudFlare API v4

Before you begin

Before starting the installation process, make sure you have (and know) the following information, or have completed these steps:

  1. Cloudflare credentials

    a. Know your Cloudflare account username (or register for an account if you're new to Cloudflare); and

    b. Have your Global API key (More info: Global API keys).

  2. DNS settings:

    Ensure the DNS A record(s) for the domain/zone(s) you wish to update with this script have been created (More information: Managing DNS records).

    Your DNS records should appear (or already be setup as follows) in Cloudflare:

    (Note: Having Proxied turned on for your A records isn't necessary, but it will prevent those snooping around from easily finding out your current IP address)

    image

How to install

  1. Activate SSH on your supported device:

    a. For DSM Users:

    Navigate to Control Panel > Terminal & SNMP > Enable SSH service

    b. For SRM users:

    Navigate to Control Panel > Services > System Services > Terminal > Enable SSH service

    image

  2. Connect via SSH: Connect to your supported device via SSH and execute command

  • For DSM Users

    wget https://raw.githubusercontent.com/mrikirill/SynologyDDNSCloudflareMultidomain/master/cloudflare.php -O /usr/syno/bin/ddns/cloudflare.php && sudo chmod 755 /usr/syno/bin/ddns/cloudflare.php
    
  • For SRM Users Note: Ensure you are connected as root in your SSH session

    wget https://raw.githubusercontent.com/mrikirill/SynologyDDNSCloudflareMultidomain/master/cloudflare.php -O /usr/syno/bin/ddns/cloudflare.php && chmod 755 /usr/syno/bin/ddns/cloudflare.php
    

    Note: For SRM users, you must connect to your device as root. No other username will allow these commands to run.

  1. Update DDNS provider list: Using your preferred/available command line editor, insert the text below to your DMS file (Location : /etc.defaults/ddns_provider.conf), to add DDNS support via Cloudflare:

    [Cloudflare]
      modulepath=/usr/syno/bin/ddns/cloudflare.php
      queryurl=https://www.cloudflare.com/
    

    Note: For SRM users, break out this Vim cheat sheet, as it's the only text editor available to you.

  2. Update your DDNS settings:

    a. For DSM Users: Navigate to Control Panel > External Access > DDNS then add new DDNS

    b. For SRM users: Navigate to Network Centre > Internet > QuickConnect & DDNS > DDNS and press the Add button:

    Add/Update the DDNS settings screen as follows:

    • Service provider: Select Cloudflare
    • Hostname: For a single domain: mydomain.com For multiple domains: subdomain.mydomain.com---vpn.mydomain.com (ensure each domain is seperated by three dashes: ---)
    • Username: The email address you use for logging in to Cloudflare.
    • Password: Your Cloudflare Global API Key

    image

    Finally, press the test connection button to confirm all information is correctly entered, before pressing Ok to save and confirm your details.

  3. Enjoy 🍺 and don't forget to deactivate SSH (step 1) if you don't need it.

Troubleshooting and known issues

Connection test failed or error returned

This will manifest as either 1020 error; or the update attempt not showing in your Cloudflare Audit logs.

That generally means you may not have entered something correctly in the DDNS screen for your domain(s).

Revisit Before you begin to ensure you have all the right information, then go back to Step 4 in How to install to make sure everything is correctly entered.

Handy hint: You can also check your Cloudflare Audit logs to see what - if anything - has made it there with your API key (More information: Understanding Cloudflare Audit Logs). Updates using the API will appear in the Audit logs as a Rec Set action.

Cloudflare no longer listed as a DDNS provider after DSM or SRM updates

After system updates to either Synology DSM or SRM, you may find that:

  • /usr/syno/bin/ddns/cloudflare.php has been deleted;
  • /etc.defaults/ddns_provider.conf was reset to its default settings (settings for Cloudflare no longer included); and
  • The DDNS settings in your DDNS panel constantly show Cloudflare's status as loading.

If this occurs, simply repeat the How to install steps shown above.

Default Cloudflare ports

Source Identifying network ports compatible with Cloudflare's proxy

HTTP ports supported by Cloudflare HTTPS ports supported by Cloudflare
80 443
8080 2053
8880 2083
2052 2087
2082 2096
2086 8443
2095

Credits

Table of contents generated with markdown-toc

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].