OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • [SOLVED] Using Dynamic DNS for OpenVPN server
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Using Dynamic DNS for OpenVPN server  (Read 20093 times)

think124

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
[SOLVED] Using Dynamic DNS for OpenVPN server
« on: December 16, 2017, 06:28:43 pm »
Hi there,
i have setup a working OpenVPN server by following the documentation online.  I was wondering if it is possible for the server to be setup so the client connects to a dynamic DNS hostname since the router WAN address could change.  I have dynamic DNS working on OPNsense but I didn't see any options to tie that to the OpenVPN configuration.

Thanks
« Last Edit: December 18, 2017, 04:54:09 am by think124 »
Logged

think124

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Using Dynamic DNS for OpenVPN server
« Reply #1 on: December 16, 2017, 06:58:21 pm »
I edited the .ovpn config file that is generated by OPNsense to reference the dynamic DNS address instead of the hard coded IP address.  This seems to work, but not sure if there is a more elegant way to do this?
Logged

miroco

  • Full Member
  • ***
  • Posts: 106
  • Karma: 8
    • View Profile
Re: Using Dynamic DNS for OpenVPN server
« Reply #2 on: December 17, 2017, 01:31:13 pm »
Hi think24,


If I got you right, you can do that under VPN -> OpenVPN -> Client Export -> Host Name Resolution - > Dynamic DNS: YourDynamicDns.com

Then you export your client (.ovpn) file.


miroco
Logged

Gargamel

  • Newbie
  • *
  • Posts: 37
  • Karma: 1
    • View Profile
Re: Using Dynamic DNS for OpenVPN server
« Reply #3 on: December 17, 2017, 04:05:32 pm »
Thats how i do it.
Setup a DynDNS in services, and then pointed my openvpn client config to that dyndns.
Logged

think124

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Using Dynamic DNS for OpenVPN server
« Reply #4 on: December 18, 2017, 04:03:01 am »
Thanks, I'll try that!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • [SOLVED] Using Dynamic DNS for OpenVPN server
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2