Community discussions

MikroTik App
 
ardalan
just joined
Topic Author
Posts: 1
Joined: Mon Dec 23, 2013 7:07 pm

Limit Users daily

Mon Dec 23, 2013 7:16 pm

Hi every body
i used mikrotik user manager as radius and i made a profile for limit download to 200 Mb.
i assigned this profile to 400 users and after they use, on user information page it says they "Used" that profile and i have to add new profile for every one.
how can i assign profile to users one time and make profile affect Daily (every one can download just 200 Mb in a day)?
thank you kindly
 
faghihsmh
just joined
Posts: 4
Joined: Fri Feb 15, 2013 7:56 pm

Re: Limit Users daily

Fri Jan 03, 2014 3:24 pm

hi
you can set validity for your profile for example 6 week.
in those six week if every one have reached his limitation you just have to reset the counter and for reseting
you can use a simple script that i wrote before and schedule it to run every day
here it is

foreach i in=[/tool user-manager user find customer=admin] do={/tool user-manager user reset-counter numbers=$i}
 
corkuck
just joined
Posts: 18
Joined: Wed Jan 22, 2014 9:06 pm

Re: Limit Users daily

Fri Feb 07, 2014 11:01 pm

I have been working on this also. Go to http://forum.mikrotik.com/viewtopic.php?f=10&t=81617

The problem is just by resetting the counters it doesn't restore the users profile for more Mb download. It may work for time limit reached but not for Mb quota reached limit to be restored. So the user can't log back in.

Unless I missing something?

"Happy MikroTik-ing"

MikroTik ROS 6.9 /x86

/rk

Who is online

Users browsing this forum: No registered users and 8 guests