OpenVPN GUI with multiple Windows local users

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Veep
OpenVpn Newbie
Posts: 2
Joined: Thu Mar 11, 2021 3:42 am

OpenVPN GUI with multiple Windows local users

Post by Veep » Fri Sep 16, 2022 11:50 pm

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

Veep
OpenVpn Newbie
Posts: 2
Joined: Thu Mar 11, 2021 3:42 am

Re: OpenVPN GUI with multiple Windows local users

Post by Veep » Mon Oct 17, 2022 10:13 am

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

Post Reply