0% found this document useful (0 votes)
8 views1 page

MikroTik PCQ Setup Guide

This document provides a configuration script for MikroTik routers to set up PCQ (Per Connection Queue) for managing bandwidth. It includes definitions for queue types, queue trees, firewall mangle rules, and address lists to classify and manage traffic for local IP addresses. The script is intended for users looking to implement bandwidth management using PCQ on their MikroTik devices.

Uploaded by

enamul whab
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

MikroTik PCQ Setup Guide

This document provides a configuration script for MikroTik routers to set up PCQ (Per Connection Queue) for managing bandwidth. It includes definitions for queue types, queue trees, firewall mangle rules, and address lists to classify and manage traffic for local IP addresses. The script is intended for users looking to implement bandwidth management using PCQ on their MikroTik devices.

Uploaded by

enamul whab
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

####################################################################

# MIKROTIK PCQ GENERATOR FOR QUEUE TREE AND QUEUE SIMPLE


# Date/Time: 12/30/2022, 10:15:48 PM
# Created By: [Link] - [Link]/[Link]
####################################################################
/queue type
add kind=pcq name="PCQ-Up" pcq-classifier=src-address pcq-rate="2M"
add kind=pcq name="PCQ-Down" pcq-classifier=dst-address pcq-rate="10M"
/queue tree
add name="GLOBAL-CONNECTION" parent=global comment="PCQ Generator by
[Link]"
add max-limit="10M" name="Upload-Client" packet-mark="upload-client"
parent="GLOBAL-CONNECTION" queue="PCQ-Up"
add max-limit="50M" name="Download-Client" packet-mark="download-client"
parent="GLOBAL-CONNECTION" queue="PCQ-Down"
/ip firewall mangle
add action=mark-connection chain=forward new-connection-mark="global-conn"
passthrough=yes src-address-list=LOCAL-IP comment="PCQ Generator by
[Link]"
add action=mark-packet chain=forward connection-mark="global-conn" src-address-
list=LOCAL-IP new-packet-mark="upload-client" passthrough=no
add action=mark-packet chain=forward connection-mark="global-conn" dst-address-
list=LOCAL-IP new-packet-mark="download-client" passthrough=no
/ip firewall address-list
add address=[Link]/16 list=LOCAL-IP
add address=[Link]/12 list=LOCAL-IP
add address=[Link]/8 list=LOCAL-IP

You might also like