Koozali.org: home of the SME Server

VPN statistics

Offline elmarconi

  • ****
  • 139
  • +0/-0
VPN statistics
« on: May 20, 2010, 11:07:11 PM »
As I was looking for a way to review VPN usage I found this:

http://www.tummy.com/Community/software/radiuscontext/

Download, unpack in /usr/local/radiuscontext, make a couple of symlinks, added a cronjob and it all works!

If anyone is interested in a copy/paste example, please let me know.

--edit HowTo--

mkdir -p /root/rr
cd /root/rr
wget ftp://ftp.tummy.com/pub/tummy/radiusContext/radiusContext-1.93.tar.gz
tar -xzf ./radiusContext-1.93.tar.gz
mv radiusContext-1.93 /usr/local/radiusContext
cd /usr/local/radiusContext
mkdir -p /home/e-smith/files/ibays/Primary/html/VPN-Report
chown www:shared /home/e-smith/files/ibays/Primary/html/VPN-Report
ln -s /home/e-smith/files/ibays/Primary/html/VPN-Report VPN-Report
ln -s /var/log/radius/accounting.log accounting.log

# Create daily Cron-job

echo \#\!/bin/sh >> /etc/cron.daily/radiusreport
echo cd /usr/local/radiusContext >> /etc/cron.daily/radiusreport
echo ./raddetail accounting.log >> /etc/cron.daily/radiusreport
echo ./stdreport --reportdir VPN-Report >> /etc/cron.daily/radiusreport

# Run once

. /etc/cron.daily/radiusreport

Now check http://smeserver/VPN-Report/  :-P

--edit HowTo--

Comments appriciated.
« Last Edit: May 21, 2010, 12:32:38 PM by elmarconi »
...

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: VPN statistics
« Reply #1 on: May 20, 2010, 11:36:17 PM »
If anyone is interested in a copy/paste example, please let me know.

please share, thank you