I have a working failover with two internet providers using routes and distances. I had a situation where the primary internet was down but the gateway was still pingable so the internet didn’t failover. Is there a way to monitor an external IP instead of the gateway to create the failover with the basic setup I have? I read a few articles but I’m still confused if this is possible or not.


Have you taken a look at this…
http://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting
“But what if your modem is up, and telephone line is down?”
This is the script that is confusing to me. I’m confused about the virtual routes. Is this what I use for my public pingable servers? Basically I am looking to ping 208.67.222.222 instead of my gateway.
Take a look at this article that should fit your needs exactly. It’s a script that monitors multiple servers on the internet and then it changes rules accordingly and can switch back.
Sorry for hijacking this thread, I’m new so bear with me.
I’m trying to get this “script” working for 2 day now but I’m having no luck so far.
I have a cable (WAN) and cellular (LTE) connection where as I’m trying to configure the LTE connection as a backup.
I did setup a small test config for testing purposes.
WAN GW: 192.168.51.1/24
LTE GW: 192.168.0.253/30
LAN: 192.168.88.0/24
I do see different routes become active/deactived when a link goes down but my default routes don’t change at all. I attached the routes overview with both links up and down examples.
Is there anything I need to add in the Firewall Nat or Mangle rules?
/ip firewall nat
add action=masquerade chain=srcnat comment=ISP1 out-interface=WAN to-addresses=\
192.168.0.254
add action=masquerade chain=srcnat comment=ISP2 out-interface=LTE to-addresses=\
192.168.51.83
Mangle is empty
RouterOS 6.36.2. I hope there is someone who can point me in the right direction!



OK, I finally did solve with a stupid simple solution:
I changed the original default routes
dst 0.0.0.0/0 gw 192.168.51.1
dst 0.0.0.0/0 gw 192.168.0.254
to
dst 0.0.0.0/0 gw 10.1.1.1
dst 0.0.0.0/0 gw 10.2.2.2
that’s all but it’s finaly working for me
Hopefully someone else will find this usefull