• Contact
  • About Me
  • Privacy Policy
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
DefenceDev
No Result
View All Result
ADVERTISEMENT
Home Network Tutorials FortiGate

How to Reset a FortiGate Firewall to Factory Settings

neo by neo
May 27, 2025
in FortiGate
0
How to Reset a FortiGate Firewall to Factory Settings

How to Reset a FortiGate Firewall to Factory Settings

0
SHARES
328
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Reset a FortiGate Firewall to Factory Settings

A FortiGate firewall plays a crucial role in securing your network, but there are situations where you might need to reset it to factory settings. Whether you’re troubleshooting a critical issue, repurposing the device, or recovering from a misconfiguration, resetting the firewall restores it to its original state.

This guide covers the different methods to reset a FortiGate firewall, using both the Web GUI and CLI.

Why Reset a FortiGate Firewall?

There are several reasons why you may need to perform a factory reset on your FortiGate device:

  1. Misconfiguration Issues – If incorrect settings lock you out or cause connectivity problems, a reset can provide a fresh start.
  2. Forgotten Password – If you lose access to the admin account, a reset allows you to regain control.
  3. Device Repurposing – If you’re transferring the firewall to another network or user, resetting removes old configurations.
  4. Security Concerns – In case of a security breach, restoring the factory settings ensures a clean, safe environment.

Method and Steps to Reset a FortiGate Firewall

Pre-Reset Considerations

  1. Backup Your Configuration – Resetting your FortiGate firewall will erase all settings, including firewall policies, VPN configurations, and user accounts. If you need to restore settings later, create a backup. To do this, navigate to System > Maintenance > Backup & Restore and save a copy of your current configuration.
  2. Check Device Access – If you still have access to the Web GUI or CLI, resetting the device will be easier. However, if you’re locked out, you may need to use the reset button (if available) or reload the firmware.
  3. Understand the Consequences – A factory reset will remove all custom configurations and revert the device to default settings. The default IP address will be 192.168.1.99/24, and the default admin password will be empty (no password required).
  4. Network Downtime – The reset process will cause temporary network downtime. Plan accordingly if your FortiGate is actively managing critical network traffic.

Reset Methods

There are three main ways to reset a FortiGate firewall:

  1. Using the Web GUI – Ideal if you still have access to the firewall’s management interface.
  2. Using the CLI (Command Line Interface) – Useful when Web GUI access is unavailable or if you prefer a command-based reset.
  3. Reset Using the Reset Button – For Certain FortiGateModels

Method 1: Reset via Web GUI CLI Console

If you have access to the FortiGate Web GUI, follow these steps:

  1. Log in to the FortiGate Web Interface.
  2. Navigate to CLI Console.
  3. Type execute factoryreset
  4. Confirm the reset and wait for the device to reboot.
FortiGate Reset from CLI
FortiGate Reset from CLI

Note: This method erases all configurations and resets the admin password to default.

Method 2: Reset via CLI (Command Line Interface)

For users with CLI access, the reset process is straightforward:

ADVERTISEMENT

Step 1. Connect to FortiGate using SSH or via the console port.

Step 2. Log in with your admin credentials.

ADVERTISEMENT

Step 3. Run the following command:

execute factoryreset

Step 4. Confirm the action when prompted.

Step 5. The device will reboot and restore factory settings.

Method 3: Reset Using the Reset Button (For Certain Models)

Some FortiGate models have a physical reset button. If your device includes this feature:

  1. Power off the FortiGate unit.
  2. Press and hold the RESET button.
  3. Power on the device while continuing to hold the button for 10–15 seconds.
  4. Release the button when the status LEDs indicate the reset process.

Conclusion

Resetting a FortiGate firewall to factory settings is useful for troubleshooting, security, or repurposing the device. Whether using the Web GUI, CLI, or reset button, always ensure you have a backup of important configurations before proceeding.

ADVERTISEMENT

By following these steps, you can restore your FortiGate to a clean state and reconfigure it as needed.

If you are intereseted in my other Fortinet FortiGate topics please check the following link.

About The Author

neo

See author's posts

Tags: fortigate
ADVERTISEMENT
Previous Post

Fortinet FortiGate Policy Implementation

Next Post

FortiGate Antivirus: Configuration, Best Practices, and Troubleshooting

neo

neo

Next Post
FortiGate Antivirus: Configuration, Best Practices, and Troubleshooting

FortiGate Antivirus: Configuration, Best Practices, and Troubleshooting

Follow Us

  • Trending
  • Comments
  • Latest
MikroTik: Export Configuration in Text File

MikroTik: Export Configuration in Text File

Fortinet FortiGate: Static Route Configuration via GUI and CLI

Fortinet FortiGate: Static Route Configuration via GUI and CLI

Immich: Installation on Ubuntu 22.04

Immich: Installation on Ubuntu 22.04

Fortinet FortiGate Upgrade Path Tool

Fortinet FortiGate Upgrade Path Tool

NextCloud: Port Forwarding - Essential Ports for Smooth Functionality

NextCloud: Port Forwarding – Essential Ports for Smooth Functionality and Remote Access

Organizing and Managing Photos with Immich: Features I Use

Organizing and Managing Photos with Immich: Features I Use

Install Ubuntu 22.04 on Oracle VM Virtual Box

Install Ubuntu 22.04 on Oracle VM Virtual Box

Linux Directories: cd (Change Directory), pwd (Print Working Directory), mkdir (Make Directory)

Linux Directories: cd (Change Directory), pwd (Print Working Directory), mkdir (Make Directory)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Recent News

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

ADVERTISEMENT

DefenceDev Tutorials

defencedev Logo

Whether you’re just starting or looking to expand your skills, I hope you find useful information and engaging discussions here. Let me take you through my journey and the goals behind this space!

Follow Us

Browse by Category

  • Blog
  • Cloud
    • Private
  • Linux Tutorials
    • Bash Scripting Tutorials
    • Commands
    • Networking
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Solutions
    • Docker
  • Video Tutorials
    • MikroTik Videos

Recent News

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

  • Site Map
  • Privacy Policy
  • Facebook Page
  • Disclaimer
  • Contact
  • About Me

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos

© 2025 defencedev.com - All rights reserved.