Community discussions

MikroTik App
 
issasaddi
just joined
Topic Author
Posts: 2
Joined: Thu Jul 02, 2015 10:16 am

Bandwidth Limitation

Fri Sep 18, 2015 11:21 am

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?
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:08 pm

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!
You do not have the required permissions to view the files attached to this post.
 
issasaddi
just joined
Topic Author
Posts: 2
Joined: Thu Jul 02, 2015 10:16 am

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:17 pm

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?
 
deanMKD1
Member
Member
Posts: 366
Joined: Fri Dec 12, 2014 12:06 am
Location: Macedonia
Contact:

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:18 pm

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!
Can you do a tutorial how to do this?
Last edited by deanMKD1 on Fri Sep 18, 2015 3:46 pm, edited 1 time in total.
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:22 pm

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.
 
deanMKD1
Member
Member
Posts: 366
Joined: Fri Dec 12, 2014 12:06 am
Location: Macedonia
Contact:

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:32 pm

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?

Image
Last edited by deanMKD1 on Fri Sep 18, 2015 3:37 pm, edited 1 time in total.
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:35 pm

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!
You do not have the required permissions to view the files attached to this post.
 
deanMKD1
Member
Member
Posts: 366
Joined: Fri Dec 12, 2014 12:06 am
Location: Macedonia
Contact:

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:45 pm

AH ok.. Con you post the script for reseting counters?

You dont think that entereing customer MAC directly is not more secure?

Image

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

Image

Thanks for explaination :) :D
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:50 pm

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!
You do not have the required permissions to view the files attached to this post.
Last edited by freemannnn on Fri Sep 18, 2015 4:04 pm, edited 4 times in total.
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:54 pm

if i help please "rate me" in my profile. it will be my first!
 
deanMKD1
Member
Member
Posts: 366
Joined: Fri Dec 12, 2014 12:06 am
Location: Macedonia
Contact:

Re: Bandwidth Limitation

Fri Sep 18, 2015 3:58 pm

Rated, thanks for great explaination :)
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: Bandwidth Limitation

Fri Sep 18, 2015 4:01 pm

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!
 
deanMKD1
Member
Member
Posts: 366
Joined: Fri Dec 12, 2014 12:06 am
Location: Macedonia
Contact:

Re: Bandwidth Limitation

Sat Sep 19, 2015 3:52 am

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..
 
freemannnn
Forum Veteran
Forum Veteran
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: Bandwidth Limitation

Sat Sep 19, 2015 8:54 am

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!
 
deanMKD1
Member
Member
Posts: 366
Joined: Fri Dec 12, 2014 12:06 am
Location: Macedonia
Contact:

Re: Bandwidth Limitation

Sun Sep 20, 2015 11:26 pm

OK, thanks anyway, your help enought :)

Who is online

Users browsing this forum: anav, lego11 and 90 guests