Skip to main content
EM_Fortiuser
Visitor III
February 12, 2025
Question

Configuration Help

  • February 12, 2025
  • 2 replies
  • 753 views

I have an HA Firewall in a Active and Passive system. When the system fails over the outbound WAN changes and I need to establish a vpn to the same destination. What is the best solution for this?

EM_Fortiuser_1-1739388486507.png

I see the cookbook suggestion is SDwan VPN.
https://docs.fortinet.com/document/fortigate/7.6.2/administration-guide/389913/dual-vpn-tunnel-wizard
Just seeing if anyone else has done something like this

2 replies

Dhruvin_patel
Staff
Staff
February 12, 2025

Greetings!

 

To address the issue of outbound WAN IP changes during failover in an Active-Passive HA firewall system and the need to establish a VPN to the same destination, follow these steps:

1. Prevent the phase1-interface configuration sync between the HA members:
- Configure VDOM exceptions to prevent the sync:
```
config system vdom-exception
edit 0
set object vpn.ipsec.phase1-interface
next
end
```

2. Change the local-gw on the passive firewall according to its WAN interface IPs:
- Update the local-gw for each phase1-interface configuration:
```
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
```

By following these steps, you can ensure that both HA members can bring up the IPsec tunnel even after a failover with outbound WAN IP changes. Remember to trigger the failover and test the IPsec tunnels after making these configurations.

 

Regards!

EM_Fortiuser
Visitor III
February 13, 2025

So I have the configured on different ports for the WAN failover.  i.e. Port 1 for Prod and Port 2 for DR.  Is the exception allowing me to use the same destination from 2 WAN ports. Is best practice to have the wan ports ip on the same interface? 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!