When FortiClient cannot establish an IPsec VPN, investigate the negotiation stage that fails before changing routing or adding access policies. A timeout before the gateway responds, a rejected cryptographic proposal, a failed identity check, and a tunnel that connects without application access require different evidence.
This guide focuses on an IKEv2 remote-access connection that does not complete. It complements separate guides for connected VPNs with no traffic. Examples use documentation addresses and are not captured production output. FortiClient, EMS, FortiOS, authentication method, and transport support vary by release. Confirm their supported combination first.
Gateway reachability
IKE negotiation
Authentication and CHILD SA
Routes, DNS and policy
Advance after verification; return to the earliest failed checkpoint.
1. Write down a precise connection profile
Record the FortiClient version, operating system, EMS management status if applicable, gateway hostname, resolved gateway address, IKE version, intended transport, authentication method, and exact error. Record the FortiOS build and the name of the expected dial-up configuration.
Ask whether the profile ever worked and what changed. An endpoint upgrade, certificate renewal, identity-provider change, altered gateway hostname, home-router replacement, or firewall policy revision can provide a useful timeline. Treat each as a lead to test rather than proof of the cause.
Distinguish device or peer authentication from user authentication. A connection may rely on a pre-shared key or certificates to establish trust and then require a user-authentication exchange. Entering a valid directory password does not establish that all earlier identity and negotiation requirements are satisfied.
2. Confirm the gateway address and listener path
Resolve the configured hostname from the affected client and confirm that the resulting address belongs to the intended VPN endpoint. Compare a failing client with a known working client using the same profile. Check for stale DNS or split-DNS answers before editing cryptographic settings.
Review the complete path to the firewall. Include upstream NAT, edge routers, interface addressing, and restrictions for traffic terminating on the FortiGate. A forward policy for users crossing the firewall does not automatically permit negotiation to a service on the firewall itself.
For a conventional UDP IKE deployment, inspect UDP 500 and 4500 as appropriate. Do not assume that an ordinary TCP port test validates a UDP VPN path. If your supported deployment explicitly uses an alternative transport, verify its configured ports and use a capture matching that transport instead.
3. Capture a bounded client attempt
A short packet capture answers whether requests arrive and whether replies leave. Replace the sample public client address with the address actually observed by the gateway. A user behind NAT will normally appear with the translated public address rather than the laptop's private address.
diagnose sniffer packet any 'host 198.51.100.25 and (udp port 500 or udp port 4500)' 4 30 l
Start one controlled connection attempt while the capture runs. Stop once sufficient evidence is collected. If no packets arrive, investigate endpoint routing, DNS, local restrictions, upstream filtering, and destination addressing. If requests arrive and replies leave, examine whether those replies reach the client before assuming the gateway rejected authentication.
Avoid interpreting packet counts alone as negotiation success. A bidirectional exchange can still end in a proposal rejection or authentication error. Save timestamps and correlate the capture with FortiClient logs and gateway events. Limit the collection scope because captures expose operational details.
4. Collect focused IKE diagnostics
Inspect current gateway and tunnel state first. A failed attempt might leave no completed tunnel, while a different profile with a similar name is active. Record the correct VDOM and expected peer configuration before enabling debug.
get system status
diagnose vpn ike gateway list
diagnose vpn tunnel list
Where supported, filter IKE logging to the observed remote address. The example below follows documented newer syntax. Older builds may expose different filter commands. Check local help and do not continue with an unfiltered production debug merely because the filter syntax was rejected.
diagnose vpn ike log filter clear
diagnose vpn ike log filter rem-addr4 198.51.100.25
diagnose debug console timestamp enable
diagnose debug application ike -1
diagnose debug enable
Run one connection attempt and stop promptly. Coordinate with other administrators because debug controls can affect a shared diagnostic session. Do not leave verbose logging running while waiting indefinitely for a user to retry.
diagnose debug disable
diagnose vpn ike log filter clear
diagnose debug reset
These commands collect evidence. They do not restart IKE or delete active tunnels. Avoid global restart or tunnel-clearing commands during first-response diagnosis because they can disrupt unrelated VPNs.
5. Locate the failed negotiation stage
Use the log sequence to determine how far the attempt progresses. For IKEv2, distinguish the initial IKE_SA_INIT exchange from IKE_AUTH and the establishment of the child security association. Do not translate every vendor message into a generic phase-one failure without reading the surrounding exchange.
If the initial exchange cannot agree on parameters, compare the offered and accepted proposals, supported algorithms, and Diffie-Hellman settings for the installed versions. If the exchange reaches authentication, focus on identities, credentials, certificates, EAP, and the configured backend as appropriate.
A short message such as no proposal chosen needs context. Determine which exchange emitted it and compare both sides. Do not copy old IKEv1 aggressive/main-mode advice into an IKEv2 investigation. Likewise, do not enable weaker algorithms solely because a negotiation error mentions a mismatch. Select a mutually supported policy approved by the security owner.
6. Investigate authentication using the configured method
For a pre-shared-key deployment, verify the intended profile and the secure provisioning process. Do not paste the key into a ticket or chat for comparison. An identity mismatch can cause selection of a different configuration, so a suspected wrong key should not end the investigation prematurely.
For certificate-based authentication, review certificate validity, chain, intended identity, trust, clock accuracy, and key availability on the relevant side. A valid server certificate for one hostname does not establish validity for every alternate gateway name. Preserve the exact client certificate error where present.
For EAP-backed authentication, verify the client method and the backend's supported method. Fortinet documents specific combinations and limitations for direct LDAP, RADIUS, and EAP operation. A successful directory login in another application is not proof that this VPN's EAP exchange is supported or correctly configured.
7. Correlate RADIUS, MFA, and user authorization
If a RADIUS or identity service participates, collect the matching backend event for the same username and time. Determine whether the server received the request, issued a challenge, accepted authentication, rejected it, or never completed the exchange. Redact usernames and private attributes before external sharing.
A push notification arriving on a phone proves only that one part of the authentication workflow ran. It does not prove the VPN received and accepted the final response. Compare the gateway and backend timelines, including any challenge, timeout, group lookup, or authorization decision.
Do not lengthen every timeout as a generic repair. First establish whether the intended exchange takes longer than the configured budget and whether the documented settings apply to this release and method. If a change is justified, record the scope and test both successful approval and a denied or expired challenge.
8. Use a symptom-to-evidence table
For a timeout with no gateway packets, investigate the client-to-gateway path. For requests reaching the gateway without the expected response, inspect listener configuration, local restrictions, profile selection, and gateway logs. For a proposal rejection, compare the exact offered and configured parameters.
For authentication errors after negotiation begins, correlate peer identity and user-authentication evidence. For a completed IKE association without a usable child association, investigate the next stage and the method-specific address or traffic-selector settings. If the client reports connected and the child association exists, transition to a traffic-path investigation.
Keep these branches separate in the incident notes. A user can have a connection failure on one network and a connected-but-no-DNS problem on another. The same visible application complaint does not establish the same VPN failure stage.
9. Worked incident example
Consider an illustrative remote employee whose managed client stops connecting after an authentication change. A bounded capture shows negotiation packets in both directions. The gateway debug reaches user authentication, and the backend records a rejected request for the configured EAP method.
That evidence supports reviewing the authentication-method compatibility and the changed backend policy. It does not support adding a route to an internal server or creating an any-any forward policy. The engineer compares the approved client settings with the vendor's documented authentication design and makes one reviewed correction.
The user then connects successfully through a fresh attempt. The engineer verifies the assigned address and child association, tests an approved internal application, and confirms that an unauthorized test account still fails. Each result is recorded separately so successful user authentication is not confused with unrestricted network authorization.
10. Validate connectivity after establishment
Once the tunnel establishes, verify the assigned client address, routes, intended split-tunnel behavior, DNS, access policy, and return path. Use an approved internal application transaction, not only ping. A successfully negotiated VPN is the start of traffic validation, not its conclusion.
Test reconnect, sign-out, and a new session as appropriate. If the issue occurred only behind one network, repeat through that path after the correction. Do not use a successful test from an office LAN as proof that a remote NAT or filtering problem is resolved.
Escalation package and closure
Provide exact client and gateway versions, management context, transport, authentication design, a sanitized profile summary, failed-attempt timestamps, packet-path evidence, filtered IKE logs, and backend events. State the last successful stage and the first failed stage.
Document the final correction and its scope. Confirm debug was disabled, temporary exceptions were removed, and expected access restrictions remain effective. A useful closure explains why this attempt failed and how repeated tests demonstrated recovery, while preserving the distinction between negotiation, authentication, authorization, and application access.
Quick diagnostic reference
| Observed symptom | Next evidence to collect |
|---|---|
| The client reports connected but the application fails | Verify the assigned address, installed routes, DNS, and matched policy. |
Official documentation
Fortinet reference 1: forticlient as dialup client
Fortinet reference 2: technical tip fortios ikev2 eap user authentication operation 217759
Fortinet reference 3: diagnose vpn ike