Comments (5)
To be honest, I'm puzzled by your approach ... I would rather recommend you modify or write your own openvpn3-autoload
variant solving your issue more directly than wrapping a Python script from a bash script.
I would suggest adding your MFA injection somewhere close to this line:
openvpn3-linux/src/python/openvpn3-autoload
Line 275 in 1888b97
You can also have a look at the src/tests/python/start-tunnel2.py test code which covers how to start a pre-imported (via openvpn3 config-import
) configuration profile. Configuration file import can also be done in Python, see the src/tests/python/configimport.py for details. Adding a configuration/option parser (which is used by the openvpn3-autoload
and openvpn2
scripts) is demoed here in src/tests/python/genconfig.py.
from openvpn3-linux.
Oh, and I forgot ... there's a very slimmed down openvpn2
example in src/tests/python/ovpncli.py
from openvpn3-linux.
This can be done many ways it seems. I am looking to share this and be configured with minimal effort so python script may be more helpful in achieving that.
I created python script to do this using the src/tests/python/genconfig.py example, I still am seeing errors when I call its equivalent --static-challenge
. I did notice it embedded my auth-user-pass
as XML like syntax in the config which resulted in a more descriptive error which makes me think it needs more time before opening connection. I guess with a little bit of unwanted effort I can make some modifications with a python script to process just the MFA question, just need to figure that out in code I guess.
session-start: ** ERROR ** Failed to start new session: Failed calling D-Bus method Ready: GDBus.Error:net.openvpn.v3.sessions.error: Backend VPN process have died. Session is no longer valid.
from openvpn3-linux.
I've been doing some more investigation, and it looks like there is a regression in the Python module which does not properly handle MFA authentication
from openvpn3-linux.
This should work now with the openvpn2
implementation in the v16_beta release (with commit 2aa087c).
The openvpn3-autoload
approach is questionable in regards to 2FA, and this utility is going to be deprecated in future releases as we have added a better way for handling this with systemctl {start,stop,status} [email protected]
.
Static and dynamic challenges in openvpn3-autoload
will not have a high priority going forward.
Closing this issue as fixed.
from openvpn3-linux.
Related Issues (20)
- session-manage --cleanup doesn't always clean up? HOT 4
- Ubuntu 23.10 - Failed to execute program net.openvpn.v3.sessions: Permission denied error persists. HOT 1
- TLS Error with openvpn3 HOT 14
- Route metrics HOT 2
- non-interactive auth-user-pass mode with dummy data HOT 6
- ** ERROR ** Configuration profile name "CloudConnexa" already exists HOT 9
- StatusManagerEvent signal is sent before backend client service is ready HOT 14
- Provided script for connector installation failed HOT 1
- 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 2
- OpenVPN3 doesn't set back previous DNS after disconnect using systemd-resolved in stub mode HOT 1
- 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 1
- Add support for resolvconf interface HOT 1
- Support for ubuntu 24.04 HOT 4
- How to check the encryption protocol used when connecting to openvpn HOT 1
- openvpn3 config-import --persistent doesn't persist over reboot HOT 12
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.