#################################################################### # MIKROTIK PCQ GENERATOR FOR QUEUE TREE AND QUEUE SIMPLE # Date/Time: # ####################################################################
/queue type
add kind=pcq name="PCQ-Up" pcq-classifier=src-address pcq-rate="1M" add kind=pcq name="PCQ-Down" pcq-classifier=dst-address pcq-rate="2M" /queue tree add comment="Script Generator Secure!" name="GLOBAL-CONNECTION" parent=global 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 comment="Script Generator Secure!" action=mark-connection chain=forward new-connection-mark="global-conn" passthrough=yes src-address-list=LOCAL-IP 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=192.168.0.0/16 list=LOCAL-IP add address=172.16.0.0/12 list=LOCAL-IP add address=10.0.0.0/8 list=LOCAL-IP |
Copy-Paste the Script into the Terminal!