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}'" }
|