Skip to main content
jh68782
New Member
February 26, 2026
Question

Slow IPSec Connection with EMS Agent (25 Seconds) - VPN only agent 6 Seconds

  • February 26, 2026
  • 4 replies
  • 268 views

Hi!

The FortiClient IPsec connection takes too long when using the FortiClient EMS-managed client.
Clients that are not managed by EMS (VPN‑only client) take about 6 seconds to establish the IPsec connection.


Example log:

06:09:02.585 → VPN connection starts
06:09:02.834 → IKE_SA_INIT sent
06:09:02.851 → IKE_SA_INIT received (16ms)
06:09:02.914 → EAP-MSCHAPv2 started
06:09:02.936 → EAP-MSCHAPV2: Authentication succeeded (22ms!)
06:09:03.657 → negotiation success (~1s total IKE)
+4.29s GAP – NO IKE activity
06:09:07.947 → first ike_sa_alive checks
(only keepalives, no real traffic)
06:09:24.777 → Ready to read packets
06:09:24.787 → tunnel_name = dummy


The IKE negotiation itself takes ~1 second.
Technically, the tunnel is up at 06:09:03.657.
But FortiClient only reports the tunnel as "Ready" 21 seconds later — from 06:09:03 to 06:09:24.

Attempts so far:

 

config user setting
set auth-on-demand always 
set client-auto-negotiate enable
set client-keep-alive enable

Created VIP and policy to allow traffic from public WAN to EMS port 8013.
EMS port 8013 is reachable from the outside.

Products:

  • FortiClient EMS 7.4.5 build 2111
  • FortiClient (Windows) 7.4.5
  • FortiGate 7.4.11 (IPSec VPN, IKEv2, EAP)

With FortiClient VPN and a manually configured IPsec connection, the problem does not occur.
So it is definitely not related to tunnel settings (routes, split networks, etc.).


12:39:14.119 Last IKE INFORMATIONAL reply
↓ 9 Sec Pause
12:39:23.248 "Ready to read packets without fabric status checking"

iked explicitly waits for EPC fabric-status from FortiESNAC before completing tunnel setup. The wait is hardcoded (?) at ~18 seconds, after which iked proceeds anyway, logging:
[2026-02-26 12:39:23.248] [iked 638 info] Ready to read packets without fabric status checking

Timestamp Event
12:39:05.694[netmon:0x12c1] Quick stop disallowed - ip or interface change â€” VPN interface gets IP
12:39:06–13[netmon:0x12c1] Quick stop disallowed - flag is false (1x per second, ~9s)
12:39:14.694[netmon:0x12c1] Entering "calculating" state for up to 13 secs â€” cycle 1 timeout fires, triggers public-IP check
12:39:14.858[netmon:0x12c2] Network change public ip update succeeded. code: 1 â€” public IP changed → cycle 2 spawns
12:39:15.759[netmon:0x12c2] Quick stop disallowed - non-host route included â€” split-tunnel routes in routing table trigger another stability wait
12:39:16–23[netmon:0x12c2] Quick stop disallowed - flag is false (1x per second, ~9s)
12:39:23.248iked timeout fires â€” Ready to read packets without fabric status checking
12:39:24.768[netmon:0x12c2] Network change public ip update succeeded. code: 0 â€” IP now stable, cycle 2 completes
12:39:24.925{"onnet":true,"status":2,"status_msg":"ready"} â€” FortiESNAC finally reports ready
FortiGate config is not involved: endpoint-control settings is empty (default), no endpoint-check on firewall policies
 
 

Any ideas?


EDIT:

Fresh Client with FortiClient (Full), but without EMS Connected: 10 Seconds.




4 replies

Jean-Philippe_P
Staff & Editor
Staff & Editor
March 2, 2026

Hello jh68782, 

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible. 

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Staff & Editor
Staff & Editor
March 3, 2026

Hello,

 

We are still looking for an answer to your question.

 

We will come back to you ASAP.

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Staff & Editor
Staff & Editor
March 4, 2026

Hi again jh68782,

 

I found this answer, can you tell us if it helps, please?

 

Issue Summary

You are experiencing a delay in the IPsec VPN connection when using FortiClient EMS-managed clients compared to VPN-only clients. The connection takes approximately 25 seconds with EMS-managed clients, while it takes only 6 seconds with VPN-only clients. The delay seems to occur after the IKE negotiation, which completes in about 1 second, but the tunnel is only reported as "ready" 21 seconds later.

 

Observations

  1. IKE Negotiation: The IKE negotiation itself is quick, taking about 1 second.
  2. Delay: There is a significant delay (~21 seconds) after the IKE negotiation before the tunnel is reported as "ready."
  3. EMS Management: The issue is specific to EMS-managed clients, as manually configured IPsec connections do not exhibit this delay.
  4. Network Monitoring: Logs indicate that the delay might be related to network monitoring and public IP checks, which are causing the VPN interface to wait for stability before proceeding.

 

Attempts Made

  • Configured user settings to always authenticate on demand.
  • Enabled client auto-negotiate and keep-alive.
  • Created VIP and policy to allow traffic from the public WAN to EMS port 8013, ensuring EMS is reachable.

 

Potential Causes

  • Fabric Status Check: The delay might be due to the FortiClient waiting for EPC fabric status from FortiESNAC before completing the tunnel setup.
  • Network Stability Checks: The logs suggest that network stability checks and public IP updates are contributing to the delay.

 

Recommendations

  1. Review EMS Configuration: Check if there are any specific settings in EMS that might be causing the delay, particularly related to endpoint control or fabric status checks.
  2. Network Monitoring Settings: Investigate the network monitoring settings to see if the frequency or conditions for public IP checks can be adjusted to reduce the delay.
  3. FortiClient Logs: Analyze FortiClient logs in more detail to identify any additional factors contributing to the delay.
  4. FortiGate Configuration: Although the FortiGate configuration is not directly involved, ensure that there are no policies or settings that might indirectly affect the EMS-managed clients.

 

Follow-ups and Clarification Questions

  • Have you checked if there are any specific EMS policies or configurations that might be causing the delay?
  • Can you provide more details on the network monitoring settings and any custom configurations applied?
  • Are there any differences in the network environment or client configurations between the EMS-managed and VPN-only clients?
  • Have you tried updating to the latest versions of FortiClient EMS and FortiClient to see if the issue persists?
Jean-Philippe - Fortinet Community Team
vpolovnikov
Staff & Editor
Staff & Editor
March 4, 2026

Are there any security/filtering features on the full version of FortiClient? And are there any 3d party security solutions installed on the endpoint? If yes, then security solutions register filtering drivers into the networking stack which may increase the time it takes to process the traffic through the stack.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!