Good morning, I have a failover with 2 link, then I made a nat for an internal server through the backup link, but it only works if I take down the main link, when the main one is in the air redirection does not work
You need to do policy routing, probably with connection marking, so your two connections are independently handled by the routing and NAT.
There are examples available on the forum.