IPsec VPN tunnel disconnects during periods of inactivity in VMware NSX
search cancel

IPsec VPN tunnel disconnects during periods of inactivity in VMware NSX

book

Article ID: 449020

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

In VMware NSX, an IPsec VPN tunnel may disconnect or transition to a 'Down' state when there is no active user data traffic. This behavior typically occurs when the remote peer device or intermediate network infrastructure enforces idle timers that tear down the Security Association (SA) in the absence of traffic.

  • The IPsec VPN tunnel status shows Down or Negotiating after a period of inactivity.
  • Connectivity is restored only after interesting traffic (data plane) is initiated from the local network.
  • Lack of continuous monitoring visibility when no user traffic is present.

Environment

  • Product: VMware NSX
  • Component: IPsec VPN / NSX Edge
  • Version: 4.2.3.3 and earlier
  • Configuration: Site-to-Site IPsec VPN (Policy-Based or Route-Based)

Cause

IPsec sessions are often configured with idle timers on the remote peer device. If no data plane traffic is detected within the specified interval, the remote peer initiates a deletion of the Security Association (SA) to conserve resources. This is an expected behavior of the IPsec protocol implementation on many third-party gateway devices when keepalives or data packets are not present.

Resolution

To maintain an active IPsec VPN tunnel and monitor its health during periods of inactivity, implement one of the following workarounds:

  • Configure a Dead Peer Detection (DPD) Profile
    • Assign a custom DPD profile to the IPsec session with the Probe Mode set to Periodic. This ensures the NSX Edge sends continuous ISAKMP keepalive probes at a specific interval, regardless of active data plane traffic.
    • Refer to TechDoc Add DPD Profiles
  • Continuous ICMP (Scripted Synthetic Traffic)
  • SNMP Polling
  • Syslog Monitoring

Additional Information