Community discussions

MikroTik App
 
Borage
Member Candidate
Member Candidate
Topic Author
Posts: 170
Joined: Sun Sep 26, 2004 10:19 pm

Error in the manual

Wed Feb 22, 2006 9:52 am

I think that the mangle example in the manual is not correct. The example queue tree will not work if you follow the mangle example.

http://www.mikrotik.com/docs/ros/2.9/ip/mangle
[admin@MikroTik] > /ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
 0   chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn

 1   chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p

 2   chain=forward packet-mark=!p2p_conn action=mark-packet new-packet-mark=other
Here is what I think is correct.
[admin@MikroTik] > /ip firewall mangle print 
Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p

 1   chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn

 2   chain=forward connection-mark=!p2p_conn action=mark-packet new-packet-mark=other
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1764
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Wed Feb 22, 2006 10:46 am

What was the problem with the first one??? From my point of view both examples work the same except the first packages

I by myself would use this setup - it takes less processing

[admin@MikroTik] ip firewall mangle> pr
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn passthrough=yes

1 chain=prerouting connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p_packet passthrough=no

2 chain=prerouting action=mark-connection new-connection-mark=other_conn passthrough=yes

3 chain=prerouting connection-mark=other_conn action=mark-packet new-packet-mark=other_packet passthrough=no
 
Borage
Member Candidate
Member Candidate
Topic Author
Posts: 170
Joined: Sun Sep 26, 2004 10:19 pm

Wed Feb 22, 2006 10:59 am

What was the problem with the first one??? From my point of view both examples work the same except the first packages
I think I found the problem, passthrough is not set default to yes as the manual said.
passthrough (yes | no; default: yes) - whether to let the packet to pass further (like action passthrough) after marking it with a given mark (property only valid if action is mark packet, connection or routing mark)

Who is online

Users browsing this forum: andreacar, Bing [Bot] and 101 guests