Description | This article describes how to set up an IPSec tunnel in an Active/Active HA Cluster for FortiGate-VM in Azure to prevent tunnel flapping and asymmetric routing |
Scope | FortiGate-VM Active, Active HA Cluster in Azure. |
Solution |
While an Active/Passive HA cluster is generally recommended for IPSec tunnels, users may require establishing an IPSec tunnel in an existing Active/Active HA cluster.
The following assumes an Active/Active HA cluster for FortiGate-VM is implemented based on the provided template: FortiGate Active-Active ELB-ILB - GitHub
Set up an IPSec tunnel between the FortiGate HA cluster in Azure and another [FortiGate] firewall.
For details on IPSec VPN setup and troubleshooting of a FortiGate Active/Passive HA cluster, refer to: IPSec VPN connectivity for FortiGate in Azure - GitHub FortiGate HA cluster ELB-ILB inbound-ipsec-configuration - GitHub
When using an Active/Active HA cluster with an IPSec tunnel, the end-to-end connection from an on-premises host to a protected VM in Azure may encounter the following issues:
To address these issues:
config vpn ipsec phase1-interface edit "to_On-prem" set fgsp-sync enable next end
If the FGSP session sync is not enabled on the FortiGate, enable the passive-mode too on the IPSec phase1-interface. Enabling passive mode ensures that the Azure FortiGate acts as a responder and does not initiate the IPSec tunnel. The on-premises device determines to which FortiGate (FGT-A or FGT-B) to send the IPSec traffic. If the responding FortiGate fails, the traffic automatically shifts to the other, re-establishing the tunnel.
config vpn ipsec phase1-interface edit "to_On-prem" set passive-mode enable next end
For detailed configuration, refer to: Configuring FGSP with an IPSec tunnel - Fortinet Community
This configuration ensures that traffic originating from a specific client IP always returns through the same FortiGate, maintaining symmetry in routing.
Related documents: FortiGate Active-Active ELB-ILB - GitHub IPSec VPN connectivity for FortiGate in Azure - GitHub FortiGate HA cluster ELB-ILB inbound-ipsec-configuration - GitHub Configuring FGSP with an IPSec tunnel - Fortinet Community IPSec Tunnel in FortiGate Active-Passive HA cluster with LB sandwich |
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.