FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
mrashidi
Staff
Staff
Article Id 296800

Description 

 

This article describes how to fix the failover issue when there is a FortiGate-VM HA cluster with multiple IPSec tunnels.

 

There is an Active-Passive HA cluster. There is more than one Public address assigned to the External interface of the FGT-VM. Each IP is used in a different IPSec tunnel, so it is necessary to specify a 'local-gw' in each phase1-interface configuration.

 

Since the local-gw is the same on both FGT-A and FGT-B but the WAN interface private IPs are different, if the fail-over happens, the new primary will not be able to bring up the IPsec tunnel.

 

This may happen on the HA clusters that do not have a floating private IP moving between the HA members.

 

Scope          

 

FortiGate-VM, OCI-FortiGate, FortiGate v7.0.x, v7.2.x, v7.4.x.

 

Solution           

 

To make both HA members able to bring up the IPsec tunnel it is necessary to, first, prevent the phase1-interface configuration sync between the HA members and, then, change the local-gw on the FGT-B according to its WAN interface IPs.

 

Process:

 

  1. Prevent the phase1-interface configuration sync between the HA members:

config system vdom-exception
    edit 0
        set object vpn.ipsec.phase1-interface
    next
end

 

  1. Change the local-gw on the FGT-B according to its WAN interface IPs:

     

    config vpn ipsec phase1-interface
        edit VPN-1
            set local-gw <primary private IP>
        next
        edit VPN-2
            set local-gw <secondary private IP 1>
        next
        edit VPN-3
            set local-gw <secondary private IP 2>
        next
    end

     

After following these steps, trigger the failover and test the IPSec tunnels.

 

Related documents:

Phase 1 configuration | FortiGate / FortiOS 7.4.2 | Fortinet Document Library

VDOM exceptions | FortiGate / FortiOS 7.4.2 | Fortinet Document Library

IPsec VPN in an HA environment | FortiGate / FortiOS 6.2.15 | Fortinet Document Library

 

Related article:

Technical Tip: IPSec VPN in HA Environment - Fortinet Community