Description
Scope
Solution
It does not change the firmware version or the antivirus or IPS attack definitions.
- Open an SSH to the system and execute the following command:
- A warning will appear.
Do you want to continue? (y/n)
- The system will reboot and will load a basic configuration.
This option will require username and password. In case of a lost admin password, a console cable is required to enter the boot menu during the boot-up process. To access the boot menu, press any key when the message 'Press any key to display configuration menu...' appears. After that, choose option I to enter 'System configuration and information' and option E to reset the system configuration:
This operation will reset the device to factory settings except for a few specific sections related to VDOMs, interfaces, and static route settings. The following is a list of configuration sections that remain unchanged after using the factoryreset2 command:
- system.global.vdom-mode
- system.global.long-vdom-name
- system.virtual-switch
- system.interface
- system.settings
- router.static
- router.static6
Do you want to continue? (y/n) --> This warning will appear after running the command.
Since FortiOS v7.0, it is also now a possible option to keep central management configurations after factory-reset. The command below resets the FortiGate to the factory default, except system.central-management.serial-number/system.central-management.fmg.
execute factoryreset-for-central-management
The option below in all versions:
factoryreset-shutdown <- Reset to factory default and shutdown.
Note: