I have problem with IPSEC and routing towards AWS.
I have setup like in attached picture: two routers connected via IPSEC to AWS and third router below. Dynamic routing on AWS links is used. Link from Router A to AWS should be primary and from Router B is backup link.
All is good but when link from Router C to Router A goes down, Router C starts to forward traffic to 10.8.0.0/16 via router B and problem starts. Communication is broken and no connection to AWS. It looks like Router B starts to encrypt traffic from 10.10.10.0/24 to 10.8.0.0/16 according to IPSEC Policy, but it sends out this encrypted traffic via GRE interface to Router A because routing table have route from router A about network 10.8.0.0/16.
On other vendors usually IPSEC Policy is associated with WAN interface and if traffic doesn't exist WAN it doesn't get encrypted, but Mikrotik logic is different.
What could be the solution or possible workaround for this?