-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update of PR #327 (OpenVPN3 support) #506
Conversation
This adds optional support for using OpenVPN3 client as an alternative to openvpn2. Just replacing one client with another will not work: - OpenVPN3 doesn't use interactive service, it uses "agent" service with completely different protocol. OpenVPN GUI needs to talk to agent using HTTP and JSON. - OpenVPN3 management interface realtime notifications must be explicitly turned on in order for GUI to work. To enable using openvpn3, one needs to build openvpn-gui with ./configure --enable-ovpn3 option. This also requires json-c library. To switch betweet openvpn2 and openvpn3, see "OpenVPN Engine" radiobutton group in Settings -> Advanced dialog. Management interface - enabled OpenVPN3 client will be added soon to openvpn3 repo (along with existing "cli" test client). Also agent service will be opensourced in near future. Signed-off-by: Lev Stipakov <[email protected]>
Signed-off-by: Lev Stipakov <[email protected]>
IIRC, when the original PR was submitted, ovpnagent was not available publicly. Has that changed? |
Um, when you say available publicly, do you mean as a binary? Or to be built, from source? The source is available here: https://github.com/OpenVPN/openvpn3/tree/master/openvpn/ovpnagent I built OpenVPN3 locally (on Win11). Using I had to fix a couple of small issues: OpenVPN/openvpn3#218 |
8792b45
to
c8f7aef
Compare
ovpnagent is now available in source (as @facboy) mentioned and also binary form (GitHub Actions artifacts, for example https://github.com/OpenVPN/openvpn3/suites/6374869439/artifacts/231032114). The interest in merging this is a bit less than before, since with (coming) dco-win most of functionality will be moved from openvpn2/3 into kernel. That said, I think we could review and merge it - assuming it is useful for community and doesn't complicate code much. |
Since we have switched to CMake:
|
Thanks. I think it was closed source in 2020 when the original PR was submitted. |
done |
654be36
to
73c7cba
Compare
Yay, it works :) I was able to connect to corp vpn with dco-win driver using openvpn-gui and openvpn3 ovpnagent/omicliagent. Prerequisites:
One small thing I noticed is that settings dialog height has grown by 40px even if ENABLE_OVPN3 is not set. Can we not do it (and resize programmatically instead?) for existing configurations? |
hmm...i suspect that is beyond me! i believe if you run |
I guess this is in reference to constructing the controls at run-time. Can't we use preprocessor directives in resource files? Like:
and similar for the new groupbox and buttons. And, remove the conditional hiding of those controls in options.c |
i think this does it. |
I am revamping #327 based on @facboy's work - will rebase on top of master, remove merge commits and squash fixes. This also works:
and then
|
kk, closed. |
@lstipakov i merged master back into your PR #327 and addressed some of the comments from @selvanair.
is there interest in getting this merged?