client-connect and client-disconnect scripts

How to customize and extend your OpenVPN installation.

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

Post Reply
vieri
OpenVPN User
Posts: 21
Joined: Sun Oct 09, 2016 5:01 pm

client-connect and client-disconnect scripts

Post by vieri » Thu Oct 20, 2016 6:52 am

Hi,

I'm using client-{,dis}connect scripts on a server to log client connection data. Basically, client-connect logs the time when a client brings the tunnel up with several env variables. On the other hand, client-disconnect mostly logs the time and the bytes sent and received. How can I "link" the two logs together? Is there a unique tunnel session ID I can log?

Post Reply