| Description | This article describes an issue where a FortiClient IKEv2 remote-access connection fails on the first authentication attempt with the error 'No SA proposal chosen' but establishes successfully on the second attempt. This behavior typically occurs when there is a mismatch in the transport protocol settings between the FortiClient and the FortiGate Phase 1 configuration. |
| Scope | FortiGate, FortiClient, FortiClient EMS. |
| Solution |
Symptoms:
Users may experience the following behavior when attempting to connect to the VPN:
Analyzing the IKE debug logs reveals a mismatch in the transport protocol negotiation during the initial connection attempt.
config vpn ipsec phase1-interface
This explains why authentication consistently fails on the first attempt but succeeds on the second.
To resolve this issue, both sides need to use matching transport settings. In this scenario, one of the following options must be selected:
Option 1: FortiClient EMS Configuration update.
The transport protocol on the FortiClient EMS profile needs to be configured to use TCP only. This forces the client to use TCP immediately, eliminating the initial UDP failure.
EMS XML Configuration example: In the endpoint profile XML, the <transport_mode> value needs to be changed to 1 (TCP):
<vpn>
Option 2: FortiGate Phase 1 Configuration update.
The 'udp-fallback-tcp' option should be enabled in the Phase 1 configuration on the FortiGate. This allows the FortiGate to accept the initial UDP attempt while maintaining the ability to fallback to TCP.
config vpn ipsec phase1-interface |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.