Auto Disconnect user on logout

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
scouseman
OpenVpn Newbie
Posts: 1
Joined: Sun Apr 28, 2019 7:41 pm

Auto Disconnect user on logout

Post by scouseman » Sun Apr 28, 2019 7:59 pm

Hi,
I am using Debian 9 and openvpn sever version 2.3.10-1ubuntu2.1
And CLient OpenVpn V11.12 on Windows10

My Client config

Code: Select all

client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote 1x5.1x7.22.1x1 1x99
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
setenv opt block-outside-dns
key-direction 1
verb 3
<ca>
My issue is when a user logs out of windows 10 the vpn connection is left open and a new user can continue to use that same vpn connection when they log in. I need to disconnect a user from the vpn server when they log out of windows 10.

Cheers

marshall2020
OpenVpn Newbie
Posts: 4
Joined: Thu Jan 20, 2022 2:04 am

Re: Auto Disconnect user on logout

Post by marshall2020 » Thu Jan 20, 2022 2:05 am

My problem how the openvpn still ON heheh. how did you do that?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Auto Disconnect user on logout

Post by TinCanTech » Thu Jan 20, 2022 2:40 am

If you start an auto-start VPN profile then it is always on.

See: C:\Files\Openvpn\config-auto\readme.txt

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Auto Disconnect user on logout

Post by TinCanTech » Mon Jan 24, 2022 3:07 pm

@marshall2020 I have put your replies into your own thread here: viewtopic.php?f=6&t=33618

Please use your thread above.

Post Reply