Page 1 of 1

Parameter in --client-disconnect

Posted: Mon Mar 18, 2013 7:40 am
by scegg
Hi. I'm new to OpenVPN programming.

Simply, I want to write a log to mysql after client disconnected, including user name, tx and rx for this disconnected connection. How can I get these parameters within my script?

is there any document about this script? or a simple demo would be fine.

Thanks a lot.

Re: Parameter in --client-disconnect

Posted: Mon Mar 18, 2013 8:40 am
by scegg
and. --client-disconnect not like --client-connect which has a script name after this option. How can I pass the script file name to openvpn for client-disconnect?

Re: Parameter in --client-disconnect

Posted: Mon Mar 18, 2013 9:35 am
by scegg
it seems that the original document (http://openvpn.net/index.php/open-sourc ... npage.html) has some mistake. the client-disconnect does have an additional parameter "script".