Code: Select all
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=WAN2 routing-mark=web_traffic scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.7.254 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.254 scope=30 target-scope=10
Code: Select all
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=WAN2
add action=masquerade chain=srcnat disabled=no out-interface=WAN1
Code: Select all
/ip firewall mangle
add action=mark-routing chain=prerouting disabled=no dst-address-type=!local dst-port=80,443 in-interface=Local new-routing-mark=web_traffic passthrough=no protocol=tcp