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

Re: [Openvpn-users] OpenVPN user usage reporting


  • Subject: Re: [Openvpn-users] OpenVPN user usage reporting
  • From: Erich Titl <erich.titl@xxxxxxxx>
  • Date: Thu, 26 Jul 2007 12:17:07 +0000

Jake

Jake Conk wrote:
> Thats an interesting approach. How would you get client variables with
> client script such as the client who is currently connecting?

There should be an example in the mail archives :-)

>>>>>>>>>>>>> connect

#!/bin/sh

LOGGER=/usr/bin/logger
HOSTNAME=`hostname`
SCRIPT=`basename $0`

$LOGGER -plocal3.info -t "$HOSTNAME openvpn $SCRIPT" "${common_name}"

>>>>>>>>>>>> disconnect

#!/bin/sh

LOGGER=/usr/bin/logger
HOSTNAME=`hostname`
SCRIPT=`basename $0`

$LOGGER -plocal3.info -t "$HOSTNAME openvpn $SCRIPT" ${common_name}
bytes: ${bytes_sent}/${bytes_received}


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users