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

    Restart OpenVPN / re read host address - command line

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 471 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.
    • Z
      zMaliz
      last edited by

      Hi

      Does openVPN read the remote server hosts address from config.xml or is there another file it reads from ?

      Is it possible to restart the openVPN either via PHP or the command line ?
      If I script the update of the server hosts address in config.xml, when I restart openVPN will it use the new host address ?

      Any issues with doing this ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Z
        zMaliz
        last edited by

        Hi

        My script is correctly editing config.xml and client1.conf

        OpenVPN is restarted and it appears to connect to the new server, but the GUI still shows the old host address and after a minute or so the VPN appears to be connected back to the old host.

        Can this be done?
        Thanks

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