• Contact
  • About Me
  • Privacy Policy
  • Disclaimer
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • 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
    • Bash Scripts
  • 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
775
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:

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

ADVERTISEMENT
ADVERTISEMENT

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.

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

Related Posts

Home Lab with Fortinet FortiGate 60D Firewall
FortiGate

Home Lab with Fortinet FortiGate 60D Firewall

My Ultimate FortiGate Command Cheat Sheet
FortiGate

My Ultimate FortiGate Command Cheat Sheet

Setting Up IPS (Intrusion Detection System) Profiles on FortiGate to Detect Web Attacks
FortiGate

Setting Up IPS (Intrusion Detection System) Profiles on FortiGate to Detect Web Attacks

Protect a Self-Hosted Application from Brute Force Attacks with FortiGate
FortiGate

How to Protect a Self-Hosted Application from Brute Force Attacks with FortiGate

FortiGate DDoS Protection: Configure DoS Policies to Secure Self-Hosted Applications
FortiGate

FortiGate DDoS Protection: Configure DoS Policies to Secure Self-Hosted Applications

Fortinet FortiGate Site-to-Site IPsec VPN Troubleshooting
FortiGate

Fortinet FortiGate Site-to-Site IPsec VPN Troubleshooting

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

FortiGate Antivirus: Configuration, Best Practices, and Troubleshooting

Recommended

Nextcloud: Maintenance with OCC Command with Practical Examples

Nextcloud: Maintenance with OCC Command with Practical Examples

Fortinet FortiGate: Equal Cost Multipath Routing (ECMP) Configuration

Fortinet FortiGate: Equal Cost Multipath Routing (ECMP) Configuration

MikroTik OpenVPN: Sound Alert When VPN Tunnel Fails

MikroTik OpenVPN: Sound Alert When VPN Tunnel Fails

MikroTik: OpenVPN Client Failover Script

MikroTik: OpenVPN Client Failover Script

GitHub: How to Add a Script or a Folder to Your Repository

GitHub: How to Add a Script or a Folder to Your Repository

Categories

  • 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
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

Recent News

MikroTik OpenVPN: Sound Alert When VPN Tunnel Fails

MikroTik OpenVPN: Sound Alert When VPN Tunnel Fails

MikroTik: OpenVPN Client Failover Script

MikroTik: OpenVPN Client Failover Script

  • 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
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos

© 2025 defencedev.com - All rights reserved.