i want to use counter, for users time limit,
but i want two type of limits:
monthly, with counter reset=monthly, and users that pays by hours,
with counter reset=never
how can i combine this in section counter?
counter {
filename = ${raddbdir}/db.counter
key = User-Name
count-attribute = Acct-Session-Time
reset = never
counter-name = RAD-Session-Time
check-name = RAD-Max-Session-Time
//can i use 'counter-name' and 'check-name' functions multiple times?
allowed-servicetype = Framed-User
cache-size = 5000
}
i want to make this configuration to work in mysql, so, a config in
users file, like this:
(i want to reject joe if his SUM of connection time
is over 10.000 sec. it's correct the next config?)
joe Auth-Type = Local, Password == "joepw"
Service-Type == Framed-User, Framed-Protocol == PPP,
RAD-Session-Time < 10000,
Framed-Compression = Van-Jacobson-TCP-IP,
Fall-Through = yes
user_x ...
user_n ...
DEFAULT Auth-Type = Reject,
Replay-Message = "your hours are over"
where can i read more detailed about the principle of counter (or
sql_counter?)
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html