Skip to main content
RJ1
Explorer II
Sep 30, 2024 6:57 PM UTC
Solved

synchronise sessions between Fortigate devices in Azure in HA (active-passive)

I have Fortigates in Azure deployed as per below scenario:

 

Active-passive with external and internal Azure load balancer (LB)

 

Can session synchronization happen between Fortigates? If YES how? If NO Why?

 

avinash_v
avinash_vAnswer
Staff
Oct 8, 2024 7:58 AM UTC

This is a known issue for the Azure load balancer. Even though a health probe failed, it will not re-route the existing sessions.
This is by design, intended to offer the administrator the opportunity to gracefully shutdown from the application to avoid any unexpected and sudden termination of ongoing application workflow.

 

https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-FortiGate-creates-a-new-session-on-a/ta-p/327740

 

https://learn.microsoft.com/en-us/answers/questions/1692319/azure-loadbalancer-failover-sessions-not-handed-ov

12 replies

Gallego
Staff
Staff
Sep 30, 2024 8:36 PM UTC

Hi RJ1,

 

Session sync is usually used in auto-scaling deployments or in active-active. You can check more details here https://docs.fortinet.com/document/fortigate-public-cloud/7.6.0/azure-administration-guide/917631/configuring-fgsp-session-sync

Translate
JohnMcdo
Staff
Staff
Sep 30, 2024 8:49 PM UTC

Hi SJ,

 

Yes

 

Session sync is enabled by default when an HA A/P FortiGate pair is deployed using the Azure Markeplace or Fortinet Github Azure templates, https://github.com/fortinet/azure-templates/blob/main/FortiGate/Active-Passive-ELB-ILB/doc/config-provisioning.md

 

In the link above you'll see config sections for FortiGate A and FortiGate B, each FortiGate has a section for config system ha, similar to this


config system ha   set group-name AzureHA   set mode a-p   set hbdev port3 100   set session-pickup enable   set session-pickup-connectionless enable   set ha-mgmt-status enable   config ha-mgmt-interfaces     edit 1       set interface port4       set gateway 172.16.136.193     next   end   set override disable   set priority 255   set unicast-hb enable   set unicas

 Hope this helps.

Translate
RJ1
RJ1Author
Explorer II
Oct 1, 2024 9:57 AM UTC

Thanks for your answer ,when I initiated RDP connection from my machine to one of the server behind Firewall then I can see session on both Firewalls (A/P). When I check session table for both virtual appliances (FW) , I can see how RDP session can be found on both, which means that sessions are being properly sync between both nodes.

Translate
JoerVan
Staff
Staff
Oct 1, 2024 12:12 PM UTC

Hi RJ1,

 

As you are using the Azure Load Balancer (external and internal), make sure to review the behavior when a back-end server (FGT in this case) fails.

 

https://learn.microsoft.com/en-us/azure/load-balancer/components#health-probes

 

Joeri

Translate
avinash_v
Staff
avinash_vAnswer
Staff
Oct 8, 2024 7:58 AM UTC

This is a known issue for the Azure load balancer. Even though a health probe failed, it will not re-route the existing sessions.
This is by design, intended to offer the administrator the opportunity to gracefully shutdown from the application to avoid any unexpected and sudden termination of ongoing application workflow.

 

https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-FortiGate-creates-a-new-session-on-a/ta-p/327740

 

https://learn.microsoft.com/en-us/answers/questions/1692319/azure-loadbalancer-failover-sessions-not-handed-ov

Translate
RJ1
RJ1Author
Explorer II
Oct 8, 2024 8:16 AM UTC

The article (ID- 327740) shared by you explains for Active-Active cluster, does this also applies for Active-Passive also?

Translate
avinash_v
Staff
Staff
Oct 8, 2024 8:28 AM UTC

applies to both, active-active and active-passive

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024