Community discussions

MikroTik App
 
boondog
just joined
Topic Author
Posts: 3
Joined: Tue Aug 04, 2009 9:58 am

Radius Mark-ID and Routing Mark problem

Tue Aug 04, 2009 10:47 am

I have tried searching the web for an answer but no luck

I am trying the manipulate traffic via dynamically changing the mark-id attribute. I then want to change the DSCP tag or source routing depending on the mark.

My problem is the "dynamic mark-id rule" gets added below the routing-mark rule and needles this does not work.

chain=hotspot action=mark-routing new-routing-mark=routemark02 passthrough=yes packet-mark=mark02
chain=hotspot action=mark-routing new-routing-mark=routemark01 passthrough=yes packet-mark=mark01
chain=hotspot action=mark-packet new-packet-mark=mark01 passthrough=yes src-address=10.150.0.254
chain=hotspot action=mark-packet new-packet-mark=mark01 passthrough=yes dst-address=10.150.0.254

Does anybody know how I can force the sequence numbers
 
User avatar
cjack
just joined
Posts: 12
Joined: Tue Jun 05, 2007 11:42 am
Location: South Africa
Contact:

Re: Radius Mark-ID and Routing Mark problem

Sun Aug 23, 2009 12:57 am

hey
If you doing it with scrips you can simply move the line to the top by using /ip firewall mangle move (number of rule with out brackets) destination=0 or if you don't know the number of the line, you created a comment to it at creation time then in your script use the find function to find then move it to 0 here is a example of using the find function on a line with a comment of "hello".

/ip firewall mangle move [find comment="hello"] destination=0
 
boondog
just joined
Topic Author
Posts: 3
Joined: Tue Aug 04, 2009 9:58 am

Re: Radius Mark-ID and Routing Mark problem

Mon Aug 24, 2009 10:00 am

Cool thanks dude