/ip route
add check-gateway=ping distance=11 dst-address=0.0.0.0/0 gateway=ether1 routing-table=main
add check-gateway=ping distance=12 dst-address=0.0.0.0/0 gateway=ether2 routing-table=main
add dst-address=0.0.0.0/0 gateway=ether2 routing-table=to_ether2
From this setup. all user originated traffic on the LAN will go out WAN1 due to lower distance.
All incoming server traffic coming in on WAN2, will go out WAN2.
Assuming all users are given a DYNDNS URL, for your connection to WAN2......
IF WAN2 goes down the URL gets the IP address of WAN1 etc.................
Please confirm.
If WAN1 fails, the router will find WAN2. This will not affect the servers already on WAN2 and all users on the LAN will by the main routes find and use WAN2.
If WAN2 fails, the LAN users will not be affected. IF external users provided DYNDNS URL (you have given them) switches from ISP2 to ISP1, then users will come in on WAN1 and traffic will go out WAN1.
(1) Ok, you have a point, but this is not causing the problem
(2) ether1 and ether2 are added to WAN, I have to remove WAN1 and WAN2
(3) Yes, the ISP uses DHCP, but the address is static (note the real IP is different than the one provided in the config)
(4) I gave myself WinBox access so that I don't have to visit the location. TB4011 is used in a small office
(5) Will try that
(6) Will try that as well. Should I do the same rules for ether1? I want my main connection to be from ether1, not ether2
(7) I manage only one of the few servers behind the router, I'll address your concerns to the personal managing the others.
(8 and 9) kind of hairpin NAT, so that the personnel can access their webmail from the local network using the domain they already used before the installation of the Mikrotik
(10) 212.5.152.1 - forgot to replace this one while replacing the networks for the purpose of posting the config.
>So look at the above config piece, 10.10.0.112 is associated with ETHER2 in the last line but has a lower distance in the second line. So this is wrong!!
Ok let me clarify, the DNS records are set to the IP of the slower ISP. Before they are migrated to the faster ISP IP address they should remain accessible from the slower ISP while the office workers should use the faster connection.
If I change the routing distance having the faster ISP being the primary one, than the port forwarding for the slower ISP stop working.
>Please confirm the following: Assuming you mean, all LAN users should use WAN1 and all servers should have incoming traffic from WAN on WAN2.
However,
-->if WAN1 fails, all users should be able to use WAN2
--> if WAN2 fails, all servers should be reachable via WAN
About the users - YES.
I want the servers reachable from both WANs
>Assuming all users are given a DYNDNS URL, for your connection to WAN2......
IF WAN2 goes down the URL gets the IP address of WAN1 etc.................
Please confirm.
Don't use dynamic DNS at the moment