Ferritaas Incident Intelligence
Defect Intelligence Report LogID 0101037128 Severity: High (P2)

LogID 0101037128: IPsec Phase 1 SA Deleted due to DPD Timeout

Transient WAN jitter or packet loss drops 3 consecutive Dead Peer Detection (DPD) keepalives, prompting the FortiOS IKE daemon to tear down the entire IPsec Phase 1 Security Association and discard all subordinate Phase 2 tunnels.

Technical Root Cause Analysis

FortiOS IPsec tunnels implement Dead Peer Detection (DPD, RFC 3706) to ascertain whether a remote peer gateway is still operational when no transit data is flowing. Under default configurations or aggressive SD-WAN provisioning templates, DPD operates in on-demand mode with a retry count of 3 and an interval of 5 seconds (set dpd-retrycount 3, set dpd-retryinterval 5).

When a brief ISP congestion event, packet reordering burst, or upstream carrier BGP reconvergence drops just 3 UDP port 500/4500 DPD ACK packets within a 15-second window, the ike daemon's dpd_mgr declares the peer dead. It executes an immediate hard teardown of the Phase 1 SA, logs event LogID 0101037128, and removes all associated Phase 2 hardware encryption keys (SPIs) from the NP6/NP7 ASIC. This collapses SD-WAN overlay paths, triggers dynamic routing reconvergence loops (BGP/OSPF flaps), and results in 30 to 90 seconds of total traffic blackholing while IKE performs initial main/aggressive mode negotiation.

date=2026-09-10 time=14:22:01 logid="0101037128" type="event" subtype="vpn" level="error" vd="root" logdesc="IPsec phase 1 SA deleted" msg="IPsec phase 1 SA deleted due to DPD timeout" action="delete" rem_ip=198.51.100.2 out_if="wan1" vpn_tunnel="HQ_to_Branch_01" cookies="94e10b12a842f1c8/22f184b2c1409a12" reason="Peer not responding"

Affected Firmware & Blast Radius Matrix

FortiOS Branch DPD Default Behavior Vulnerability Scope Recommended Tuning
FortiOS 7.0 on-demand (3 retries @ 5s) High: Drops tunnels during 15s jitter Switch to on-idle (5 retries @ 10s)
FortiOS 7.2 on-demand (3 retries @ 5s) High: Flaps SD-WAN SLA rules Switch to on-idle (5 retries @ 10s)
FortiOS 7.4 on-demand (3 retries @ 5s) High: Trigger ADVPN shortcut re-learn Switch to on-idle (5 retries @ 10s)
FortiOS 7.6 on-idle (adaptive fallback) Tolerant: Auto-dampening applied Verify peer compatibility

Topology Impact: Affects all FortiGate site-to-site IPsec tunnels, Hub-and-Spoke ADVPN topologies, and SD-WAN overlay overlays traversing commercial internet transit or 5G/LTE wireless WAN circuits.

Step 01: Free Verification CLI (Safe Read-Only)

Execute these diagnostic commands to verify current IKE gateway states, count DPD timeout log events, and inspect active Phase 1 SA lifetimes:

Diagnostic Commands

# 1. Check active IKE Phase 1 gateway status and DPD counters
diagnose vpn ike gateway list name <tunnel_name>

# 2. Filter system event logs for LogID 0101037128 occurrences
execute log display | grep "0101037128"

# 3. View real-time IKE daemon operational status
diagnose vpn ike status

# 4. Check active Phase 2 IPsec tunnel hardware offload state
diagnose vpn tunnel list name <tunnel_name>

Remediation & Workaround Steps (Teaser Preview)

Follow the complete step-by-step remediation guide in the Ferrite interactive platform:

Step 02: Switch DPD Mode from On-Demand to On-Idle

Configure set dpd on-idle inside the phase1-interface to suppress unnecessary keepalive probes during active data flow.

🔒 Interactive CLI Available in Ferrite Runbook #07

Step 03: Optimize DPD Retry Interval & Failure Thresholds

Increase retry count to 5 and interval to 10 seconds (50-second tolerance) to absorb transient WAN routing jitter.

🔒 Interactive CLI Available in Ferrite Runbook #07

Step 04: Align SD-WAN Performance SLA Jitter Thresholds

Tune SD-WAN health check probes to prevent premature overlay steering during brief carrier latency bursts.

🔒 Interactive CLI Available in Ferrite Runbook #07
⚡ Ferrite Platform Superpowers

Execute the Complete Runbook with Live Browser Automation

Connect your FortiGate via browser console (Web Serial) or local SSH bridge, monitor DPD keepalive handshakes across remote spokes in real-time, generate ready-to-run Tera Term scripts, and export sanitized TAC dossiers.

Live Browser Automation Direct terminal connection with live step checkoff.
📟
1-Click Tera Term (.ttl) Generate scripts for air-gapped jumpboxes.
🛡️
Zero-Trust Scrubber Scrub serials and credentials in local browser RAM.
📄
TAC P1 Escalation Dossier Standardized evidence export with SHA-256 seal.

Frequently Asked Questions

What causes FortiOS LogID 0101037128?

The IKE daemon transmits Dead Peer Detection queries to the remote IPsec peer. If 3 consecutive queries go unanswered due to WAN packet loss or carrier routing jitter, the firewall deletes the Phase 1 SA.

What is the difference between DPD 'on-demand' and 'on-idle'?

In 'on-demand' mode, DPD queries are sent whenever there is egress traffic waiting to be transmitted. In 'on-idle' mode, DPD queries are only sent if NO inbound or outbound traffic has traversed the tunnel for the interval duration.

Does tuning DPD require dropping the active IPsec tunnel?

No. Changing DPD parameters via FortiOS CLI updates the running phase1 configuration dynamically without terminating active Phase 1 or Phase 2 SAs.