Skip to content

Newark, Delaware

Security

FortiGate high availability: what to validate before launch

A passive firewall is not a tested recovery plan. Check session handling, split-brain prevention, links, upgrades and monitoring.

October 29, 20266 min readStarlink Nexus Security Practice
FortiGate high availability: what to validate before launch

Define what failure means

Before deploying FortiGate high availability (HA), clarify what constitutes a failure in your environment. The term 'failure' is broad: it might refer to a physical appliance going offline, a single interface dropping, a software process crashing, or a misconfiguration causing loss of service. Your HA design must be tailored to the specific risks your organisation is willing to mitigate. For example, if the business can tolerate a brief outage during maintenance but not during a power event, your priorities will differ from those of an organisation requiring always-on connectivity.

Start by mapping out the critical services the FortiGate cluster protects, such as site-to-site VPNs, remote access, or outbound web filtering. Identify which of these must remain available during a failover. Document the expected behaviour for each: should VPN tunnels re-establish automatically, or is a brief drop acceptable? Should NAT state persist, or can connections be re-initiated? Make these expectations explicit in your change management ticket queue, so all stakeholders know what will be tested.

Physical redundancy is non-negotiable for most HA scenarios. This means dual power supplies, separate power circuits, and redundant network paths. Heartbeat links, which carry HA sync and status information, should never traverse the same switch or patch panel as production interfaces. Use dedicated cables and, where possible, separate switches for heartbeat traffic. If management and HA traffic must be separated, configure dedicated VLANs for each, and document the port assignments in your configuration export. Avoid any design where a single switch or power failure could isolate both firewalls simultaneously.

Test more than rebooting the primary

A common pitfall in HA validation is limiting testing to a simple reboot of the primary firewall. This only demonstrates the most basic failover scenario and may leave other failure modes undetected. To build confidence in your FortiGate HA deployment, simulate a range of real-world failures. For each, record the symptoms, the observed failover process, and the impact on user experience.

Begin with link failure: unplug a monitored interface and observe whether the cluster triggers a failover. Next, simulate interface failure by disabling a port on the switch side. Power loss is another critical scenario—disconnect power from the primary unit and confirm the secondary takes over without manual intervention. Finally, test an upgrade rollback: initiate a firmware upgrade, then trigger a rollback to the previous version. This exposes issues with configuration synchronisation and session persistence.

After each test, measure disruption in terms of session drops, authentication prompts, and application timeouts. Compare these to your documented business targets. For example, if the requirement is that VPN sessions must not drop, verify this by monitoring the session table and running live traffic through the tunnels. Check that NAT state and application sessions, such as RDP or VoIP, remain active or recover gracefully. Document the results in your ticket queue for traceability.

Review SNMP, Syslog, and API alerts generated during each event. An HA failover should produce clear logs identifying the old and new primary, the reason for the failover, and whether configuration synchronisation succeeded. If alerts are ambiguous or missing, adjust your monitoring thresholds and log forwarding settings. Avoid designs where failovers are silent or only partially logged, as this will complicate troubleshooting during a real incident.

Validate heartbeat and synchronisation paths

Heartbeat links are the backbone of any FortiGate HA cluster. These links carry synchronisation traffic, state information, and health checks between cluster members. If heartbeat communication fails, both firewalls may assume the primary role, leading to a split-brain condition. This often results in duplicate IP addresses, asymmetric routing, or complete loss of service.

To validate heartbeat resilience, configure at least two dedicated heartbeat interfaces on separate physical paths. Assign each to a different VLAN or switch, and label the cables and switch ports in your documentation. Use a configuration export to record the interface assignments and VLAN IDs. During testing, disconnect one heartbeat link at a time and confirm the cluster remains stable. The HA event log should show a warning for the lost link but no role change if at least one path remains.

Synchronisation failures can be subtle. If configuration changes do not replicate, the secondary firewall may operate with outdated policies or objects after a failover. To test this, make a controlled policy change on the primary and verify it appears on the secondary within the expected interval. Review the synchronisation status in the FortiGate GUI or via the API. If synchronisation lags or fails, investigate for MTU mismatches, VLAN misconfigurations, or overloaded links. Avoid sharing heartbeat paths with production traffic, as congestion can delay sync packets and increase failover times.

Monitor cluster health and alerting

A healthy FortiGate HA cluster should provide clear, actionable alerts for all significant events. This includes failovers, synchronisation errors, interface status changes, and resource thresholds. Without reliable monitoring, silent failures can persist undetected until a crisis occurs.

