Description |
This article describes how the FortiClient IPSec dial-up VPN's IKEv2 Session Resumption feature operates in relation to DPD (Dead Peer Detection) and the FortiGate FortiOS tunnel management procedure. It includes a PowerShell one-liner and a script for detailed monitoring of the FortiClient IKE daemon logs, as well as changes to Windows network interfaces and the routing table. |
Scope | FortiClient dial-up VPN. |
Solution |
The client-resume feature in FortiClient does NOT activate automatically without specific triggering conditions, such as a network change or the system resuming from sleep mode. It is important to note that the client-resume-interval is solely a configuration on the FortiGate side. FortiClient does not interpret or act on the client-resume-interval; instead, this configuration allows FortiGate to temporarily suspend tunnel-flushing for the specified duration (in seconds) when a Dead Peer Detection (DPD) failure is identified.
In FortiClient, the client-resume setting can only be enabled or disabled:
Client-resume is not triggered by packet loss, even in cases of 100% packet loss! Triggering conditions must involve network interface or operating system-level events, such as:
FortiClient differentiates between a network interface being disconnected or unplugged and a network interface being disabled.
To assist with deeper analysis, a customized PowerShell script is attached to this article. When prompted for an IP address during execution, provide the IKE gateway or any other interested IP address. By using this script, one can:
This analysis will provide valuable insights into how various configurations and events affect the system's behavior in real-time. Additionally, the following PowerShell one-liner can be used to monitor IKE daemon logs for relevant entries related to DPD failures or client-resume triggers:
The attached PowerShell script can be used in general with IPSec or SSL VPN. It is useful for troubleshooting L3 and OS-related issues of SSL or IPSec dialup VPN (such as always up (keep running) or auto-connect) or problems with VPN stuck in connecting in the FortiClient Console GUI.
Related documents: Bulletproofing SSL and IPsec Dial-Up VPN ... - Fortinet Community IKEv2 session resumption 7.4.1 | FortiClient 7.4.0 | Fortinet Document Library |
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.