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.
Written by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026



Secure Network Best Practices Library › Firewalls and VPN › Firewall backup and restore
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
| Item | Why | Notes |
|---|---|---|
| Configuration export | Everything configured on the firewall | Encrypted; named with device and date |
| The password or key for the backup | An encrypted file is useless without it | In the password manager, not beside the file |
| Firmware image of the matching version | A backup usually restores only onto the same or a compatible version | Keep the image; vendors withdraw old ones |
| Licence and registration details | Needed to activate services on a replacement | Serial numbers, account, contract number |
| Certificates and private keys | VPN and inspection depend on them | Often inside the export; confirm |
| VPN shared keys and peer contacts | The other end may need to act | In the password manager |
| Network diagram and provider details | For whoever does the restore | Circuit numbers, public addresses, support phone numbers |
| The restore procedure | So it does not depend on one person | Written, 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
Inventory the platforms
Every firewall and anything that manages firewalls.
Define the rules
When backups are taken, where they go, how they are named, who can read them, how long they are kept.
Export and protect
Take the first encrypted export of each device. Automate the schedule where the platform allows.
Document the restore steps
From unboxing a replacement to verifying VPN tunnels, in order, with the location of every item needed.
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.
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
- SonicWall advises taking a backup of the configuration before making changes.
- Export the settings file from the firmware and settings page and store it off the firewall.
- SonicOS 6.5 and later can also create a cloud backup of the settings file.
- Keep the firmware image that matches each settings file.
- The configuration lives in the Meraki cloud, not on the device. A replacement MX added to the same network receives the configuration automatically.
- What needs protecting is the dashboard account, and a record of the design: address plan, firewall and forwarding rules, VPN settings.
- Keep an export or dated screenshots of the key pages outside the dashboard, and review the organization change log.
! Copy the configuration to a server over an encrypted protocol copy running-config scp://backup@10.10.50.20/edge-rtr-2026-11-22.cfg ! Keep versions automatically on every save archive path scp://backup@10.10.50.20/$h-$t write-memory
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
| Setting | Recommended value | Why |
|---|---|---|
| Frequency | After every change, plus weekly or daily on a schedule | Nothing is missed. |
| Location | Off the firewall, limited access, and a second copy off site or in the cloud | Survives the same event that takes the firewall. |
| Encryption | On, password in the password manager | The file reveals the defences. |
| Naming | Device, date and firmware version | The right file is found under pressure. |
| Versions kept | Several weeks to months | Covers a bad change found late. |
| Firmware image | Kept with the backup | Restores need a matching version. |
| Restore test | At least yearly, and after a major firmware change | Proves the set is complete. |
| Spare hardware | On site where an outage of a day is too long | Removes the shipping delay. |
| Procedure | Written, tested, known to two people | Does 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
| Gap | What happens | Fix |
|---|---|---|
| Untested backups | The file is corrupt, incomplete or for the wrong version | Test a restore yearly. |
| Unprotected secrets | A readable configuration file in a shared folder | Encrypt; limit access. |
| Missing exports after changes | The backup is months behind the device | Export after every change; schedule as well. |
| High availability mismatch | The pair was out of sync when backed up | Confirm sync; document the rebuild. |
| No replacement plan | A file, and nothing to restore it onto | Spare unit or a fast-replacement contract. |
| Password lost | An encrypted backup nobody can open | Password manager, two people. |
| Only on the firewall itself | Lost with the device | Store off the device. |
| Poor evidence trail | Nobody can show when backups or tests happened | Keep 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.
Next in the library
Related guides
This guide is for education and planning. Test in a maintenance window. IT Perfection is not affiliated with the vendors or agencies named on this page.

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.








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 serviceNetwork troubleshooting
Slow network, drops, Wi-Fi, VPN, DNS and DHCP problems traced and fixed.
View service