I have modified the sqlcounter module to not only replying with a
Session-Timeout but with another attribute - Recv-Limit in my case as it is
supported by my NAS. The counter module then simply does a query on the
database during the access request processing and returns the limit allowed
for the user based on the maximum - used value set in the radcheck table for
the user or radgroupcheck for the user's group.

This works better than an external script as it will also limit the user for
the current session - and it implies that he will never be able to use more
than his allowed maximum

Jaco van Tonder

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Shawn Hamman
Sent: 03 April 2006 03:23 PM
To: freeradius-users@lists.freeradius.org
Subject: Implimenting Capping with FreeRadius

Hi,

OS: Fedora C4
FR: 1.0.2-2
DB: MySQL 4.1.11-2

I was wondering if anybody has a more elegant solution to implementing 
capping with FreeRadius than writing a script that totals the bytes in/out 
in the radacct table every couple of minutes and updates the radcheck table 
to deny further logins?

Shawn 

- 
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to