Created on
06-14-2023
11:39 PM
Edited on
07-22-2025
06:22 AM
By
Jean-Philippe_P
Description | This article describes the operation process for IPsec VPN DPD options. |
Scope | FortiGate, all firmware. |
Solution |
DPD options can be found in the GUI section:
This mode is suitable in highly stable environments where DPD overhead is unwarranted. In this mode, FortiGate does not generate any DPD messages actively; however, it will respond to any incoming DPD message from the other peer of the IPsec tunnel (for example, FortiClient DPD messages).
IKE sends DPDs only when outgoing packets are transmitted, but no incoming packets have been received within the last dpd-retryinterval seconds. When there is no traffic, IKE does not send any DPDs periodically. On-demand mode is best for environments where traffic patterns are unpredictable, and an immediate response to connectivity issues is crucial. On-Demand is the default setting.
Trigger Dead Peer Detection when IPsec is idle. On-idle mode is best for networks with regular traffic intervals, providing a balance between connectivity assurance and resource utilization.
set dpd-retrycount 3
dpd-retryinterval: How long is the interval in seconds after which a DPD will be attempted again.
According to the above settings, a DPD packet is transmitted once every 10 seconds, a total of 3 times, and the flush is processed after 30 seconds.
2. No traffic is passing through the tunnel, and DPD probes are sent.
Simple topology configuration: Local Client -> 'Local FGT' -> Router -> 'Remote FGT' -> Remote Client.
Local FortiGate debugging result:
2023-03-23 22:21:46.588954 ike 0:to-remote:4: send IKEv1 DPD probe, seqno 1 <----- DPD retries 3 times. 2023-03-23 22:21:56.608507 ike 0:to-remote:4: send IKEv1 DPD probe, seqno 1 2023-03-23 22:22:06.629309 ike 0:to-remote:4: send IKEv1 DPD probe, seqno 1
Remote FortiGate debugging result:
2023-03-23 22:21:49.581716 ike 0:to-local:2: send IKEv1 DPD probe, seqno 1 2023-03-23 22:21:59.601119 ike 0:to-local:2: send IKEv1 DPD probe, seqno 1 2023-03-23 22:22:09.621271 ike 0:to-local:2: send IKEv1 DPD probe, seqno 1
After the link is down, ESP packets are maintained until the tunnel is flushed, but packets are not forwarded through the tunnel after flushing.
total(30 seconds) = dpdretrycount(3 times) * dpdretryinterval(10 seconds)
Related article: |
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.