Page 1 of 1

OpenVPN GUI with multiple Windows local users

Posted: Fri Sep 16, 2022 11:50 pm
by Veep
Hi, I'm struggling with my setup. I thank you in advance for any help.

My setup is:
- Qnap NAS as a OpenVPN server
- Windows 10 Home PC with OpenVPN GUI as a client

Up until now I had only one user and everything was working fine.
Now I added multiple local users (each with their own NAS credentials) and I discovered that OpenVPN GUI works system-wide.
If I connect from user A, then switch to user B, user B will be able to browse the NAS even without connecting with OnenVPN GUI (in fact, the trayicon stays transparent and not green). This is a problem for me because the NAS will see user B as if it was user A.

Is there a way to make OpenVPN GUI create a new tunnel for each user, instead of working system-wide?
Or do you have any other idea about how to solve my problem?
Thank you very much

Re: OpenVPN GUI with multiple Windows local users

Posted: Mon Oct 17, 2022 10:13 am
by Veep
I solved this issue by scheduling a VPN disconnection at every workstation lock (i.e. switch user) in Windows Task Scheduler.
Program/script: "C:\Program Files\OpenVPN\bin\openvpn-gui.exe"
Add arguments: --command disconnect example.ovpn