~~NOTOC~~ ======Mikrotik add upload and download limit to routing====== =====Configuration===== ====Add chain from Guest VLAN (for upload)==== /ip firewall mangle add chain=prerouting action=mark-packet in-interface=bridge-guest new-packet-mark=client-upload ====Add chain from DMZ (for download)==== /ip firewall mangle add chain=prerouting action=mark-packet in-interface=dmz new-packet-mark=client-download ====Add queues with limits==== In this example we create a download limit of 64kbit and an upload of 32kbit. /queue type add name="pcq-download" kind=pcq pcq-rate=64000 pcq-classifier=dst-address /queue type add name="pcq-upload" kind=pcq pcq-rate=32000 pcq-classifier=src-address ====Link queues to chains==== /queue tree add parent=global queue=pcq-download packet-mark=client-download /queue tree add parent=global queue=pcq-upload packet-mark=client-upload {{tag>network}}