Secure Network Best Practices Library · Firewalls and VPN

Firewall configuration backup and restore guide

The configuration of a firewall holds the rules, address translation, VPN tunnels, objects, routes, certificates and security settings that keep the business connected. Replacing the hardware takes a day. Rebuilding the configuration from memory takes far longer. This guide covers what to back up, how to protect it, and how to prove a restore works before you need it.

Prefer to have it done for you? IT Perfection provides firewall installation service for companies in Irvine, Orange County and Los Angeles County.

Ali Hassani, CISSP and Certified CISO, IT PerfectionWritten by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026

Network engineer with a laptop beside a server rack
1 · Back upExports are taken on a schedule and after every change, off the device.

Secure Network Best Practices Library › Firewalls and VPN › Firewall backup and restore

What it isA firewall configuration backup is an export of everything that was configured on the device. A restore plan is the written procedure, the hardware and the people needed to turn that file back into a working firewall.
Where it livesStored off the firewall: a backup server, document system or the vendor cloud
Works onSteps shown for FortiGate, SonicWall, Cisco Meraki and Cisco IOS
Cost and timeNo licence needed; a spare unit or a support contract with hardware replacement
Risk if missingDays offlineWithout a tested backup, a failed firewall means rebuilding every rule and tunnel by hand

Why it matters

Treat firewall recovery as a business continuity control

When a firewall fails, the office has no internet, no VPN, no site-to-site links and often no phones. How long that lasts depends on two things: how quickly replacement hardware arrives, and how quickly it can be configured.

The second is entirely in your hands. With a current backup and a practised procedure, a replacement unit is working within an hour of being unpacked. Without one, someone has to remember or rediscover every rule, forwarding entry, VPN key and address object, usually under pressure and with the business stopped.

Backups also matter for ordinary mistakes. A change that breaks something is undone in minutes if the configuration from before the change is at hand.

Scope

What a complete backup set contains

ItemWhyNotes
Configuration exportEverything configured on the firewallEncrypted; named with device and date
The password or key for the backupAn encrypted file is useless without itIn the password manager, not beside the file
Firmware image of the matching versionA backup usually restores only onto the same or a compatible versionKeep the image; vendors withdraw old ones
Licence and registration detailsNeeded to activate services on a replacementSerial numbers, account, contract number
Certificates and private keysVPN and inspection depend on themOften inside the export; confirm
VPN shared keys and peer contactsThe other end may need to actIn the password manager
Network diagram and provider detailsFor whoever does the restoreCircuit numbers, public addresses, support phone numbers
The restore procedureSo it does not depend on one personWritten, dated, tested

For a pair of firewalls in high availability, back up after confirming the pair is in sync, and record how to rebuild the pair. For firewalls managed centrally, back up the management platform as well; see FortiManager and FortiAnalyzer and Panorama.

Secure storage

A backup file is a sensitive document

A firewall configuration contains the layout of your network, every rule, the names of administrators and, depending on the vendor, password hashes, VPN keys and certificates. Anyone who obtains it knows exactly how the defences are arranged.

  • Encrypt the export. Fortinet advises enabling encryption when backing up, storing the file securely and deleting old backups.
  • Store it off the firewall, in a location with limited access. Not in a shared folder everyone can read, and not only on the laptop of one administrator.
  • Keep the password separately. In the password manager, available to at least two people.
  • Keep versions, and remove old ones on a schedule. Enough history to go back before a bad change; not ten years of files.
  • Redact before sharing. When a configuration is sent to a vendor for support, mask passwords and keys first.

Before you start

What to have ready

  • An inventory of firewalls and management platforms. Model, serial number, firmware version, site.
  • A storage location. With access limited to the people who do restores.
  • A decision on frequency. After every change, and on a schedule so nothing is missed.
  • A recovery target. How long the office can be without the firewall decides whether a spare unit is kept on site.
  • The support contract terms. How fast replacement hardware arrives.

Step by step

Set up backup and restore in six steps

  1. Inventory the platforms

    Every firewall and anything that manages firewalls.

  2. Define the rules

    When backups are taken, where they go, how they are named, who can read them, how long they are kept.

  3. Export and protect

    Take the first encrypted export of each device. Automate the schedule where the platform allows.

  4. Document the restore steps

    From unboxing a replacement to verifying VPN tunnels, in order, with the location of every item needed.

  5. Test the recovery

    Restore onto a spare, a lab unit or a virtual instance of the same family. Time it. Fix the procedure where reality differed.

  6. Review the evidence

    Once a quarter, confirm recent backups exist for every device, open one to check it is readable, and note the date of the last restore test.

