mangle and packet mark in 6.xx

Hi,

I’ve just migrated router with v5.26 to router with v 6.12 and some things aren’t same. Problem I have in this moment is “mark packet”.

Queue tree is complete mess, so far I’ve realized that packets marks aren’t same.

As an example, what is working and I has configured in 5.xx is something like (pseudo code)

if output addr != 172.16.0.0/12 then “mark packet” = “ALL-OTHER-OUT”
and after that in mangle
if output input addr == 172.17.99.32 then “mark packet” = “P2P-OUT”

in v4.xx and 5.xx that was working well, packet is marked by default with “ALL-OTHER-OUT” and next rule overwrite packet mark with “P2P-OUT”

In v6.12 this is just not working, somehow this always ends with “ALL-OTHER-OUT”, nm if this is before or after, if passtrough is allowed or not …

I’ve got lost in all that changes, that for :
Somoene have idea what I am doing wrong ?

or

Someone have link to clearly explained mangle and packet marks for v6.xx ? Previous version explanation won’t work because this is not same.

Thank you in advance,
Dejan

Read the slide of Venice MUM 2014, it’s all here…

Can’t find it, can you provide url please ?

Thank you in advance,
Dejan

Just want to find article, in meantime I’ve solved my problem :
Somehow, in scripts export/import … really don’t know how but “all-other” was in forward instead of prerouting chain

http://mum.mikrotik.com/

:question:

I’ve found that, my bad is because I was looking for something with “mangle” in name instead of QoS and traffic shaping.

Thank you,
Dejan

[…]

you probably didn’t notice that I’ve found the problem.

Somehow I’ve changed this one rule to “forward” chain instead of “prerouting” in export.

And I’ve posted “pseudo” in order to get some idea what is wrong, there are 68 rules in mangle, not worth to review all :slight_smile:

Thank you anyway,
Dejan

Sorry, thanks.