You are on page 1of 1

/ip firewall mangle add action=mark-connection chain=input comment="Mark new inbound connection wan1 " connection-state=new disabled=no in-interface=wan1

new-connection-mark=wan1 pa ssthrough=yes add action=mark-connection chain=input comment="Mark new inbound connection wan2 " connection-state=new disabled=no in-interface=wan2 new-connection-mark=wan2 pa ssthrough=yes add action=mark-routing chain=output comment="Mark new inbound route wan1" conne ction-mark=wan1 connection-state=new disabled=no new-routing-mark=wan1 passthrou gh=no add action=mark-routing chain=output comment="Mark new inbound route wan2" conne ction-mark=wan2 connection-state=new disabled=no new-routing-mark=wan2 passthrou gh=no add action=mark-connection chain=prerouting comment="Mark new established connec tion wan1" connection-state=established disabled=no in-interface=wan1 new-connec tion-mark=wan1 passthrough=yes add action=mark-connection chain=prerouting comment="Mark new established connec tion wan2" connection-state=established disabled=no in-interface=wan2 new-connec tion-mark=wan2 passthrough=yes add action=mark-routing chain=output comment="Mark new established route wan1" c onnection-mark=wan1 connection-state=established disabled=no new-routing-mark=wa n1 passthrough=no add action=mark-routing chain=output comment="Mark new established route wan2" c onnection-mark=wan2 connection-state=established disabled=no new-routing-mark=wa n2 passthrough=no # round robin outbound traffic routing, based on src port and src address /ip firewall mangle add chain=prerouting dst-address-type=!local in-interface=Hotspot per-connection -classifier=src-address-and-port:2/0 action=mark-connection new-connection-mark= wan1_pcc_conn passthrough=yes add chain=prerouting dst-address-type=!local in-interface=Hotspot per-connection -classifier=src-address-and-port:2/1 action=mark-connection new-connection-mark= wan2_pcc_conn passthrough=yes add chain=prerouting connection-mark=wan1_pcc_conn in-interface=Hotspot action=m ark-routing new-routing-mark=wan1 add chain=prerouting connection-mark=wan2_pcc_conn in-interface=Hotspot action=m ark-routing new-routing-mark=wan2

You might also like