Thank you
I want to allow user to surf for 1 hour and for 300MB.
If you exceed both limits, you'll be not anymore authorized to access
Internet.
Regards
Ilaria
Il 22/08/12 13:47, Phil Mayers ha scritto:
On 22/08/12 12:28, Ilaria De Marinis wrote:
Hi list,
I'm trying to set authorize section in my default sites file.
I need to allow traffic users in terms of time and bandwidth.
So, my attempts were like these:
authorize{
dailycounter
if (Auth-Type == "Reject") { #I tried also if(!ok) or
if (reject)
update control{
Post-Auth-Type := "Access-Accept"
}
dailybandwidthcounter
}
.....
}
This is all wrong.
First, if "dailycounter" (or any module) returns "reject", processing
of authorize stops. If you want to change this, you need to override
the default module return code actions - see doc/configurable_failover.
Second, trying to match "Auth-Type" like this won't work, because it's
a control item, not a request item.
Third, setting "Post-Auth-Type" to "Access-Accept" is meaningless. It
doesn't do what you want.
So, throw all that way - it's useless.
What do you actually want to *do*?
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
--
------------------------------------------------
Ilaria De Marinis
Settore Reti e Servizi
Phone: +3906-44486052
CASPUR - Via dei Tizii ,6 - 00185 Roma
e-mail: ilaria.demari...@caspur.it
------------------------------------------------
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html