|
From: Bill W. <te...@be...> - 2008-12-29 14:01:25
|
I don't have a windows environment, but it would be easy to verify. Simply write your script to write into a file with echo. If that works, replace the echo with some smtp client to send mail instead. //Bill chromanty wrote: > Oh thanks for the good directives, do you know if this works on the windows > server version? > > > > chromanty escreveu: > >> Hi all, >> i would to know if it is possible to configure openvpn server to send a >> notification (such as a mail message) when a client connect/disconnect. >> >> >> > > sure it's possible. make yourself a script that does whatever you > want it to do (send an email, for example, in your case) but could be > ANY other thing that could be done in script and get it to OpenVPN with: > > client-connect > client-disconnect > > parameters. > > when scripts called from OpenVPN enviromnent, OpenVPN will define > some enviromnent variables that you can use in your script. Check > 'Scripting and Environmental Variables' on OpenVPN man page: > > http://openvpn.net/index.php/documentation/manuals/openvpn-20x-manpage.html# > lbAP > > $common_name > > is one of those variables that you surely want :) > > |