SDWAN Tunnel on Azure FortiGate active - standby using load balancer

sidhrane 146 Reputation points
2026-08-26T12:48:45.93+00:00

Hello Everyone,

I am going to set up SDWAN tunnels on Azure FortiGate firewall in active/passive mode with ILB/ELB. Tunnels will be formed between on-prem and Azure fortigate firewalls over express route and internet. I want to understand

  1. If on-prem initiate SDWAN tunnels, will it be configured on frontend IP of ILB and ELB instead of FortiGate interface IP?
  2. Also if SDWAN tunnels initiate from FortiGate firewalls with on-prem, will it take FortiGate interface IP or ILB/ELB front end IP?
  3. Is there any documentation or architecture diagram can help to understand SDWAN set up with FortiGate azure firewalls over express route and internet
Azure Load Balancer
Azure Load Balancer

An Azure service that delivers high availability and network performance to applications.

0 comments No comments

Answer accepted by question author
Ahamed Musthafa Careem 671 Reputation points
2026-08-26T15:47:11.16+00:00

Dear @sidhrane

When on‑prem initiates the SD‑WAN/IPsec tunnels to Azure, you should point the remote gateway on the on‑prem FortiGate to the load balancer frontend IPs, not the FortiGate VM NIC IPs:

Internet tunnel: remote gateway = ELB public frontend IP

ExpressRoute (private) tunnel: remote gateway = ILB private frontend IP

This way, traffic always hits the active FortiGate via the load balancer, and failover is handled by Azure LB without changing on‑prem config.

When the Azure FortiGate initiates the tunnels to on‑prem, the source IP seen by on‑prem will be the FortiGate interface IP bound to that tunnel. The ILB/ELB frontend IPs are only used for inbound connections to the active FortiGate; they are not used as the tunnel source when the FortiGate itself initiates.

So:

  • On‑prem to Azure: use LB frontend IPs as remote gateway.
  • Azure to on‑prem: FortiGate uses its own interface IP; on‑prem peers to that IP.When on‑prem initiates the SD‑WAN/IPsec tunnels to Azure, you should point the remote gateway on the on‑prem FortiGate to the load balancer frontend IPs, not the FortiGate VM NIC IPs:
    • Internet tunnel: remote gateway = ELB public frontend IP
    • ExpressRoute (private) tunnel: remote gateway = ILB private frontend IP

This way, traffic always hits the active FortiGate via the load balancer, and failover is handled by Azure LB without changing on‑prem config.

When the Azure FortiGate initiates the tunnels to on‑prem, the source IP seen by on‑prem will be the FortiGate interface IP bound to that tunnel. The ILB/ELB frontend IPs are only used for inbound connections to the active FortiGate; they are not used as the tunnel source when the FortiGate itself initiates.

So:

  • On‑prem to Azure: use LB frontend IPs as remote gateway.
  • Azure to on‑prem: FortiGate uses its own interface IP; on‑prem peers to that IP.

For diagrams and step‑by‑step, see:

Fortinet community: https://community.fortinet.com/t5/FortiGate-Azure-Technical/SD-WAN-Connecting-Azure-ExpressRoute-and-VPN-tunnel-from-the/ba-p/370030

Fortinet Azure templates (Active/Passive ELB+ILB): https://github.com/fortinet/azure-templates/blob/main/FortiGate/Active-Passive-ELB-ILB/README.md

Azure SD‑WAN architecture guide: https://learn.microsoft.com/azure/architecture/networking/guide/sd-wan-integration-hub-spoke-network-topologies

Help make this community better for everyone: if this answer resolved your issue, please accept it or leave an upvote. If not, share more details in a comment so we can continue the discussion and find the right solution.

Was this answer helpful?

3 people found this answer helpful.

Answer accepted by question author
Jose Benjamin Solis Nolasco 12,201 Reputation points Volunteer Moderator
2026-08-26T16:00:18.0966667+00:00

Welcome to Microsoft Q&A!

Hello @sidhrane I hope you are doing well,

Here is a direct breakdown of how IP termination works for Active/Passive FortiGates behind Azure Load Balancers:

  • On-Premises Initiating Tunnels (Inbound): Point the on-prem remote gateway directly to the Azure Load Balancer Frontend IPs (ELB Public IP for Internet, ILB Private IP for ExpressRoute). The LB probes ensure traffic only routes to the active FortiGate, providing automatic failover.
  • Azure FortiGate Initiating Tunnels (Outbound): Traffic will source from the FortiGate’s physical NIC IP, not the LB Frontend IP, because Azure Load Balancers only forward inbound connections.

Recommended Best Practice:

To prevent routing asymmetry and peering conflicts during failovers, configure the Azure FortiGates as responders by enabling set passive-mode enable under the IPsec Phase 1 interface. Additionally, enable Floating IP (Direct Server Return) on your Azure Load Balancer load-balancing rules for UDP 500/4500 and HA ports.

References:

Help make this community better for everyone: if this answer resolved your issue, please accept it or leave an upvote. If not, share more details in a comment so we can continue the discussion and find the right solution.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Oldest

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.