Hello ,
I want to limit my DHCP clients to 0.5Mbps downlaod
I have manage to create a simple queue to all the interface that go to the internet
/queue simple
add disabled=yes limit-at=512k/512k max-limit=512k/512k name=queue1 target=""
but this is not what I want …
I want every client will be be limit
so how to ?
I ahve found this script that do the job
#Lease to Simple Queues
#V.1 By Virtual IT Export
:local queueName "Client- $leaseActMAC";
:if ($leaseBound = "1") do={
/queue simple add name=$queueName target=($leaseActIP . "/32") limit-at=1024k/1024k max-limit=1024k/1024k comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name];
} else={
/queue simple remove $queueName
}
but isn’t a way to create a 1 queue rule , and when ever a dhcp clinet connect it will apply it ?
Thanks ,