Skip to content

Newark, Delaware

Security

A safe FortiGate firmware upgrade runbook

Confirm the target and dependencies Before any FortiGate firmware upgrade, confirm the exact model number and hardware revision of the firewall. This is not always obvious from the device…

October 21, 20266 min readStarlink Nexus Network Practice
A safe FortiGate firmware upgrade runbook

Confirm the target and dependencies

Before any FortiGate firmware upgrade, confirm the exact model number and hardware revision of the firewall. This is not always obvious from the device label or inventory system, so log in and run get system status to see the current firmware, device serial, and model. Compare this against your asset register and any previous upgrade records. If the device is managed by FortiManager or logs to FortiAnalyzer, check their firmware versions as well. These systems must be compatible with the target firmware, or you risk breaking centralised management or logging. If the FortiGate is in a high availability (HA) cluster, verify that all nodes are running the same build and that the cluster is healthy. Use the diagnose sys ha status command to confirm synchronisation and failover status. Export the running configuration from each node, not just the primary, as subtle differences can exist.

Review the Fortinet release notes for the target firmware. Pay attention to hardware compatibility lists, configuration changes, and known limitations. Some firmware builds drop support for older modules or change the behaviour of features such as SD-WAN or SSL inspection. Note any changes to default settings or deprecated commands. Do not plan to upgrade FortiGate, FortiManager, and FortiAnalyzer in a single window unless you have a tested rollback plan for each. Upgrading multiple components together without a hold point can create a situation where a rollback is impossible without data loss or extended downtime. Good practice is to schedule upgrades in a staggered sequence, validating each stage before proceeding. Avoid the temptation to upgrade just because a new version is available; only move when you have a clear operational or security driver.

Prepare the rollback

A reliable rollback plan is essential before starting the upgrade. First, create a full backup of the FortiGate configuration using both the web interface and the CLI (execute backup config). Store this backup in two locations: one locally on a secured workstation, and another on a network share outside the firewall. If possible, export the configuration in both encrypted and plain text formats. Record the current firmware image and its checksum. Download a copy of the existing firmware from the Fortinet support portal and verify its hash matches the running version. This avoids confusion if you need to revert and cannot access the internet during an incident.

Console access is critical for recovery. Test your serial or USB console cable and confirm you can reach the bootloader menu. Identify the username and password with full administrative privileges that can be used for recovery, and ensure these credentials are available to the upgrade team. Do not rely solely on remote access methods such as SSH or HTTPS, as these may be unavailable if the upgrade fails or the network configuration changes. If using HA, confirm that you can access the console of each node independently. Document the rollback steps, including how to interrupt the boot process and restore the previous firmware and configuration.

During the upgrade window, monitor key services: routing protocols (such as OSPF or BGP), VPN tunnels (both IPsec and SSL), internet access, and any critical business applications that traverse the firewall. Set up monitoring jobs or alerts to notify the upgrade team if connectivity drops or if specific services fail. The change window must be long enough to allow for a full rollback, not just a reboot. A successful reboot does not guarantee all services are functioning; some failures only appear under load or after a period of operation. Do not assume a rollback is unnecessary just because the device is reachable—test critical paths and be prepared to revert if issues arise.

Assess HA synchronisation and failover readiness

If the FortiGate is part of an HA cluster, synchronisation and failover readiness must be checked before and after the upgrade. Use the diagnose sys ha status and get system ha status commands to confirm that all nodes are in sync, with no split-brain or out-of-sync errors. Check the HA heartbeat interfaces for packet loss or errors using diagnose hardware deviceinfo nic <interface>. Review the cluster's failover history for recent events that might indicate instability.

Before the upgrade, simulate a failover if possible. Trigger a manual failover using execute ha manage <slave-id> and ensure that services continue without interruption. Monitor the ticket queue for any recent incidents related to HA, such as unexpected failovers or sync failures. Document the current HA priority, monitored interfaces, and session pickup settings. If using session pickup, verify that session tables are synchronised across nodes. During the upgrade, upgrade the secondary node first (if supported), allow it to rejoin the cluster, and then upgrade the primary. This minimises downtime and allows for a quick rollback if the new firmware causes issues.

After the upgrade, confirm that the cluster returns to a healthy state. Check that the HA sync status is "in sync" and that failover works as expected. Monitor the syslog or alerting system for HA-related errors, such as "HA heartbeat lost" or "cluster member down". If the cluster fails to synchronise, investigate configuration drift or firmware incompatibility. Do not proceed with production traffic until HA is fully operational. A common failure mode is asymmetric routing or session loss after failover, which can be detected by comparing session tables and application logs. Good practice is to retain upgrade and validation records in your change management system for future audits.

Validate VPN and remote access functionality

VPNs are often the most business-critical services on a FortiGate. Before the upgrade, list all configured IPsec and SSL VPNs, including site-to-site and remote access tunnels. Export the VPN configuration and note any custom settings, such as phase 1/2 proposals, authentication methods, or split tunnelling rules. If possible, schedule a maintenance window when VPN usage is low, and inform users of potential disruption.

After the reboot, immediately test all VPN tunnels. For IPsec, check the status with diagnose vpn tunnel list and confirm that phase 1 and phase 2 negotiations complete successfully. For SSL VPN, attempt logins with test accounts and verify portal access. Monitor the VPN ticket queue for new incidents, such as users unable to connect or experiencing degraded performance. Common failure modes include mismatched encryption settings, certificate errors, or changes to user group membership. If the firmware introduces new default proposals or disables legacy algorithms, some tunnels may fail to establish.

