Hi
I have a network that I subnet into 2 parts A = 1 - 127 and B= 128 - 254
A goes to WAN1 and B goes to WAN2
Network B has a VOIP phone now on IP 192.168.0.160, at my office I use this to shape the traffic so the voip gets preferred traffic with the script config below
Mark all UDP traffic for an IP-PBX.
/ip firewall mangle
add chain=forward action=mark-connection protocol=udp src-address=10.0.0.20 connection-state=new new-connection-mark="VOIP" comment="Gigaset VOIP"
add chain=forward action=mark-packet passthrough=no connection-mark="VOIP" new-packet-mark="VOIP"
add chain=forward action=mark-connection protocol=udp dst-address=10.0.0.20 connection-state=new new-connection-mark="VOIP"
add chain=forward action=mark-packet passthrough=no connection-mark="VOIP" new-packet-mark="VOIP"
Mark everything else.
add chain=forward action=mark-connection connection-mark=no-mark new-connection-mark="OTHER" comment="OTHER"
add chain=forward action=mark-packet passthrough=no connection-mark="OTHER" new-packet-mark="OTHER"
Create two queue trees set to 90% of ISP Internet service.
/queue tree
add name="LEVEL_A_UP" parent=pppoe-out1 queue=default max-limit=900k
add name="LEVEL_A_DOWN" parent=ether2-master-local queue=default max-limit=9M
add name="LEVEL_B_UP" parent=pppoe-out1 queue=default max-limit=900k
add name="LEVEL_B_DOWN" parent=ether2-master-local queue=default max-limit=3M
Add our marked connections as children of queue so priority works.
add name="VOIP_U" parent="LEVEL_A_UP" packet-mark="VOIP" queue=default priority=1
add name="VOIP_D" parent="LEVEL_A_DOWN" packet-mark="VOIP" queue=default priority=1
add name="OTHER_U" parent="LEVEL_B_UP" packet-mark="OTHER" queue=default priority=2
add name="OTHER_D" parent="LEVEL_B_DOWN" packet-mark="OTHER" queue=default priority=2
My question is will it work if I add this to the router with the dual wan? Can you double mark packets as my understanding is they will already be marked for the WAN connection