How to route messengers on diffrent route

Hi,
i want to send messenger’s request to different route i have RB450G with 2 wan’s from wan1 and wan2 i want all request to go through wan1 and wan2 to accept only messenger using L7 filter i have tried marking packet in mangle as listed below

L7-Filter for messenger “^(ymsg|ypns|yhoo).?.?.?.?.?.?.?[lwt].*À€”

add action=mark-connection chain=prerouting comment=Yahoo disabled=no
layer7-protocol=yahoo new-connection-mark=live passthrough=yes
add action=mark-packet chain=prerouting comment=Yahoo connection-mark=live
disabled=no layer7-protocol=yahoo new-packet-mark=yahoo passthrough=yes
add action=mark-routing chain=prerouting comment=Yahoo connection-mark=live
disabled=no layer7-protocol=yahoo new-routing-mark=final packet-mark=
yahoo passthrough=yes

and added wan2 to use packet named live to be router from this route.

is there anything i m missing please guide as i m a begginer. thanks

you cannot use L7 filters to mark routing - because there’s no L7 data until connection is established. and when connection is established, you can’t switch it to another uplink

you may try to use dst-address/port parameters

thanks but is there any other way to redirect all messenger and p2p traffic request to other route ?

it means, you can’t do data inspection for selection. you must know addresses and ports you want to send to another uplink

for example, ICQ uses dst-port=5190

thank you very much for your support.