Hello All,
I wonder if anyone has an adaptable/adoptable failover script or can help me write one. I am quite new to RouterOS, and have very limited knowledge.
I have a CATV internet connection on ether2, a PPPoE ADSL link on ether3, and a second local router on the LAN port ether1, with 192.168.2.2. I use the basic failover setup at the moment, if I unplug the wire from ether2, packets go to ether3, and if I unplug that too, packets go via the other router on the LAN. So far so good. But.
This morning I found that the internet was unreachable. I unplugged ether2, and bingo, the failover link was activated, I had internet on my ADSL backup link.. So I checked things, and the problem is that while the cable gateway IS reachable, packets go no further from the gateway. This nicely prevents the failover to hand over traffic to my ADSL or 3G connections. So it would be better to ping remote hosts on the internet to determine if the connection is up or not, rather than just pinging the gateway.
Has anyone by any chance written a failover script that could be adapted/adopted ? What I thought of: ping a series of servers regularly using different routes. If on a specific route X pings in sequence fail, but the host is available on another route, disable the default route using the given inteface/gateway. And when the host becomes available again, re-activate it.
Or any other solution? Does anyone have any working solution?