News: This forum is now permanently frozen.
Pages: [1]
Topic: Limit Transfer Volume  (Read 1527 times)
« on: May 29, 2007, 21:47:01 »
satlizard26 *
Posts: 26

Hi All

Maybe not the correct forum to try and post this but, I googled this but with no success. I am try to limit the AcctInputOctets+AcctOutputOctets through the captive portal using freeradius to a set amount say 1Gig / Month

This string in the radconf.conf seems to do something, but if I just cant log in, even if set the account to above the limt. I included the Max-Total-Octets in the rad-check file, and set the limit using freeradius-dialupdmin but it does not seem to work.

I'am using ubuntu with freeradius 1.5, please someone point me in the correct direction.


sqlcounter totaloctets {
counter-name = Max-Total-Octets
check-name = Max-Total-Octets
reply-name = Max-Total-Octets
sqlmod-inst = sql
key = User-Name
reset = monthly
query = "SELECT SUM(AcctInputOctets+AcctOutputOctets) FROM radacct WHERE UserName='%{%k}'"
}
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines