Parameter in --client-disconnect

How to customize and extend your OpenVPN installation.

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

Post Reply
scegg
OpenVpn Newbie
Posts: 3
Joined: Fri Mar 11, 2011 2:08 am

Parameter in --client-disconnect

Post by scegg » Mon Mar 18, 2013 7:40 am

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.

scegg
OpenVpn Newbie
Posts: 3
Joined: Fri Mar 11, 2011 2:08 am

Re: Parameter in --client-disconnect

Post by scegg » Mon Mar 18, 2013 8:40 am

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?

scegg
OpenVpn Newbie
Posts: 3
Joined: Fri Mar 11, 2011 2:08 am

Re: Parameter in --client-disconnect

Post by scegg » Mon Mar 18, 2013 9:35 am

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".

Post Reply