Skip to contentSkip to conversation

Start openvpn gui before windows login

Openvpn-devel Ruben Herold 3 participants 4 messages Nov 15, 2021

lore
Share & tools
lore
#0 lore raw
        hi,

at our company we run into problems with domain joined windows notebooks during lock downs. We realized that there is no way to start openvpn gui before windows login to connect to the company network.

I asks our support contact at MS an got the information that this is only possible via: Universal Windows Platform (UWP) VPN plug-ins.

It should be possible to add external vpn clients like cisco anyconnect:

https://docs.microsoft.com/en-us/windows/security/identity-protection/vpn/vpn-connection-type

"There are a number of Universal Windows Platform VPN applications, such as Pulse Secure, Cisco AnyConnect, F5 Access, Sonicwall Mobile Connect, and Check Point Capsule. If you want to use a UWP VPN plug-in, work with your vendor for any custom settings needed to configure your VPN solution."

As seen on the screenshoot at:

https://remote-learning.arizona.edu/campus-technology-how-tos/vpn-start-before-logon

It looks like they only start their client gui.

The only documentation I could get so far is:

https://docs.microsoft.com/en-us/uwp/api/Windows.Networking.Vpn?view=winrt-22000
and this could be an example:

https://github.com/ysc3839/UWPToyVpn

I'm not a developer so I can't proof. But I have some contacts at MS to ask for more informations if needed.

I think this could be a very usefull extension to openvpn.

Thx

ruben

Signature · 2 lines
Ruben Herold 
[email protected]...
#1 lore raw

Hi,

A few years back we made a Proof-of-Concept with OpenVPN 3 and Windows UWP API. Performance-wise it was on tap-windows6 level (which is not impressive), there were some issues with UDP transport (which were solved by MSFT later) and usability related to UWP app model - for example application might be "paused" when it is not on the foreground, which means inability to send ping packets and disconnect.

Things might have changed since then, but our priorities now are releasing 2.6 with the new dco/dco-win drivers, which significantly improve performance. We might have a look at UWP VPN after that again.

Are you sure your problem cannot be solved with openvpn service?

See, for example,
https://openvpn.net/community-resources/running-openvpn-as-a-windows-service/
Also this discussion might be relevant:
https://github.com/OpenVPN/openvpn-gui/issues/77

--
-Lev

#2 lore raw

On Mon, Nov 15, 2021 at 02:45:53PM +0200, Lev Stipakov wrote:
Hi,

Quoted 3 lines

Things might have changed since then, but our priorities now are releasing 2.6 with the new dco/dco-win drivers, which significantly improve performance. We might have a look at UWP VPN after that again.

Cause from the screenshoots it looks like they have found a way to start their own gui during login so that the user can use MFA and so on. Or do they really do all their vpn stuff via UWP?

I'm not very deep in this Windows stuff, so it can be that I'm on the complete wrong way.

Quoted 7 lines

Are you sure your problem cannot be solved with openvpn service?

See, for example,
https://openvpn.net/community-resources/running-openvpn-as-a-windows-service/
Also this discussion might be relevant:
https://github.com/OpenVPN/openvpn-gui/issues/77

We are using user/pass auth against AD and MFA so this is not possible.

Ruben

Signature · 2 lines
Ruben Herold 
[email protected]...
#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
user/pass.

Quoted 6 lines · Ruben Herold
Quoted 4 lines · Lev Stipakov

Are you sure your problem cannot be solved with openvpn service?

See, for example,

Quoted 8 lines
Quoted 5 lines

https://openvpn.net/community-resources/running-openvpn-as-a-windows-service/

Also this discussion might be relevant:

https://github.com/OpenVPN/openvpn-gui/issues/77

We are using user/pass auth against AD and MFA so this is not possible.

You can save user/pass to a text file and have openvpn read it.

Regards

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAGBQJhknRpACEJEE+XnPZrkLidFiEECbw9RGejjXJ5xVVVT5ec 9muQuJ3BFggAvO0aIVB2pblvi+NgTi/V5be0n+6m1tqMD6Z8262mPTdPP27F FAxzgvy37ck7ojzpHbWOuCHgwI8qm7C9wWEUZvqRbb/Od5oIxSmQZrNDG10P hZqMpaDUKFq3VRLQ6cHj0dcntW3+0poeIeMguI/bGiym2rsiWwOuWKeU6s/F yZs6DacAMu4hvq2ZfHsyszZnjkLcVXzd9lsNtU0mEx2YEcELBLsWBlStE/FO vJAWi2odrNDQkvX24H9TiL8AVOvaTJ6XK6YGLyC3wxplE6OlrgJ55MCJLU/Z ZkyLf0j4jpwSsteKGw4m3YqHQzdmB397l5+UmrYM6FdoAtKn48iErQ== =Jk8I
-----END PGP SIGNATURE-----