As usual, everything I try does not seem to work as advertized.
I am trying to use the ‘canary’ system, but I cannot make it work.
First this:
/ip firewall nat
add chain=srcnat action=masquerade out-interface=ether1
add chain=srcnat action=masquerade out-interface=bridge
/ip route
add dst-address=9.9.9.9 scope=10 gateway=192.168.1.1
add dst-address=8.8.4.4 scope=10 gateway=192.168.50.253
add distance=1 gateway=9.9.9.9 target-scope=11 check-gateway=ping
add distance=2 gateway=8.8.4.4 target-scope=11 check-gateway=ping
Nothing happens when 9.9.9.9 fails (when I disconnect the Starlink dish from the Starlink WIFI unit). I just lose all Internet, and the second gateway does not come online.
So question: When the Ping to 9.9.9.9 fails after 3 times (?), what is actually supposed to happen? Who decides that it should start using the second gateway, and how does it do this?
When I then add this:
:if ($bound=1) do={
/ip route add distance=1 gateway=192.168.1.1 dst-address="9.9.9.9" scope=10 target-scope=31 comment="Starlink"
/ip route add distance=3 gateway=9.9.9.9 check-gateway=ping scope=10 target-scope=32 comment="Starlink"
} else={
/log info "Failover: Deleting main route"
/ip route remove [/ip route find dst-address=0.0.0.0/0 and gateway=192.168.1.1]
}
The interface is always Bound. Even if the Starlink disk falls of the roof. So when does this delete main Route occur? Only when I pull the plug between the Starlink WIFI unit and the main Switch.
Then, even IF this main route has been deleted, how do I get it back? Because my second Gateway is an IP address on the main LAN, and not part of a DHCP-Client.
Sorry for all the questions…

