'–explicit-exit-notify' and 'client-disconnect'

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
lazna
OpenVpn Newbie
Posts: 12
Joined: Fri Mar 01, 2019 9:50 pm

'–explicit-exit-notify' and 'client-disconnect'

Post by lazna » Wed Feb 17, 2021 10:00 am

Maintaining OpenVPN users status (connected/disconnected) in external database for some reason, utilizing script binded via 'client-disconnect' directive in 'server.ovpn'. In 'client.ovpn', there is a 'explicit-exit-notify' directive. Problem is, that this directive do not send logout msg to server when openvpn client is terminated by OS restart, or other non-standard way.

Is there any way to openvpn trigger my script when user timeouting on server?

Post Reply