Setting up OpenVPN using DDNS hostname rather than ip address
-
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?
-
@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.
-
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. -
@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.