Community discussions

MikroTik App
 
efaden
Forum Guru
Forum Guru
Topic Author
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Marking In Mangle: Prerouting vs Forward vs Postrouting

Tue Aug 06, 2013 11:57 pm

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
 
cheeze
Member Candidate
Member Candidate
Posts: 146
Joined: Tue Jul 31, 2012 7:44 am

Re: Marking In Mangle: Prerouting vs Forward vs Postrouting

Wed Aug 07, 2013 4:36 am

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.
 
efaden
Forum Guru
Forum Guru
Topic Author
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: Marking In Mangle: Prerouting vs Forward vs Postrouting

Wed Aug 07, 2013 4:46 am

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!
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: Marking In Mangle: Prerouting vs Forward vs Postrouting

Wed Aug 07, 2013 11:04 am

Check the always useful packet flow!

http://wiki.mikrotik.com/wiki/Manual:Packet_Flow
 
efaden
Forum Guru
Forum Guru
Topic Author
Posts: 1708
Joined: Sat Mar 30, 2013 1:55 am
Location: New York, USA

Re: Marking In Mangle: Prerouting vs Forward vs Postrouting

Wed Aug 07, 2013 2:16 pm

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

Who is online

Users browsing this forum: gotsprings and 19 guests