I am using below setting for WAN Fail over between 2 ISPs. Fail over is working fine, when WAN1 goes down, WAN2 takes over as expected.
I can access WAN1 from external, can ping, dst-nat rules are working fine also, since it’s my primary route.
I am facing issues when trying to make connections from internet to my WAN2 IP. It happens when it’s in “standby mode” (marked as non active or in blue in Winbox). It’s unreachable from internet. As said before, when it takes over from WAN1, I can reach and make any connections from external fine. Both WAN1 and WAN2 are PPPOE client connections.
LAN1=local lan
WAN1-PPPOE=ISP1 - interface name WAN1
WAN2-PPPOE=ISP2 - interface name WAN2
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN1-PPPOE new-connection-mark=WAN1_conn
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN2-PPPOE new-connection-mark=WAN1_conn
add action=mark-routing chain=prerouting connection-mark=WAN1_conn in-interface=LAN1 new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_conn in-interface=LAN1 new-routing-mark=to_WAN2
add action=mark-routing chain=output connection-mark=WAN1_conn new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_conn new-routing-mark=to_WAN2
/ip route
add check-gateway=ping distance=1 gateway=WAN1-PPPOE routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=WAN2-PPPOE routing-mark=to_WAN2
add distance=1 gateway=WAN1-PPPOE
add distance=2 gateway=WAN2-PPPOE