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

    Setting up OpenVPN using DDNS hostname rather than ip address

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 3 Posters 1.8k 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.
    • LPD7L
      LPD7
      last edited by

      I am setting up my PFS box with a ddns, what I notice is when configuring and exporting vpn settings it shows the ip address which is "currently" assigned to my account but knowing that this is not always going to be the case and that using the host name would alleviate any future issues with ip address assignment changes, how do I setup my openvpn to use the host name instead of the ip address?

      Intelligence is not a substitute for common sense.
      Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
      Putting legacy equipment into service and out of landfills.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @LPD7
        last edited by

        @LPD7
        In the client export utility there is a drop-down at "Host Name Resolution". Your configured DDNS name should be shown up there.
        Otherwise select other, then you get an additional line to enter the host name.

        Consider the save the settings as default values for future use.

        LPD7L 1 Reply Last reply Reply Quote 0
        • the otherT
          the other
          last edited by

          Hey there,
          Usually in cases where ISPs give out dynamically changing IPs you would use a DynDNS service, linking your (changing) IP to a domain name, so you can then enter that in your - let's say openVPN - client software settings and done.
          In case your pfsense sits behind another router, your DynDNS should point there, so it is to be configured there.

          the other

          pure amateur home user, no business or professional background
          please excuse poor english skills and typpoz :)

          1 Reply Last reply Reply Quote 1
          • LPD7L
            LPD7 @viragomann
            last edited by

            @viragomann Wow that was simple and much appreciated. I have come accustomed to leaving settings as default and not sure what options are available unless I am forced to look deeper. I will have to get more curious in the future and not take the defaults as gospel. Thanks again.

            Intelligence is not a substitute for common sense.
            Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
            Putting legacy equipment into service and out of landfills.

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