Community discussions

MikroTik App
 
Michael12345
Member Candidate
Member Candidate
Topic Author
Posts: 139
Joined: Wed Oct 28, 2009 8:44 am

How to reorder the sequence in the "mangle"?

Fri Feb 05, 2010 10:37 am

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?
You do not have the required permissions to view the files attached to this post.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7211
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

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

Fri Feb 05, 2010 10:51 am

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.
 
Michael12345
Member Candidate
Member Candidate
Topic Author
Posts: 139
Joined: Wed Oct 28, 2009 8:44 am

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

Fri Feb 05, 2010 11:49 am

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.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7211
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

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

Fri Feb 05, 2010 11:57 am

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
 
Michael12345
Member Candidate
Member Candidate
Topic Author
Posts: 139
Joined: Wed Oct 28, 2009 8:44 am

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

Mon Feb 08, 2010 6:48 pm

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?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Mon Feb 08, 2010 6:52 pm

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.
 
Michael12345
Member Candidate
Member Candidate
Topic Author
Posts: 139
Joined: Wed Oct 28, 2009 8:44 am

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

Mon Feb 08, 2010 7:11 pm

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.