Selecting closest gateway for VPN connection 6.4.1
FortiClient (Windows) uses one of the following methods to choose the closest remote gateway for VPN connection:
- Based on ping response time duration
- Based on TCP round trip time (TCP three-way handshake (SYN, SYN-ACK, ACK))
To configure this option in EMS:
- Go to Endpoint Profiles > Manage Profiles.
- Select the desired profile.
- On the VPN tab, click Add Tunnel.
- In Basic Settings, add multiple remote gateways, then click Add Tunnel.
- On the XML Configuration tab, find the tunnel, and modify the
<RedundantSortMethod>
value as desired. This value controls which method FortiClient selects the remote gateway when connecting to this VPN tunnel:Value
Description
0
Priority-based. FortiClient tries remote gateways in the order defined in the server list to connect to VPN.
1
FortiClient connects to the gateway that has a shorter ping response time.
2
FortiClient connects to the gateway that has a shorter TCP round trip time (TCP three-way handshake (SYN, SYN-ACK, ACK))
-
Save the profile.
To verify the configuration:
- In FortiClient, attempt to connect to the newly configured VPN tunnel.
- Do one of the following:
- If you selected the ping response method, manually ping the remote gateways in Command Prompt. Confirm that FortiClient connected using the gateway with the shorter ping response time. You can also capture packets with Wireshark during VPN connection and observe that pings to both remote gateways are present.
- If you selected the TCP round trip time method, use Wireshark to capture packets. Observe that SYN, SYN-ACK, ACK traffic to both remote gateways are present. Confirm that FortiClient connected using the remote gateway with the shorter TCP round trip time.