So for a solution with routes.
We need Metric routes
For UDP Traffic
if UDP fw is not accessible then it will route the SRX
If srx is not accessible then it will route to the EX
For tcp traffic
if srx is not accessible then it will route to the EX
But the main problem is that. SRX requires to see the return of the traffic for an healty work. so
If we create a prefix list on MX to route the traffic to the firewall with destination addresses then the same list must work on the EX to send the same traffic with the source addresses to the SRX
how should i apply a list on both of this devices
with a metric route this should be a better solution.