Hotspot can get internet from a diferent gateway?

It is possible to change it so instead of using the main enabled gateway for internet, to use a secondary gateway for internet? Like the one i use for failover? I know it can be done using a external proxy for example, but then i have no idea of how website control whould work. i whould preffer to use the built-in proxy.

Yes, my set is running on:

1 - masquarade both links.
2 - use distance 2+ on route table for the backup link.
3 - use a script on netwatch to disable the main gateway when it goes offline.
4 - use a defined route that your netwatch will monitor the main link.
5 - use a stable public ip to ping your link.