/ip firewall mangle
add action=mark-connection chain=input in-interface=ether1-WAN1 \
new-connection-mark=WAN1_conn passthrough=yes
add action=mark-connection chain=input in-interface=ether2-WAN2 \
new-connection-mark=WAN2_conn passthrough=yes
add action=mark-connection chain=input in-interface=ether3-WAN3 \
new-connection-mark=WAN3_conn passthrough=yes
add action=mark-routing chain=output connection-mark=WAN1_conn \
new-routing-mark=to_WAN1 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN2_conn \
new-routing-mark=to_WAN2 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN3_conn \
new-routing-mark=to_WAN3 passthrough=yes
add action=accept chain=prerouting dst-address=202.162.xx.xx/29 \
in-interface=bridge-LAN
add action=accept chain=prerouting dst-address=10.110.xx.xx/22 in-interface=\
bridge-LAN
add action=accept chain=prerouting dst-address=192.168.xx.xx/24 in-interface=\
bridge-LAN
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=bridge-LAN new-connection-mark=WAN1_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:4/0
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=bridge-LAN new-connection-mark=WAN2_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:4/1
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=bridge-LAN new-connection-mark=WAN3_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:4/2
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=bridge-LAN new-connection-mark=WAN3_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:4/3
add action=mark-routing chain=prerouting connection-mark=WAN1_conn \
in-interface=bridge-LAN new-routing-mark=to_WAN1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2_conn \
in-interface=bridge-LAN new-routing-mark=to_WAN2 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN3_conn \
in-interface=bridge-LAN new-routing-mark=to_WAN3 passthrough=yes