Disconnect reason within client-disconnect scope?
Posted: Mon Oct 10, 2011 9:47 pm
I've done quite a bit of hunting in the OpenVPN 2.1 documentation and Google (which indexes this forum) to find out how to get access to the disconnect reason within the "client-disconnect" event scope and haven't really found anything that helps. The "signal" environment variable used to convey this information only gets populated on a "down" event but I need access to this at the time of the client-disconnect. This information appears to be available somewhere when the client disconnects because with the verbosity set to level six, I see this in the OpenVPN log at the time of a client disconnect:
So how do I get access to this information at the time of the client-disconnect? Did I completely miss something in the documentation?
I'm using the following version of OpenVPN in case it matters: OpenVPN 2.1_rc11 x86_64-pc-linux-gnu [SSL] [LZ02] [EPOLL] [PKCS11]
Thanks!
Dumping all environment variables from within the client-disconnect shell script as well as programmatically from within the code for the Radius plugin for OpenVPN indicates that the signal variable is not available and neither is anything else that would indicate the cause of the disconnect shown in the log.Fri Oct 8 16:33:13 2011 us=657594 <user>@<domain>/<client_ip>:<client_port> SIGUSR1[soft, connection-reset] received, client-instance restarting
So how do I get access to this information at the time of the client-disconnect? Did I completely miss something in the documentation?
I'm using the following version of OpenVPN in case it matters: OpenVPN 2.1_rc11 x86_64-pc-linux-gnu [SSL] [LZ02] [EPOLL] [PKCS11]
Thanks!