This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mikrotik-pcq [2015/03/05 12:54] – created herwarth | mikrotik-pcq [2015/03/05 13:00] (current) – herwarth | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~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=" | ||
| + | /queue type add name=" | ||
| + | |||
| + | ====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> | {{tag> | ||