By Manny Fernandez

July 1, 2020

Decreasing Fail-Over Time for Multi-Homed VPNs using DPD.

Decreasing Fail-Over Time for Multi-Homed VPNs using DPD.

Use case:

Customer has two ISP connections at both sites. Two VPNs configured. ISP1 to ISP1 and ISP2 to ISP2. Customer wanted to lower the time it takes for the VPN to drop and the other VPN come up. One of the options I discussed with the customer was running route-based VPN and OSPF. Β This also has its challenges but in this article I will cover modifying the DPD settings to decrease the time for the VPN to fail-over.

config vpn ipsec phase1-interface
edit <tunnel_name>
set dpd on-idle
set dpd-retrycount <#> <---------------- by default, this value is 3
set dpd-retryinterval <#> <------------- by default, this value is 20

Here is the explanation of the options.

dpd-retrycount
How often will the DPD be attempted.

dpd-retryinterval
How long is the interval in seconds after which a DPD will be attempted again.

On a dial-up server, if a multitude of VPN connections are idle, the increased DPD exchange could negatively impact the performance/load of the IKE process.
For this reason, an option is available in the CLI to send DPD passively in a mode called “on-demand”.
– When there is no traffic and the last DPD-ACK had been received, IKE will not send DPDs periodically.
– IKE will only send out DPDs if there are outgoing packets to send but no inbound packets had since been received.

By default, the customer was failing-over in 90 Seconds, by modifying the DPD settings, they customer brought down the fail-over to 20 seconds.

FortiGate IKEv2 Certificate Pinning: Machine Certificate Plus EAP-MSCHAPv2 Remote Access VPN

FortiGate IKEv2 Certificate Pinning: Machine Certificate Plus EAP-MSCHAPv2 Remote Access VPN

Set up FortiGate IKEv2 certificate pinning: require a machine certificate from your own CA before EAP-MSCHAPv2 login, with OpenSSL and CRL.

Read More
CVE-2026-19868: SonicWall SAML MFA Bypass on SSLVPN, Patch and Hunt Guide

CVE-2026-19868: SonicWall SAML MFA Bypass on SSLVPN, Patch and Hunt Guide

SonicWall SAML MFA bypass CVE-2026-19868 is exploited. Check exposure, patch SonicOS, and hunt SSLVPN logins that skipped your IdP.

Read More
Cisco Duo MFA for FortiGate Remote Access VPN: SAML and RADIUS on IKEv2

Cisco Duo MFA for FortiGate Remote Access VPN: SAML and RADIUS on IKEv2

Set up Duo FortiGate VPN MFA on IKEv2: Duo SSO as SAML IdP or the Duo Authentication Proxy over RADIUS, with configs, debugs, and...

Read More