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:
you can get this routing mark by adding a mangle rule on the Input chain to mark the connection, then on the output chain to add routing mark to this connection
so traffic comes in from interface=wan2, dst-port=8291, protocal=tcp, gets marked by a connection mark, then the return traffic will still have this connection mark. now you can apply routing mark on it, This way the traffic goes back to the interface where it comes from.