Page 1 of 1

Marking In Mangle: Prerouting vs Forward vs Postrouting

Posted: Tue Aug 06, 2013 11:57 pm
by efaden
What differences are there in where you mark? What would you want to mark in each chain and why? Suppose I was trying to use a simple queue or queue tree, should I mark in Prerouting/Forward/Postrouting?


Thanks.
-Eric

Re: Marking In Mangle: Prerouting vs Forward vs Postrouting

Posted: Wed Aug 07, 2013 4:36 am
by cheeze
Prerouting: This packet is selected as it ingresses the port and before any routing decisions are made
Forward: This packet is selected after the routing decision
Postrouting: This packet is selected right before it egresses the egress port

Does it matter where you mark?

Yes, because sometimes you might overmark and sometimes you might undermark. Choose the right place for the right classification/marking.

Re: Marking In Mangle: Prerouting vs Forward vs Postrouting

Posted: Wed Aug 07, 2013 4:46 am
by efaden
Prerouting: This packet is selected as it ingresses the port and before any routing decisions are made
Forward: This packet is selected after the routing decision
Postrouting: This packet is selected right before it egresses the egress port

Does it matter where you mark?

Yes, because sometimes you might overmark and sometimes you might undermark. Choose the right place for the right classification/marking.
Got it. Thanks!

Re: Marking In Mangle: Prerouting vs Forward vs Postrouting

Posted: Wed Aug 07, 2013 11:04 am
by leonset
Check the always useful packet flow!

http://wiki.mikrotik.com/wiki/Manual:Packet_Flow

Re: Marking In Mangle: Prerouting vs Forward vs Postrouting

Posted: Wed Aug 07, 2013 2:16 pm
by efaden
Check the always useful packet flow!

http://wiki.mikrotik.com/wiki/Manual:Packet_Flow
Based on that they are all before HTB. So for Queues it doesn't seem to matter.

Sent from my SCH-I545 using Tapatalk 2