limit bandwidth per port

I want to limit the bandwidth to each port (1-65535) with different bandwidth but I don’t know how.
How can I do that?

Thanks,

Now that’s a first! Not really sure why you would want to go about any form of QoS that way but it’s probably going to be a bumpy ride.

I suggest you let us know precisely what you want to achieve, perhaps there’s a less cumbersome way.

Otherwise - you’ll have to create firewall mangle rules that mark packets crossing each of those ports and then create queues limiting traffic across them based on your packet marks.

Cheers.

I want to give some ports (80,443,21) a great bandwidth and the rest of ports give a small bandwidth like 10kb/s.

check this http://mikrotik.unimedcenter.org