Mark packet.

Hello.

In mangle - Is it possible to apply multiple packet mark.?

example, one packet being marked for p2p traffic or DNS, http or other (QOS), and also marked for being a part of a group, for bandwith managment purposes.

If you create 2 mangle rules and make passtrough on the first, will the second change the first mark or add a second mark to the packet, so the packet having both marks?

Best regards
Henrik

no, the last matching rule will override all previous packet marks

Thanks Normis.

Despites it wasn’t the answer I was hoping to get.
:frowning: :frowning: :frowning:

Best regards
Henrik

you can mark packets in a group, then add packet mark that refers to grou, like first add packet mark - myGroup after that add packet mark myGroupP2P (or do that in the first place) that way you can gel allmost what you wanted.

and if you want to account all p2p then add to that mangle all packet marks that have p2p in them

I have read some more now :open_mouth:

Is it right that I can/cannot –

In mangle: Put a packet mark in chain postrouting for making a traffic QOS in queues tree, and later on in mangle mark the packet again in chain forward to make example PCQ queues? :smiley: :frowning:


Best regards
Henrik
:sunglasses:

you can’t mark in postrouting and after that in forward, because forward is before postrouting
http://www.mikrotik.com/testdocs/ros/2.9/ip/flow.php?permalink=0.11678333617893119

woops .. i wrote postrouting :blush: :blush: :laughing: :laughing:

I ment PRE-Routing.

Is it possible then, to add packet mark first in prerouting, make QOS in Quoues, end and later in forward mark users packet again for PCQ?

Best regards
Henrik