Configure SNMP traps for HA role changes, heartbeat loss, and synchronisation state. Set up Syslog forwarding to your SIEM or log management platform, using a dedicated alert threshold for HA events. For example, trigger a ticket in your incident queue whenever the cluster changes primary, or when synchronisation fails for more than a defined period. Use the FortiGate API to poll cluster status and expose key metrics to your NOC dashboard.

Test alerting by forcing each failure mode: unplug heartbeat cables, disable interfaces, and simulate configuration drift. Confirm that each event generates a unique alert with enough detail to identify the affected unit, the nature of the failure, and the recommended action. Avoid generic alerts that require manual log inspection to diagnose. Document the alert flow in your monitoring runbook, including escalation paths and response SLAs.

Confirm session and state persistence

Session persistence is a critical aspect of HA. Users expect that ongoing connections—such as SSH, RDP, or VoIP calls—survive a failover with minimal disruption. FortiGate HA synchronises session tables between members, but not all session types behave identically.

Test session persistence by establishing long-lived connections through the cluster, then triggering a failover. Monitor whether sessions drop, reset, or continue uninterrupted. Pay special attention to VPN tunnels: site-to-site and remote access VPNs may require re-authentication or tunnel renegotiation, depending on the configuration. For NAT, verify that translated sessions do not lose state, causing application failures or timeouts.

Use packet captures and session table exports to confirm that state information replicates correctly. If certain session types consistently fail to persist, review the HA configuration for session sync exclusions or mismatches. Document any exceptions in your change management queue, and communicate them to application owners. Avoid assuming that all traffic will behave the same—test each critical application individually.

Plan and test configuration synchronisation

Configuration synchronisation is the process by which changes made on the primary firewall propagate to the secondary. This includes firewall policies, objects, routing, and VPN settings. Incomplete or delayed synchronisation can result in inconsistent behaviour after a failover.

To validate synchronisation, make controlled changes to key configuration elements—such as adding a new firewall policy or modifying a VPN tunnel. Use the configuration export feature to compare the running config on both units. Monitor the synchronisation status in the GUI or via the API. If the secondary lags behind, investigate for connectivity issues, resource constraints, or firmware mismatches.

Test synchronisation during periods of high load, such as during a backup job or large file transfer. This exposes issues with bandwidth or CPU contention on the heartbeat links. If synchronisation fails under load, consider increasing link capacity or scheduling large transfers outside of change windows. Document synchronisation status in your ticket queue, and set up alerts for sync failures.

Avoid making configuration changes directly on the secondary unit, as this can cause split-brain or overwrite the primary's settings. Always use the designated management interface and follow your change control process.

Document and validate failback procedures

Failback—the process of returning the primary role to the original unit after a failover—is often overlooked. An unplanned failover may leave the cluster running on the secondary for extended periods. If the original primary is repaired or upgraded, you must have a documented process for restoring normal operation.

Create a step-by-step failback procedure in your change management ticket queue. This should include verifying that the original primary is healthy, synchronised, and running the correct firmware version. Schedule a change window for the failback, and notify stakeholders of the expected impact. Use the FortiGate GUI or CLI to force a role change, and monitor session and state persistence during the transition.

Test the failback process under controlled conditions. Simulate a failure, allow the secondary to take over, then restore the primary and initiate failback. Observe whether sessions persist, configuration remains synchronised, and alerts are generated. If issues arise, document them and update your procedure. Avoid ad-hoc failbacks without a tested plan, as this increases the risk of downtime or data loss.

Prepare for firmware upgrades and rollback

Firmware upgrades are a routine part of firewall maintenance, but they introduce risk in HA clusters. An upgrade can trigger failover, configuration drift, or session loss if not carefully managed. Plan upgrades in advance, using a dedicated change window and a documented rollback procedure.

Before upgrading, export the current configuration from both units and verify synchronisation status. Schedule a backup job to capture system state. Upgrade the secondary unit first, allowing it to rejoin the cluster and synchronise with the primary. Monitor the cluster health and session persistence during the process. Once the secondary is stable, upgrade the primary and observe the failover event.

If the upgrade introduces issues—such as failed synchronisation, dropped sessions, or degraded performance—initiate the rollback procedure. Restore the previous firmware version and configuration export, and verify that both units return to a healthy state. Document the upgrade and rollback process in your change management ticket queue, including any deviations from expected behaviour. Avoid upgrading both units simultaneously, as this eliminates redundancy and increases the risk of outage.

Topics

#CyberSecurity

Starlink Nexus Security practice

If this reflects a problem you are dealing with, we can review your environment and tell you what we would change first - including if the answer is nothing.

Start a conversation

Next step

Let's scope it properly.

A 30-minute call is usually enough to tell whether we are the right fit. No pitch deck, no pressure.