Community discussions

MikroTik App
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

[ASK] Script for Limiting bandwidth in Queue Tree

Sat Nov 03, 2012 8:54 am

hello,
I'm using queue tree...

I want to automate limit bandwidth for download based on size...

in this case, I set every user max limit to 2M..
if a user have downloaded 10MB, the max limit will set to 128k for 1 hour...
after 1 hour, the max limit of that user will set back to 2M...

any idea?

if someone needs my configs, I'll post them...
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: [ASK] Script for Limiting bandwidth in Queue Tree

Sat Nov 03, 2012 8:29 pm

hello,
I'm using queue tree...

I want to automate limit bandwidth for download based on size...

in this case, I set every user max limit to 2M..
if a user have downloaded 10MB, the max limit will set to 128k for 1 hour...
after 1 hour, the max limit of that user will set back to 2M...

any idea?

if someone needs my configs, I'll post them...
That doesn't make sense. 10MB over how much time?

Let's say that over the course of 3 months, I download a total of 10MB. So, then you are going to limit my bandwidth to 128k for 1 hour because I downloaded 10MB in 3 months???

You either need to rethink this, or add some better details.
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ASK] Script for Limiting bandwidth in Queue Tree

Sun Nov 04, 2012 3:50 am


That doesn't make sense. 10MB over how much time?

Let's say that over the course of 3 months, I download a total of 10MB. So, then you are going to limit my bandwidth to 128k for 1 hour because I downloaded 10MB in 3 months???

You either need to rethink this, or add some better details.
no.. no...
ok, my bad.. :(
and I dont think in this case 10MB will never be completed in 3 months... I give every user 2M max limit...

say that someone wants to download 100MB, he limits the download (say he uses IDM) to 50Kb... I dont know how long the download will be completed...
for every 100MB downloaded, his bandwidht will be limited to 128k in 1 hours...
because in my case, some users limit their download in case the admin wont see the red sign in queue tree... if they limit their download, the sign still in green...
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: [ASK] Script for Limiting bandwidth in Queue Tree

Sun Nov 04, 2012 5:12 am

This should get you pointed in the right direction:

http://wiki.mikrotik.com/wiki/Block_Dow ... load_Sizes
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ASK] Script for Limiting bandwidth in Queue Tree

Sun Nov 04, 2012 10:51 am

yups, I've seen it...

but it seems to block, in this case I want to limit the bandwidth.. :(
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ASK] Script for Limiting bandwidth in Queue Tree

Wed Nov 07, 2012 7:17 am

bump... :-?