/ip firewall mangle
add action=mark-connection chain=forward comment="Controle de banda (DOWNLOAD)" \
connection-bytes=0-10000000 new-connection-mark=QOS out-interface=all-ppp
add action=mark-connection chain=forward comment="Controle de banda (UPLOAD)" \
connection-bytes=0-10000000 in-interface=all-ppp new-connection-mark=QOS
add action=mark-packet chain=forward comment="Pacotes at\E9 100K" \
connection-bytes=0-100000 connection-mark=QOS new-packet-mark=QOS-0.1M \
passthrough=yes
add action=mark-packet chain=forward comment="Pacotes entre 100K e 512K" \
connection-bytes=100000-512000 connection-mark=QOS new-packet-mark=QOS-0.5M \
passthrough=yes
add action=mark-packet chain=forward comment="Pacotes entre 512K a 5M" \
connection-bytes=512000-5000000 connection-mark=QOS new-packet-mark=QOS-5M \
passthrough=yes
add action=mark-packet chain=forward comment="Pacotes entre 5M e 10M" \
connection-bytes=5000000-10000000 connection-mark=QOS new-packet-mark=\
QOS-10M passthrough=yes