Setup is simple:
/ip route
0.0.0.0/0 GW_MAIN distance=2
0.0.0.0/0 GW_BACKUP distance=3
When main gateway is unreachable all traffic goes via Backup gateway. When main gateway is reachable MikroTik switches from Backup to Main gateway – everything works.
Now I want to allow to connect to backup WAN always via Winbox (even when all traffic goes via Main Gateway). How can I achieve this?
I understand that I need to add default gateway with routing mark and same distance as Main WAN has:
/ip route
0.0.0.0/0 GW_MAIN distance=2
0.0.0.0/0 GW_BACKUP distance=2 routing_mark=Winbox-Backup-Wan
0.0.0.0/0 GW_BACKUP distance=3
Problem is that Mangle rule never catches incoming Winbox connection via Backup wan.
Maybe someone has a working example?