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

    Update OpenVPN Client config from Server

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 Posters 680 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.
    • M
      mathm0s
      last edited by

      My external DNS name referenced in my OpenVPN client config for connecting is changing e.g. old.server.com:1194 to new.server.com:1194

      Is there a way I can push out the new connection details next time the client connects without exporting my client configs again?

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

        Go to the client export tool and put the new name in the "Host Name" box, go down and press "Save as default".

        1 Reply Last reply Reply Quote 0
        • PippinP
          Pippin
          last edited by

          Either the client edits it's config file or do as @viragomann writes, re-export and hand it over to the client.

          I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
          Halton Arp

          V 1 Reply Last reply Reply Quote 0
          • M
            mathm0s
            last edited by mathm0s

            Thanks, have already done the update in the Client Export tool so any new clients added will get the updated conf but was hoping there was a way to remotely update the existing remote users client config without re-exporting. I just need to update the line in the client config file "remote old.server.com 1194 udp" to "remote new.server.com 1194 udp"

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

              Yeah, read the second line too fast. Of course, you have to update the clients config, either manually or import a new config file.

              1 Reply Last reply Reply Quote 0
              • M
                mathm0s
                last edited by

                I can push routes and other config parameters via the server, frustrating that this isn't one of them;/ My remote user base is about 40, if I had 100's I'd be very unpopular.

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