From: Leonardo R. M. <leo...@so...> - 2008-12-29 10:51:55
|
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 :) -- Atenciosamente / Sincerily, Leonardo Rodrigues Solutti Tecnologia http://www.solutti.com.br Minha armadilha de SPAM, NÃO mandem email ger...@so... My SPAMTRAP, do not email it |