<br><div class="gmail_quote"><br>Hello Fellow Freeradius-Users,<br><div class="gmail_quote"><div class="gmail_quote"><br>I have freeRadius installed on Cent OS and I have Cisco C2960 switch as my NAS.<div><div class="h5"><div>
<br><br>I have a task to allocate browsing time 2hrs per day to students in our computer labs.<br>
<br>Logs from radius in debug mode says "res is greater than zero" users are not signed out after Max-Daily-Session is reached.<br>
<br>I want to be able to disconnect a user logged in after they have reached their maximum daily session. <br><br> Kindly find below config files which indicate maximum daily session of 120 seconds for testing purposes.<br>
<br></div>I have searched through Freeradius's mailing-List but have not found solution yet. I will be grateful for help to resolve the problem.<div><div><br><br>Thank you for help.<br><br><br>######################################################################<br>
/etc/raddb/radius.conf<br>######################################################################<br> counter daily {<br> filename = ${raddbdir}/db.daily<br> key = User-Name<br> count-attribute = Acct-Session-Time<br>
reset = daily<br> counter-name = Daily-Session-Time<br> check-name = Max-Daily-Session<br> allowed-servicetype = Framed-User <br> cache-size = 5000<br>
}<br><br><br><br><br>instantiate {<br> <br> exec <br> expr <br> daily<br>}<br><br><br><br><br><br>authorize {<br> preprocess<br> mschap<br> suffix<br>
eap<br>
files<br> sql<br> daily<br><br> <br>}<br><br><br><br>authenticate {<br> <br> Auth-Type PAP {<br> pap<br> }<br><br> <br> Auth-Type CHAP {<br> chap<br>
}<br><br><br> Auth-Type MS-CHAP {<br> mschap<br> }<br><br> unix<br><br><br> eap<br>}<br><br><br><br><br>#######################################################################<br>
/etc/raddb/users <br>#######################################################################<br><br><br>clare Max-Daily-Session:=120, User-Password := "password"<br><br><br>#########################################################################<br>
Dubug output<br>#########################################################################<br><br>rlm_counter: Check item = 120, Count = 0<br>rlm_counter: res is greater than zero<br>rlm_counter: (Check item - counter) is greater than zero<br>
rlm_counter: Authorized user clare, check_item=120, counter=0<br>rlm_counter: Sent Reply-Item for user clare, Type=Session-Timeout, value=120<br> modcall[authorize]: module "daily" returns ok for request 8<br>
</div></div></div></div></div><br>
</div><br>
</div><br>