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

    DUCKDNS Pfsense Using VPN IP Address not ISP IP Address

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 3 Posters 2.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.
    • C
      choder
      last edited by choder

      I am trying to use duckdns with Pfsense. But Duckdns keeps getting updated with my VPN IP and not my ISP IP address. No matter what I do it will always revert back to my VPN IP address.

      If manually go in and edit my DuckDns Dynamic DNS Client in pfsense, by forcing a save & force update it will give duckdns my correct ISP IP. But within 10 mins, duckdns will revert back to my VPN IP.

      Anyone have any ideas?
      Thank you.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by stephenw10

        What is you system default route? Via the VPN?

        How do you have the DynDNS client configured?

        Do you have a client configured for it on any other host? Behind the firewall perhaps?

        Steve

        1 Reply Last reply Reply Quote 0
        • C
          choder
          last edited by

          I have PIA VPN running on Pfsense and that is where all my traffic is routed though. I do not have a duckdns client on another machine, I use pfsense to send the update to Duckdns.

          This is how I configured it. I just followed what duckdns has on their install guide. https://www.duckdns.org/install.jsp

          https://www.duckdns.org/update?domains=mydomainname&token=mytoken&ip=%IP%
          OK

          Here is a screenshot of my pfsense. https://ibb.co/N9gNwtG

          If I hit the save & force update in pfsense it works, but only for about 5 or 10 mins, and I don't have an updater on any other machine.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Hmm, try enabling verbose logging there and see what it shows at the next automatic update.

            10 mins is odd though unless you are seeing the WAN change in that time. It would normally only update once a day otherwise.

            Steve

            C 1 Reply Last reply Reply Quote 0
            • C
              choder @stephenw10
              last edited by

              @stephenw10

              I appreciate your help on this.

              I forced and update and then 5 mins later duckdns was using my vpn ip. And the log shows nothing.

              All that is in the log is the following. There is no sign of the auto update to duckdns with my VPN IP.

              Apr 14 20:18:28 php-fpm 88277 /services_dyndns_edit.php: phpDynDNS (): (Success) IP Address Updated Successfully!
              Apr 14 20:18:28 php-fpm 88277 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wancustom''0.cache: "my ISP ip was here"

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Hmm, it seems likely that something else is updating it then. Some other client is running somewhere and is routed via the VPN. I can't see any other way that could happen.

                Steve

                1 Reply Last reply Reply Quote 0
                • C
                  choder
                  last edited by choder

                  I think your are correct. I made a 2nd address with DuckDns called duck2name and added this one to Pfsense and removed the original address. It now stays correct. I cannot figure out what other device I have on my network that is updating this first name with duckdns. I guess this means I have to many devices... I guess I could use wireshark or something to figure it out. Or just simply go around unplugging devices until I find the correct one.

                  You can see with this screen shot that the 1st original address continues to be updated. While the 2nd one I created does not.

                  Thanks for you help.

                  https://ibb.co/0JPPnH6

                  screenshot

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    @choder said in DUCKDNS Pfsense Using VPN IP Address not ISP IP Address:

                    I guess this means I have to many devices...

                    Ha, could be! 😉

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      freak4915 @stephenw10
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.