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

    He.net dynamic dns issue

    Scheduled Pinned Locked Moved IPv6
    12 Posts 7 Posters 10.0k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      AFAIK the he.net dyndns type is for their dyndns service, not for updating an ipv6 tunnel endpoint IP. I'd have to look the code over to double check though.

      Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • B
        bardelot
        last edited by

        @jimp:

        AFAIK the he.net dyndns type is for their dyndns service, not for updating an ipv6 tunnel endpoint IP. I'd have to look the code over to double check though.

        They also have an interface to update the tunnel endpoint IP.

        
        Usage: https://ipv4.tunnelbroker.net/ipv4_end.php?ip=IPV4ADDR&pass=MD5PASS&apikey=USERID&tid=TUNNELID
         -or-: https://USERNAME:PASSWORD@ipv4.tunnelbroker.net/ipv4_end.php?tid=TUNNELID (auto-detect IP)
        Ā  Ā  Ā   https://USERNAME:PASSWORD@ipv4.tunnelbroker.net/ipv4_end.php?tid=TUNNELID&ip=IPV4ADDR
        
        IPV4ADDR: Your IPv4 endpoint.Ā  Set to AUTO to determine your IP based on the IP you requested this page from.Ā  Previously passed as ipv4b.
        MD5PASS : The MD5 hash of your password.Ā  You may be able to 'echo -n YOURPASSWORD | md5sum' to produce the MD5 hash of your password.
        USERIDĀ  : The UserID shown on the main page of tunnelbroker.net when you log in.Ā  Previously referred to as user_id.
        TUNNELID: The ID of the tunnel you're updating the endpoint on.Ā  This can be found on the tunnel information page.Ā  Previously referred to as the Global Tunnel ID / tunnel_id.
        
        
        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          I meant the he.net dyndns type in our code, not on their servers :-) The one in our code only goes to "https://dyn.dns.he.net/nic/update"

          Though that is awesome that they have the update there. Last I saw they had some clunky perl script that did a POST to the tunnelbroker site. It should be possible to code up an update type for that rather easily then.

          Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            smacks the easy button

            https://github.com/smos/pfsense-ipv6/commit/38a481adc8179b1df06faf0e7fcc08a51a6de53e

            Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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

              love the easy button!!

              1 Reply Last reply Reply Quote 0
              • I
                iFloris
                last edited by

                awesome, thanks jimp!

                one layer of information
                removed

                1 Reply Last reply Reply Quote 0
                • S
                  singerie
                  last edited by

                  Thanks jimp !Ā  ;D

                  1 Reply Last reply Reply Quote 0
                  • P
                    plinss
                    last edited by

                    This isn't working for me. System log lists:
                    php: /services_dyndns_edit.php: phpDynDNS: (Error) Bad Request - Missing/Invalid Parameters.

                    Looking at the code in the commit above it seems that maybe HE changed the parameters they're expecting. I have this working in a script (on my desktop), this is what I'm using:
                    https://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b=$NEW_IP&pass=$HEPASS&user_id=$HEUSER&tunnel_id=$HETUNNEL

                    Where $HEUSER is the user ID from the HE web page (not the username I log in to the site with) and $HEPASS is and MD5 hash of my HE web page login password.

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Still updating and working fine for me.

                      The settings in the GUI are:
                      Hostname: tunnel id
                      Username: he.net username
                      Password: he.net password

                      According to their spec, your way works too.

                      http://ipv4.tunnelbroker.net/ipv4_end.php

                      We use the https method with basic auth and tid (middle choice here)

                      Usage: https://ipv4.tunnelbroker.net/ipv4_end.php?ip=IPV4ADDR&pass=MD5PASS&apikey=USERID&tid=TUNNELID
                       -or-: https://USERNAME:PASSWORD@ipv4.tunnelbroker.net/ipv4_end.php?tid=TUNNELID (auto-detect IP)
                      Ā  Ā  Ā   https://USERNAME:PASSWORD@ipv4.tunnelbroker.net/ipv4_end.php?tid=TUNNELID&ip=IPV4ADDR
                      
                      IPV4ADDR: Your IPv4 endpoint.Ā  Set to AUTO to determine your IP based on the IP you requested this page from.Ā  Previously passed as ipv4b.
                      MD5PASS : The MD5 hash of your password.Ā  You may be able to 'echo -n YOURPASSWORD | md5sum' to produce the MD5 hash of your password.
                      USERIDĀ  : The UserID shown on the main page of tunnelbroker.net when you log in.Ā  Previously referred to as user_id.
                      TUNNELID: The ID of the tunnel you're updating the endpoint on.Ā  This can be found on the tunnel information page.Ā  Previously referred to as the Global Tunnel ID / tunnel_id.
                      
                      The following parameters are only usable when accessing this script over https.
                      USERNAME: Your tunnelbroker.net username.
                      PASSWORD: Your tunnelbroker.net password.
                      
                      The legacy parameter names will continue to work for the forseable future.Ā  Naming of them changed to be more in line with industry convention and their roles.
                      
                      

                      Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • P
                        plinss
                        last edited by

                        Ah, thanks jimp! I was using the userid from the other method instead of my username. Works now.

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