• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 487 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 Aug 22, 2017, 3:02 PM

    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 Aug 23, 2017, 9:35 PM

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