on the main office WAN interface when I disable one of the IP thus changing the prefered source one of the tunnel is connected. Once we disable the working interface and reactivating the other IP (chaninging agin the prefered source) it is the other tunnel that connects.
With both tunnel activated, they are battling one against the other. So I'm pretty sure the only thing I need to solve is make sure that all traffic with a destination ip 1.1.1.1 is returning with the prefered source 1.1.1.1 and all the traffic with a destination 2.2.2.2 is going back with 2.2.2.2.
I wrote those two mangle and routing rule but it doesnt work as expected.
Code: Select all
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address=x.x.x.125 in-interface=\
WAN new-routing-mark=to_125
add action=mark-routing chain=prerouting dst-address=x.x.x.126 in-interface=\
WAN new-routing-mark=to_126
/ip route
add distance=1 dst-address=x.x.x.120/29 gateway=x.x.x.121 pref-src=\
x.x.x.125 routing-mark=to_125
add distance=1 dst-address=x.x.x.120/29 gateway=x.x.x.121 pref-src=\
x.x.x.126 routing-mark=to_126
add distance=1 gateway=x.x.x.x