• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.7k 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.
  • L
    LPD7
    last edited by Jul 27, 2023, 6:40 PM

    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 Jul 27, 2023, 6:54 PM Reply Quote 0
    • V
      viragomann @LPD7
      last edited by Jul 27, 2023, 6:54 PM

      @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.

      L 1 Reply Last reply Jul 27, 2023, 7:28 PM Reply Quote 0
      • T
        the other
        last edited by Jul 27, 2023, 6:58 PM

        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
        • L
          LPD7 @viragomann
          last edited by Jul 27, 2023, 7:28 PM

          @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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received