Git Product home page Git Product logo

Comments (2)

dsommers avatar dsommers commented on July 26, 2024

One alternative is to stop the openvpn3-service-configmgr process. Configuration profiles imported by openvpn3-autoload is kept in memory during the lifetime of the Configuration Manager (openvpn3-service-configmgr).

Another approach is to write a Python 3 script which uses the openvpn3 module, which provides the openvpn3.ConfigManager class. This class contains a LookupConfigName() method which returns a list of Configuration objects for each configuration profile matching the given name. Calling the Remove() method in each of these objects will do the trick.

Just beware, the openvpn3-autoload utility is not a proper replacement for openvpn3 session-start, it only provides a solution to situations where you want to automatically load VPN profiles and optionally start them. Typically during boot or login situations. But it can be run manually as well, which is why the manual run approach is considered a workaround for the --auth-user-pass with credentials saved in a file.

You may also write your own utility doing similar things, using the D-Bus API provied by OpenVPN 3 Linux. The openvpn2 and openvpn3-autoload programs are just Python scripts making use of that API. There is also an openvpn3.SessionManager class, which can be used to start VPN sessions and provide user credentials programmatically.

from openvpn3-linux.

dsommers avatar dsommers commented on July 26, 2024

The complete D-Bus interface is documented here: OpenVPN 3 Linux Client - D-Bus overview

from openvpn3-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.