Community discussions

MikroTik App
 
jlct021
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Mar 13, 2011 8:12 pm

Limiting users download speed after certain cap is reached

Thu Nov 01, 2012 10:34 am

Hi

RouterBoard 751 5 LAN, 2,4GHz AP using WPA2 encryption.

Small coffee shop that provides free internet to customers who purchase something from the shop by way of a WPA2 passkey that gets changed by a member of staff each morning.

Problem (that Ive been contacted to solve) is that (some) customers are abusing the system by downloading excessive amounts of data (no surprise I know) causing the shops uncapped internet account to be throttled bu their ISP.

What is the best way to solve this problem? By best I mean with the least amount of admin for both the shop and myself going forward as I am not on a contract with them so am looking for a solution I can implement and only be called out when needed etc...

Any suggestions very welcome,

Thanks
 
mixig
Member
Member
Posts: 315
Joined: Thu Oct 27, 2011 2:19 pm

Re: Limiting users download speed after certain cap is reach

Thu Nov 01, 2012 12:56 pm

http://www.tiktube.com/video/mJeK3iHGhL ... vnlIomlpG=
http://www.tiktube.com/video/JpcD3eCChq ... xClIoEKDH=
http://www.tiktube.com/video/LGcm3foDdl ... xLlColHEJ=

and wiki has some material about that, also there are some good examples, note: use official wiki (http://wiki.mikrotik.com/wiki/Manual:TOC), there are some configs on user wiki which are wrong
 
jlct021
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Mar 13, 2011 8:12 pm

Re: Limiting users download speed after certain cap is reach

Thu Nov 29, 2012 8:24 am

If on the right track Queues is where I need to foucus.

Found the following script that looks it could do the job:

http://wiki.mikrotik.com/wiki/Limiting_ ... traffic_II
:local traf;
/queue simple
  :for i from=1 to= 254 do =  {
    :if ([/queue simple find target-addresses=("192.168.1." . $i)] != "") do={
      :set traf [get [find target-addresses=("192.168.1." . $i)] total-bytes]
      :if ($traf  > 104857600) do = {
        set [find target-addresses=("192.168.1." . $i)] max-limit= 32000/64000
      }
    }
  }
Though am having dificulty getting it to work, posted what I've tried so far here:

http://forum.mikrotik.com/viewtopic.php ... 51#p344651

Who is online

Users browsing this forum: woland and 110 guests