FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Nishtha_Baria
Article Id 276371
Description This describes how to use the FortiGate CLI Command 'set reboot-upon-config-restore'
Scope FortiGate.
Solution

The above CLI command is used to control whether a FortiGate should automatically reboot after a configuration restore operation. By default, FortiGate devices are configured to reboot after a configuration restore to ensure that the restored configuration takes effect immediately.

 

The primary use case for configuring 'set reboot-upon-config-restoreis to control the reboot behavior after a configuration restore operation. Here are the two primary scenarios:

 

  1.  Enable Automatic Reboot (Default Behavior): In most cases, it is better to have the firewall automatically reboot after a configuration restore. This ensures that any changes in the restored configuration take effect immediately. For example, if a backup configuration is restored to address a critical issue, those changes are better to be applied without manual intervention. This is the default behavior of FortiGates.
  2. Disable Automatic Reboot: There are situations where it is better to restore a previous configuration but not to reboot the unit immediately. Disabling automatic reboot allows the restore configuration without causing immediate downtime. This can be useful when it is necessary to make further adjustments or schedule a controlled reboot at a more convenient time.

 

To enable or disable the 'set reboot-upon-config-restore' option, follow these steps in the FortiGate CLI:

 

config system global
    set reboot-upon-config-restore [enable|disable]<----- Enable/disable automatic reboot upon configuration restore.
end

 

  • When disabling automatic reboot upon configuration restore, it is essential to manually initiate a reboot at an appropriate time to apply the restored configuration fully.
  • Always have a plan in place when making configuration changes or restoring backups, especially in a production environment, to minimize downtime and prevent unexpected disruptions.