Comments (2)
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.
The complete D-Bus interface is documented here: OpenVPN 3 Linux Client - D-Bus overview
from openvpn3-linux.
Related Issues (20)
- OpenVPN3 v21, U 23.10 and CloudConnexa DIVE HOT 1
- Failed to start session with CloudConnexa on Fedora Linux HOT 3
- D-Bus API: requests for improvements HOT 3
- OpenVPN3 doesn't set back previous DNS after disconnect using systemd-resolved in stub mode HOT 4
- Support Synology DSM? HOT 2
- Can't access sites via domain only via ip
- <connection> profiles are non-functional + unkown/unsupported option details are lacking HOT 11
- Error after ArchLinux upgrade HOT 2
- Add support for resolvconf interface HOT 2
- Support for ubuntu 24.04 HOT 12
- How to check the encryption protocol used when connecting to openvpn HOT 1
- openvpn3 config-import --persistent doesn't persist over reboot HOT 21
- Can't install openvpn3 (Fedora 37) HOT 2
- openvpn3 session-start using config file fails to start on first attempt, works on second attempt HOT 7
- Archlinux install fails - ConfigManager inaccesssible for test-suite on first install HOT 3
- Can't connect witt Sophos router with OpenVPN v 21. HOT 14
- Migrate to codeberg.org
- Unknown options: "python.bytecompile" HOT 6
- Support for OpenSuse Tumbleweed HOT 1
- Openvpn3 update errors with apt HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvpn3-linux.