Technical Tip: Understanding of 'Use All Gateways' option in ZTNA Rule, when there are multiple gateways for an application
| Description | This article describes how FortiClient selects the gateway when there are multiple gateways enabled for a ZTNA application, or when the option 'Use All Gateways' is enabled. |
| Scope | FortiClient, EMS. |
| Solution | When there are multiple gateways for a ZTNA destination, the default setting for the option 'Use All Gateways' is 'enable'. This keeps the original gateways of the application, and if a new gateway is linked to the ZTNA application, the gateway will be automatically added to the profile as a new rule. If this option is disabled, then the administrator can select the specific gateways to use.
When the option 'Use All Gateways' is enabled, or when multiple gateways are selected for an application, FortiClient dynamically selects the available gateway with the lowest latency. The FortiClient performs an initial probe of the detected gateways and keeps performing the latency assessment periodically. Traffic is routed through the gateway that responds with the lowest response time. In the event of a failure or unavailability, the next available gateway is automatically used. |


