Page 1 of 1

How to reorder the sequence in the "mangle"?

Posted: Fri Feb 05, 2010 10:37 am
by Michael12345
I have two adsl as Wan,but everytime after I re-dial pppoe-out* again,the four dynamic "change MSS" which originally are placed in first four position would down to the bottom like what shown in the following picture, I found that would causes many pictures in web page can't open.
Is there a command that can reorder the sequence in mangle by scripting?

Re: How to reorder the sequence in the "mangle"?

Posted: Fri Feb 05, 2010 10:51 am
by mrz
In your case dynamic rules and static rules are in different chains, and it won't make any difference if you move dynamic rules up.

Re: How to reorder the sequence in the "mangle"?

Posted: Fri Feb 05, 2010 11:49 am
by Michael12345
In your case dynamic rules and static rules are in different chains, and it won't make any difference if you move dynamic rules up.
Do you mean that dynamic rules of "change MSS" is redundant ,and useless? because I have set "passthrough" is "no" in the frontal rules, so that means if "change MSS" down to the bottom,it can't change mss of any packets which be intercepted by the frontal rules.

Re: How to reorder the sequence in the "mangle"?

Posted: Fri Feb 05, 2010 11:57 am
by mrz
No, I mean that change-mss rules are in "forward" chain but other rules are in "prerouting" chain. Those two chains are independent.
Here you can read more about chains:
http://wiki.mikrotik.com/wiki/Firewall_filter#Chains

And here you can see packet flow diagram
http://wiki.mikrotik.com/wiki/Packet_Flow

Re: How to reorder the sequence in the "mangle"?

Posted: Mon Feb 08, 2010 6:48 pm
by Michael12345
No, I mean that change-mss rules are in "forward" chain but other rules are in "prerouting" chain. Those two chains are independent.
Here you can read more about chains:
http://wiki.mikrotik.com/wiki/Firewall_filter#Chains

And here you can see packet flow diagram
http://wiki.mikrotik.com/wiki/Packet_Flow
Do you mean that whether the position of "change MSS" is in the first four or last four that makes no difference?

Re: How to reorder the sequence in the "mangle"?

Posted: Mon Feb 08, 2010 6:52 pm
by fewi
It would make a difference if you had any other mangle rules in the 'forward' chain. But you don't. Rule order is only important within the same chain.

Re: How to reorder the sequence in the "mangle"?

Posted: Mon Feb 08, 2010 7:11 pm
by Michael12345
It would make a difference if you had any other mangle rules in the 'forward' chain. But you don't. Rule order is only important within the same chain.
oh,I see, thank you very much.