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

    Refresh of OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 2.9k 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
      mnsmani
      last edited by

      I had defined two entries in OpenVPN. When I make the change in configure file (directly), it is not reinitializing the VPN.
      If I refresh one entry, say the second entry, then the first entry is not getting refreshed.
      I need to explicitly open the openvpn settings and click on the Save Button to initialize the OpenVPN.

      Any suggestions for its automatic initialization ?

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        What do you mean by making changes in config file directly? Which file? config.xml or config file of the service? You shouldn't do any manual changes to any files as everything is generated from the webgui dynamically on changes/reboot. Use the webgui for making changes.

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by

          You need to remove /tmp/config.cache after changing config.xml

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

            Figured it out.
            1. Killed the process based on pid in /var/run
            2. Built the conf file using openvpn.inc
            3. Called openvpn command with conf file as argument.

            Bingo… went on well.

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