notebook:cloudflare_ddns_configuration

This is an old revision of the document!


Recent firmware on the USG (I used 4.5.3dev but should work on recent 4.4x also) allows for native configuration of CloudFlare DDNS without a third party service (like the ever popular DNS-O-Matic). The only catch is [for now] you have to use config.gateway.json (this file is on/needs to be created on the controller in the applicable site) to accomplish this (as of Controller 5.9.4). Below is the config.gateway.json portion needed to make this work:

       {
       "service": {
              "dns": {
                      "dynamic": {
                              "interface": {
                                      "<WAN interface eg eth0": {
                                              "service": {
                                                      "cloudflare": {
                                                              "host-name": [
                                                                      "<insert A record name here eg. usg.example.com>"
                                                              ],
                                                              "login": "<CloudFlare E-Mail>",
                                                              "options": [
                                                                      "zone=<DNS Zone eg. example.com>"
                                                              ],
                                                              "password": "<CloudFlare Global API Key>",
                                                              "protocol": "cloudflare",
                                                              "server": "www.cloudflare.com"
                                                      }
                                              }
                                      }
                              }
                      }
              }
      }
      }

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/nevyxvrt/ubntwiki.com/lib/plugins/authplain/auth.php on line 428
dokuwiki\Exception\FatalException: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

dokuwiki\Exception\FatalException: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the authplain plugin.

More info has been written to the DokuWiki error log.