# Outline; confirm against the FortiOS CLI reference for your version
# Encrypted backup to an SFTP or TFTP server
execute backup config sftp fgt-edge-2026-11-22.conf 10.10.50.20 backupuser
# The graphical interface offers the same under the administrator menu,
# with an option to encrypt the file with a password

Example values. Replace names, ports, addresses and VLAN numbers with your own. Commands and menu names change between software versions; confirm them against the current documentation of the vendor before you apply them.

A backup taken only before changes misses the changes made in a hurry. Keep the scheduled backup as well. The configuration you most need is often the one from just after an urgent change nobody had time to export.

Recommended values

The settings at a glance

SettingRecommended valueWhy
FrequencyAfter every change, plus weekly or daily on a scheduleNothing is missed.
LocationOff the firewall, limited access, and a second copy off site or in the cloudSurvives the same event that takes the firewall.
EncryptionOn, password in the password managerThe file reveals the defences.
NamingDevice, date and firmware versionThe right file is found under pressure.
Versions keptSeveral weeks to monthsCovers a bad change found late.
Firmware imageKept with the backupRestores need a matching version.
Restore testAt least yearly, and after a major firmware changeProves the set is complete.
Spare hardwareOn site where an outage of a day is too longRemoves the shipping delay.
ProcedureWritten, tested, known to two peopleDoes not depend on one person.

Check that it works

Confirm you can recover

  • A backup from the last week exists for every firewall. And one from after the most recent change.
  • The file opens with the stored password. Try it.
  • The matching firmware image is with it. Check the version in the file name.
  • A restore was completed in the last year. With the date and the time it took on record.
  • After the test restore, rules, VPN tunnels and services worked. Not only that the file loaded.
  • Two people know where everything is. Ask the second person to find it without help.

Common gaps

Common firewall backup and restore gaps

GapWhat happensFix
Untested backupsThe file is corrupt, incomplete or for the wrong versionTest a restore yearly.
Unprotected secretsA readable configuration file in a shared folderEncrypt; limit access.
Missing exports after changesThe backup is months behind the deviceExport after every change; schedule as well.
High availability mismatchThe pair was out of sync when backed upConfirm sync; document the rebuild.
No replacement planA file, and nothing to restore it ontoSpare unit or a fast-replacement contract.
Password lostAn encrypted backup nobody can openPassword manager, two people.
Only on the firewall itselfLost with the deviceStore off the device.
Poor evidence trailNobody can show when backups or tests happenedKeep a simple log.

Sources read Nov 22, 2026: Fortinet, FortiGate Best Practices: Hardening; SonicWall, Best practices for administrator managing SonicWall Firewall Appliances; NSA, Network Infrastructure Security Guide.

Have us do it

Prefer to hand this off?

Backup and a tested restore procedure are part of every firewall we install. We set the schedule and storage, encrypt the exports, write the restore steps for your model, run a test restore and record the result. You receive a written scope and a written quote before any work starts.

Ali Hassani, CISSP and Certified CISO, IT Perfection

Who does the work

Written by Ali Hassani, CISSP, C|CISO

Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.

This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.

ISC2 CISSP badgeEC-Council Certified CISO (C|CISO) badgeCisco CCNP Routing and Switching badgeMCSE: Server Infrastructure badgeMicrosoft MCSE badgeMCSA: Security badgeCisco CCNA Cybersecurity badgeMCITP badge

FAQ

Firewall backup and restore: common questions

How often should a firewall configuration be backed up?

After every change, and on a regular schedule such as weekly so that nothing is missed. Keep the copies off the firewall.

What does a firewall backup contain?

Rules, address translation, objects, VPN settings, routes, administrator accounts and security settings. Depending on the vendor it also holds password hashes, keys and certificates, which is why it must be protected.

Can I restore a backup to a different firewall model?

Usually only within the same model family and a compatible firmware version. Moving to a different model or vendor is a migration, not a restore.

Do cloud-managed firewalls need backups?

The configuration is held by the vendor cloud, so a replacement device picks it up. You still need protected dashboard accounts and your own record of the design.

How do I test a firewall restore?

Load the backup onto a spare, lab or virtual unit of the same family with matching firmware, then check that rules, VPN tunnels and services behave as expected. Record how long it took.

Can IT Perfection do this for us?

Yes. It is part of our firewall installation service for companies in Irvine, Orange County and Los Angeles County. Call 949-777-5567 or use the contact page to request a quote.

Need this done for your business?

IT Perfection plans, installs and supports this for companies in Irvine and Orange County

The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.

Network design and installation

Firewall, switches, VLANs and Wi-Fi planned, installed and documented.

View service

Firewall installation

New or replacement firewalls with clean rules and VPN with MFA.

View service

Network troubleshooting

Slow network, drops, Wi-Fi, VPN, DNS and DHCP problems traced and fixed.

View service