...
1. Mark all packets with packet-marks upload/download: (lets let's consider that ether1-WAN is the public interface to the Internet and ether2-LAN is a local interface where clients are connected):
Code Block | ||
---|---|---|
| ||
/ip firewall mangle add chain=prerouting action=mark-packet \ in-interface=ether2-LAN new-packet-mark=client_upload /ip firewall mangle add chain=prerouting action=mark-packet \ in-interface=ether1-WAN new-packet-mark=client_download |
2. Setup Set up two PCQ queue types - one for download and one for upload. dst-address
is a classifier for the user's download traffic, and src-address
for upload traffic:
Code Block | ||
---|---|---|
| ||
/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 |
...