Check the logs for authentication failures and tunnel renegotiations. If using certificates, verify their validity and that the firewall's clock is correct. Test access to internal resources through the VPN, not just tunnel establishment. If split tunnelling is used, confirm that only authorised subnets are accessible. Do not assume that a green status in the GUI means all is well; some failures only appear under real user load. Document the results of each test and retain screenshots or log exports as evidence for audit and support purposes.

Monitor routing, DNS, and internet access

Routing and DNS are foundational services that can be disrupted by a firmware upgrade. Before the change, export the current routing table, static routes, and dynamic routing protocol configurations. Use get router info routing-table all and show router ospf or show router bgp as appropriate. Note any route maps, redistribution rules, or policy-based routing entries. For DNS, record the configured servers and any custom DNS filters or overrides.

During the upgrade window, set up monitoring for key routes and DNS resolution. This can be done with continuous pings to external hosts, traceroutes, or synthetic transactions from a monitoring system. After the reboot, verify that all expected routes are present and that dynamic routing neighbours re-establish. Check the logs for route flaps or protocol errors. For DNS, test resolution of internal and external domains. If the firewall performs DNS filtering or inspection, confirm that these policies are still enforced.

Common failures after an upgrade include missing static routes, broken dynamic routing adjacencies, or DNS server settings reverting to defaults. These can cause partial outages that are not immediately obvious. For example, a site-to-site VPN may come up, but traffic fails to route due to a missing static route. Or, DNS filtering may stop working, allowing unauthorised domains to resolve. Compare interface counters and policy hit counts before and after the upgrade to detect unexpected drops in traffic. Retain logs and configuration exports as evidence in the ticket queue for any post-upgrade troubleshooting.

Validate security profiles and logging

Security profiles—such as antivirus, web filtering, application control, and intrusion prevention—are often updated or changed between firmware versions. Before the upgrade, export the current security profile settings and note any custom signatures or exceptions. Review the release notes for changes to default behaviour, new features, or deprecated options. For example, some firmware versions introduce stricter SSL inspection defaults or change the handling of certificate errors.

After the reboot, test the enforcement of each security profile. Use test URLs for web filtering, known malware samples for antivirus (in a controlled environment), and application traffic for application control. Check the logs for blocked events, detections, and alerts. If using custom signatures, verify that they are still present and active. Monitor the security ticket queue for new incidents, such as false positives or missed detections. Compare policy hit counts and blocked event rates before and after the upgrade to identify any unexpected changes.

Logging is critical for both operational visibility and compliance. Confirm that logs are being sent to the correct destinations, such as FortiAnalyzer, syslog servers, or SIEM platforms. Check for log gaps, format changes, or dropped messages. If the firmware changes the logging format or introduces new log fields, update your parsing rules accordingly. Retain upgrade and validation records, including log exports, for audit and support purposes. Do not assume that logging is working just because the device is up; test log delivery end-to-end.

Review certificate validity and authentication systems

Certificates are used for SSL VPN, HTTPS management, and sometimes for IPsec tunnels or captive portal authentication. Before the upgrade, export all installed certificates and note their expiry dates, issuers, and usage. Check for any certificates that are self-signed or issued by an internal CA, as these may require special handling. If the firewall uses external authentication systems such as LDAP, RADIUS, or SAML, export the configuration and test logins with valid and invalid credentials.

After the reboot, verify that all certificates are still present and valid. Attempt to access the management interface over HTTPS and check for browser warnings. For SSL VPN, test that the portal presents the correct certificate and that users do not receive trust errors. For IPsec tunnels using certificate authentication, confirm that negotiations complete successfully. If the firmware changes the default certificate store or disables weak algorithms, some certificates may become invalid.

Authentication systems can be disrupted by firmware changes to LDAP schemas, RADIUS attributes, or SAML metadata. Test logins for each authentication method and monitor the authentication ticket queue for failures. Common issues include case sensitivity changes, group membership mismatches, or time synchronisation errors. Document any changes to certificate or authentication settings and retain exports for audit. Do not proceed with production traffic until all authentication paths are tested and confirmed operational.

Document and retain upgrade artefacts

Thorough documentation is the final step in a safe firmware upgrade. Retain all configuration exports, firmware images, checksums, and validation records in a central repository. Attach these artefacts to the change ticket in your ITSM or ticket queue system. Include screenshots of key status pages, log exports showing successful service checks, and any troubleshooting notes from the upgrade window.

Update your asset register with the new firmware version, upgrade date, and any changes made to configuration or topology. If the upgrade required a rollback or encountered issues, document the root cause and resolution steps. Share lessons learned with the team and update your runbook for future upgrades. Good practice is to schedule a follow-up review after a set period to check for delayed failures or user-reported issues. Retaining detailed artefacts not only supports audit and compliance requirements but also accelerates troubleshooting if problems arise in the future.

Do not discard artefacts once the upgrade appears successful. Some failures, such as memory leaks or performance degradation, only appear after extended operation. Having a complete record of the upgrade process and validation steps enables rapid diagnosis and recovery. Attach all relevant artefacts to the change ticket and ensure they are accessible to both operations and security teams.

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.