[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] logging / monitoring of connected users


  • Subject: Re: [Openvpn-users] logging / monitoring of connected users
  • From: Mike Tancsa <mike@xxxxxxxxxx>
  • Date: Mon, 08 May 2006 14:06:34 -0400

At 08:40 AM 08/05/2006, balwant singh wrote:
Dear All,

I am able to see the details of users, which are presently connected by following setting in server.conf

status openvpn-status.log

But i want to see the details of users which connected but now disconnected. May please help me.


Try adding  something like


client-connect "/usr/local/etc/openvpn/up.sh" client-disconnect "/usr/local/etc/openvpn/down.sh"

In up.sh

/usr/bin/logger -p local3.notice -t UP $common_name ME $ifconfig_local REMOTE $ifconfig_pool_remote_ip FROM $untrusted_ip

In down.sh

/usr/bin/logger -p local3.notice -t DOWN $common_name $username ME $ifconfig_local REMOTE $ifconfig_pool_remote_ip FROM $untrusted_ip sent=$bytes_sent received=$bytes_received

This will log to your local syslog server


______________________ OpenVPN mailing lists https://lists.sourceforge.net/lists/listinfo/openvpn-users


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-05/msg00072.html on line 195

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-05/msg00072.html on line 195