You need to do Policy Based Routing and you have 3 options:
- mwan3 package
- pbr package
- a set of rules/routes for each internet connection.
However the IPSEC tunnel doesn't exactly work with gateways, so you might hit a wall there and you'll need to reconsider the tunnel option and use Wireguard or OpenVPN.