I'm working with 2 ISP one of 10Mbps and other of 100Mbps. The 10Mbps connection have a Public IP to access from outside to a web app. From inside my network the ECMP balancing works fine, but when I try to access from outside the connection can't be established. It seems that the connections is entering from one ISP and is going out through the other.
I reviewed the tutorial on the Mikrotik Wiki and I think I did it the right way.
If I deactivate one of the WAN interfaces the NAT works fine.
Here are my routes and my mangle rules:
Mangle
Code: Select all
add action=mark-connection chain=input in-interface=ether1-WAN new-connection-mark=WAN_conn passthrough=yes
add action=mark-connection chain=input in-interface=ether5-WAN2 new-connection-mark=WAN2_conn passthrough=yes
add action=mark-routing chain=output connection-mark=WAN_conn new-routing-mark=to-isp1 passthrough=no
add action=mark-routing chain=output connection-mark=WAN2_conn new-routing-mark=to-isp2 passthrough=no
Code: Select all
add check-gateway=ping distance=1 gateway=192.168.1.1,192.168.18.1,192.168.18.1,192.168.18.1,192.168.18.1,192.168.18.1,192.168.18.1,192.168.18.1,192.168.18.1,192.168.18.1,192.168.18.1
add check-gateway=ping distance=1 gateway=192.168.18.1 routing-mark=to-isp2
add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=to-isp1