• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Cloudflare Dynamic DNS error

Scheduled Pinned Locked Moved General pfSense Questions
12 Posts 3 Posters 1.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Alex Atkin UK
    last edited by Alex Atkin UK Aug 14, 2021, 12:42 AM Aug 14, 2021, 12:40 AM

    I've tried the global key and API key configuration, both fail with no good explanation in the logs.

    Aug 14 01:29:26 Router php-fpm[72095]: /services_dyndns_edit.php: phpDynDNS (three): UNKNOWN ERROR -
    Aug 14 01:29:26 Router php-fpm[72095]: /services_dyndns_edit.php: phpDynDNS (three): PAYLOAD:
    Aug 14 01:29:26 Router php-fpm[72095]: /services_dyndns_edit.php: Dynamic DNS cloudflare (three.##.co.uk): _checkStatus() starting.
    Aug 14 01:29:26 Router php-fpm[72095]: /services_dyndns_edit.php: Response Data:
    Aug 14 01:29:26 Router php-fpm[72095]: /services_dyndns_edit.php: Response Header:
    Aug 14 01:29:26 Router php-fpm[72095]: /services_dyndns_edit.php: Dynamic DNS cloudflare (three.##.co.uk): _update() starting.
    Aug 14 01:29:26 Router php-fpm[72095]: /services_dyndns_edit.php: Dynamic DNS (three.##.co.uk): running get_failover_interface for opt15. found gif0
    Aug 14 01:29:26 Router php-fpm[72095]: /services_dyndns_edit.php: Dynamic DNS cloudflare (three.##.co.uk): ##.40.##.225 extracted from local system.
    
    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Aug 14, 2021, 3:48 AM

      Did you enable verbose logging? It looks like you did.

      What pfSense version is that in?

      You used the appropriate username for both those options?

      Steve

      A 1 Reply Last reply Aug 14, 2021, 4:57 PM Reply Quote 0
      • A
        Alex Atkin UK @stephenw10
        last edited by Aug 14, 2021, 4:57 PM

        @stephenw10 said in Cloudflare Dynamic DNS error:

        Did you enable verbose logging? It looks like you did.

        What pfSense version is that in?

        You used the appropriate username for both those options?

        Steve

        I can't remember what constitutes verbose logging but I will have a guess it probably got enabled in the past, as I also send the logs over syslog to my NAS so I can look at them deeper there.

        I've tried changing the credentials for DDNS several times between the two options, re-reading the documentation, looking up guides. My Cloudflare API key is already used for letsencrypt on my NAS so I know that works.

        I'm on pfSense 2.5.2-RELEASE.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Aug 15, 2021, 3:40 PM

          Verbose logging is an option in the DynDNS service setup. The logs you have look like it's probably enabled already but if not you should enable it.

          Steve

          A 1 Reply Last reply Aug 15, 2021, 9:03 PM Reply Quote 0
          • A
            Alex Atkin UK @stephenw10
            last edited by Aug 15, 2021, 9:03 PM

            @stephenw10 said in Cloudflare Dynamic DNS error:

            Verbose logging is an option in the DynDNS service setup. The logs you have look like it's probably enabled already but if not you should enable it.

            Steve

            Oh right, yes that's definitely on.

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Aug 16, 2021, 4:08 PM

              Hmm, not seeing any open bugs for the Cloudflare client. It clearly was working at one time.

              What config are you setting there exactly?

              Steve

              J 1 Reply Last reply Aug 16, 2021, 4:23 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @stephenw10
                last edited by johnpoz Aug 16, 2021, 4:30 PM Aug 16, 2021, 4:23 PM

                I just tried to duplicate this problem - and working fine here..

                workinghere.jpg

                I am running 21.05.1

                Did a public query for it, and resolving just fine

                publicquery.jpg

                Here are my settings.

                ddns.jpg

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 1
                • S
                  stephenw10 Netgate Administrator
                  last edited by Aug 16, 2021, 4:32 PM

                  Nice. 👍

                  J 1 Reply Last reply Aug 16, 2021, 4:37 PM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @stephenw10
                    last edited by johnpoz Aug 16, 2021, 4:38 PM Aug 16, 2021, 4:37 PM

                    I was able to get it to fail, if the A record didn't already exist in cloudflare. I edited the ddns setting pfsense to testhome..

                    This failed.. Until I created the A record in cloudflare with that fqdn -- I just put in IP 1.2.3.4, then forced update and it changed it to my public IP 64.x.x.x

                    teshome.jpg

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    A 1 Reply Last reply Aug 17, 2021, 4:03 AM Reply Quote 1
                    • A
                      Alex Atkin UK @johnpoz
                      last edited by Alex Atkin UK Aug 17, 2021, 4:07 AM Aug 17, 2021, 4:03 AM

                      I figured out the problem and it seems to be a bug in the UI.

                      The key was "running get_failover_interface for opt15. found gif0" which bothered me from the start. Why would it need a failover? If the WAN is down there would be no IP to update it with! Why would it be looking at my IPv6 tunnel?

                      Then by fluke I noticed an extra field flash up when loading the page called "Interface to send update from" which the first entry in there was, you guessed it, HENET (gif0).

                      So I went into inspect element and removed the hidden class from that menu option, changed it to the correct WAN interface, clicked Save & Apply and bam - it worked.

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Aug 17, 2021, 12:04 PM

                        Hmm, so you have it set to monitor gif0 but it cannot send updates from there?

                        A 1 Reply Last reply Aug 18, 2021, 3:32 AM Reply Quote 0
                        • A
                          Alex Atkin UK @stephenw10
                          last edited by Alex Atkin UK Aug 18, 2021, 3:01 PM Aug 18, 2021, 3:32 AM

                          @stephenw10 said in Cloudflare Dynamic DNS error:

                          Hmm, so you have it set to monitor gif0 but it cannot send updates from there?

                          No, its monitoring opt19 but for some reason was trying to send updates out of opt15 (gif0).

                          So I had to enable that hidden form field to manually change it.

                          Question is, why is that form field even there and why is it hidden? I can only assume Firefox submitted the field even though its hidden (this is expected behaviour) and so the wrong interface got assigned, as gif0 was at the top of the list.

                          I also noticed if I tried to monitor a ppp interface the IP just said n/a and it didn't even give a tick or cross. Fortunately I don't need to do that as both are static IPs, I just tried it while testing.

                          1 Reply Last reply Reply Quote 0
                          12 out of 12
                          • First post
                            12/12
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received