Hi,
I have a network of computers at work that access the internet using a firewall. I’ve been able to block certain websites and certain categories, however the firewall doesn’t allow to limit bandwidth consumption, so I got the Mikrotik 750GL.
I need to limit the bandwidth for each IP to consume 10gb of Internet bandwidth per month only, after their 10gb are consumed, Internet access will be stopped on their computers.
Can anyone provide the steps and script to program that on the mikrotik router please?
i have done this senario for 10gb (per month) to each hotspot user with limit bytes total set to 10737418240.
of course as i said i am using hotspot with standard users (no radius) and mac-cookie
every first each month at 00:01 i run a script to reset counters!
Hi, Thanks for your reply. I don’t plan to use it as hotspot.
My plan is to place the router before the firewall (which is my network gateway) to monitor all the traffic and limit bandwidth for each user.
Can you please provide any scripts you used to make this configuration? Or no scripts were required?
Can you do a tutorial how to do this?
ohh my god… i cant write down a tutorial for hotspot, its so long!!!. you have to read the wiki.
for me its better to connect to your router to setup it up or by teamviewer.
OK ok i know the procedure for hotspot.. No need. The question was, is only when create a new hotspot user, set the limits ? and that is or?

yes just set the limits. for me tis working perfect in a hotel with rooms per month!
of course 10gb is nothing so customer complaints come and go!
AH ok.. Con you post the script for reseting counters?
You dont think that entereing customer MAC directly is not more secure?

Did this button make the same thing like your script (instead the thing that must do manually)

Thanks for explaination

i dont care for security. is just a hotel hotspot. i dont want for every new customer having to write down the mac addresses. also “shared users” is set to “2” devices per user. i dont know every time if he is gonna using his/her device,mobile or laptop so i dont want to mess with mac addresses.
yes this button “reset counter” does the same for selected user. i have teach manager to press this button if he wants to reset someone manually because he ate all his bandwidth earlier.
for the command below i have make 12 schedules to run run this script 00:01 first of every month!
if i help please “rate me” in my profile. it will be my first!
Rated, thanks for great explaination 
can u rate me also as a user? you can find “rate user” command in my profile.
after so long time reading articles wikis and making experiments to my home rb2011 and to my customers rb and rbsxt, i am happy that i can give sollutions to other users! indeed is a nice feeling!
these bloody routers are @@@@@ awesome!
Rated as user 
Do you know any scenario how to have all this before, but to avoid logging the user every time as they wanted to use internet? So user get internet until go to limit of 10GB and stop. Is this possible or not? Limiting to be on some MAC adress, IP adress or something similar..
you mean without hotspot? no i dont know.
i am using mac-cookie feature in hotspot so they stay connected for 30d and after have to login again. so with this is not every day!
OK, thanks anyway, your help enought 