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=pppoe-out1

new-connection-mark=w an1 passthrough=yes add action=mark-connection chain=prerouting comment="Mark established inbound co nnection wan1" connection-state=established disabled=no in-interface=pppoe-out1 new-connection-mark=wan1 passthrough=yes add action=mark-connection chain=prerouting comment="Mark related inbound connec tion wan1" connection-state=related disabled=no in-interface=pppoe-out1 new-conn ection-mark=wan1 passthrough=yes

add action=mark-routing chain=output comment="Mark new inbound route wan1" conne ction-mark=wan1 disabled=no new-routing-mark=static-wan1 passthrough=no

/ip route add check-gateway=ping comment="Static Route - WAN1" disabled=no distance=1 dstaddress=0.0.0.0/0 gateway=pppoe-out1 routing-mark=static-wan1 scope=30 target-sc ope=10

You might also like