Limit bandwidth on a Mikrotik router by port number

bandwidth-controlmikrotik

I have this one Mikrotik router (RB951G-2HnD) that serves as a main router with port forwarding for HTTP/HTTPS and Plex to a server behind NAT. Now since there isn't much upload bandwidth (15Mbps), I'd love to limit the bandwith for HTTP/HTTPS on the WAN interface so that there's some bandwidth left for Plex. I've been looking in /queue but haven't seen anything that limits by port number.

Best Answer

This is described here

First you need to mark your packets. And to mark you can use port number

/ip firewall mangle
add action=mark-packet chain=forward dst-port=80 new-packet-mark=http passthrough=no protocol=tcp
add action=mark-packet chain=forward dst-port=443 new-packet-mark=https passthrough=no protocol=tcp

And then you can do traffic shaping on those marked packets

Below is also a very good and simple example

http://wiki.mikrotik.com/wiki/TransparentTrafficShaper