Hello, Dan!
> I think I know what he means, because I'd like to do the same thing here. That
> is, limit someone's dialin time to 1 hour (or whatever) per day. So today he can
> log in for one hour. Once that hour's up, he has to wait until tomorrow. He'll
> get another hour tomorrow. And so on. Is that possible, and if so how?
Look at radiusd.conf.
module counter
=====8<=======================================================
# This module takes an attribute (count-attribute), which MUST
# be an 'integer' or 'time' attribute. It also takes a key,
# and creates a counter for each unique key. The count is
# incremented when accounting packets are received by the
# server. The value of the increment is the value of the
# count-attribute.
#
# The 'reset' parameter defines when the counters are all reset to
# zero. It can be hourly, daily, weekly, or monthly.
#
# The counter-name is the name of the attribute in the 'users'
# file used to access that counter. e.g.
#
# DEFAULT Daily-Session-Time > 3600, Auth-Type = Reject
# Reply-Message = "You've used up more than one hour today"
counter {
filename = ${raddbdir}/db.counter
key = User-Name
count-attribute = Acct-Session-Time
reset = daily
counter-name = Daily-Session-Time
check-name = Max-Daily-Session
allowed-servicetype = Framed-User
cache-size = 5000
}
=====8<=======================================================
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html