How to give ping (icmp) priority?

Hello, how setup mangle and queues so that ping gets priority, what is the right way?

I want to give priority to icmp packets that go trough and from MiktoTik router, so do I choose Prerouting or Forward chain? I guess that Input and Output chains aren’t important…

And is it needed to first mark the connection or is it enougt just to mark packets in mangle?

After I mark packets and give it a name (ping) just go to simple queue and change priority to 1.

Thank you in advance for your help.

Which Version?,as 2.8.28 makes default priority 8,so only a rule for ICMP would need to be added using a value in the limit-at field and change the priority to 1. ( you must have a value in the limit-at for the priority to take effect).
Version 2.9–I understand defaults at priority 1–so all other traffic would have to be changed,sorry I haven’t used 2.9.xx yet

Some tips

mangle the icmp
give TOS =16
make queue tree with priority 1


Maximiliano
Intercity SRL
Rio Cuarto-Argentina
The biggest private canopys implementation of sudamerica

Thank you.

Does is matter which chain I choose? Forward? Prerouting?
And in Action tab do you chose “Mark packet” or “Mark connection”

I use 2.9.6