Hello! I've used freeradius 0.7.1. I try to use counter in file users :
pptest3 Daily-Session-Time > 7200, Auth-Type := Reject Reply-Message = "Your time limit is used" radiusd.conf # Configuration for the counter module # # 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 } } # Authentication types, Auth-Type = System for now. authenticate { } authorize { preprocess counter sql files } # Accounting. Log to detail file, and to the radwtmp file, and maintain # radutmp. accounting { acct_unique sql detail counter unix radutmp } User test3 didn't work today but I have the following message: Sending Access-Request of id 139 to 194.44.25.67:1645 User-Name = "pptest3" Password = "\367\214\023\005\350\342\236\307\237*\251\345Q\241\364\243" rad_recv: Access-Reject packet from host 194.44.25.67:1645, id=139, length=45 Reply-Message = "Your time limit is used" It was working when I had used freeradius 0.1.0 --( Regards, Svetlana - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html