* Browse the full bandwidth
* Download any file extension, which is more than 1M, will terlimit so 256kbps
* If the download <1M, will get a full bandwidth
* Watch the video has finished dilimit 128 kbps
I apply this Setiing using RB750G
/Ip firewall layer7-protocol add comment = "" name = http-video regexp = \
"Http / (0 \ \ .9 | 1 \ \ .0 | 1 \ \ .1) [\ \ x09-\ \ x0d] [1-5] [0-9] [0-9] [\ \ x09 - \ \ x0d -~]*( content-type: video)"
/Ip firewall mangle
add chain = forward action = mark-connection comment = "limit download" connection-bytes = 1024000-4294967295 in-interface = lan5 new-connection-mark = Action-Download passthrough = yes disabled = no
add action = mark-packet chain = forward comment = "" connection-mark = Action-Download disabled = no in-interface = lan5 new-packet-mark = download_pkt passthrough = yes
add action = mark-packet chain = prerouting comment = "limit video streaming" disabled = no protocol = http layer7-new-video-packet-mark = http-video-up passthrough = yes protocol = tcp
add action = mark-packet chain = prerouting comment = "limit the audio stream" disabled = no protocol = http layer7-audio-new-packet-mark = http-audio-ups passthrough = yes protocol = tcp
/Queue type
add kind = pcq name = pcq-classifier = batasidownload dst-address pcq-limit = 50 pcq-rate = 256000 pcq-total-limit = 2000
/Queue simple
add burst-limit = 0 / 0 burst-threshold = 0 / 0 burst-time = 0s/0s comment = "" direction = Both disabled = no dst-address = 0.0.0.0 / 0 interface = all limit-at = 0 / 8k max-limit = 128k/128k name = "HTTP Video Traffict" packet-marks = http-video-up parent = none priority = 8 queue = default-small/default-small total-queue = default-small
add burst-limit = 0 / 0 burst-threshold = 0 / 0 burst-time = 0s/0s comment = "" direction = Both disabled = no dst-address = 0.0.0.0 / 0 interface = all limit-at = 0 / 0 max-limit = 128k/128k name = "HTTP Video Queue" packet-marks = http-video-up parent = "HTTP Video Traffict" priority = 8 queue = default-small/default-small target-addresses = 0.0.0.0 / 0 total-queue = default-small
/Queue tree
add burst-limit = 0 burst-threshold = 0 burst-time = 0s disabled = no limit-at = 0 max-limit = 256k name = batasidownloadfreebrowsing packet-mark = download_pkt parent = global-out priority = 8 queue = batasidownload
5 Comment:
thank you very much
really i appreciate your efforts
thanks again
go on
What is someone wants to limit the idm to like say 512 alone, and the interface will be on bridge. As in Hotspot and user-manager, how will the configurations look like.
meanwhile thank for the above infor.
where is the Video? if can please share the video for me. thank you
i keep getting some error messages... i wish u can check the script again
Managing IDM's aggressive multi-threaded downloading at the network level using Mikrotik queues is an absolutely brilliant approach! Network administrators know all too well how a single IDM user can completely monopolize available bandwidth, bringing the rest of the network to a crawl. While setting up these router-level limits perfectly solves the bandwidth distribution issue, aggressive throttling can sometimes cause poorly configured IDM clients to drop connections, constantly time out, or even trigger browser extension crashes. To ensure the client-side software remains completely stable and catches every link seamlessly—even when strictly restricted by Mikrotik rules—getting the foundational PC installation right is essential. Following a comprehensive 14-step IDM configuration manual guarantees a highly stable, error-free setup and perfect browser integration on Windows 10 and 11. Thanks for sharing this advanced and highly practical network management tip!
Post a Comment