Join our Newsletter — 33% off our NHI Course
Home› Guides› Next-generation firewall (NGFW) migration playbook: replace firewalls without…
Guide Network Security

Next-generation firewall (NGFW) migration playbook: replace firewalls without carrying old risk

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 11 November 2026 13 min read
On this page

A firewall migration is the one moment an organisation rebuilds its whole network policy, and converting the old rule base as-is copies every unused rule, broad exception, stale VPN account and shared secret onto new hardware that will run for another decade. Firewall replacements are driven by end of support, hardware refresh, a change of vendor, consolidation after a merger, or a move of perimeter functions into the cloud. This playbook covers moving from one next-generation firewall platform to another: what has to move besides rules, cleaning the rule base during conversion, re-issuing secrets held in the configuration, hardening the new management plane, cutover patterns, validation and rollback, and decommissioning the old devices. It is vendor-neutral and draws on NIST SP 800-41, joint government hardening guidance and NIST SP 800-53 controls. Day-to-day rule management is covered in the Firewall Management Guide; this page does not repeat it.

Key takeaways

  • Clean before you convert. Remove unused, shadowed and expired rules on the old platform first, so the conversion tool and the reviewers handle a smaller, truer rule base.
  • Configuration files are secret stores. Pre-shared keys, RADIUS and TACACS+ secrets, SNMP communities, API keys and the TLS inspection CA key sit in the config; re-issue them on the new platform rather than importing them.
  • VPN accounts are identities, not settings. Migrate users from the directory with MFA, and do not carry local accounts and their old passwords across.
  • Harden the management plane before the first packet. Out-of-band management, no internet-facing admin interfaces, SSO with MFA and central logging belong in the build, not after cutover.
  • Prove equivalence with traffic, not with rule counts. Test flows, compare hit counts and logs, and keep the old device ready to swap back until the freeze ends.

What has to move

NIST SP 800-41 Rev. 1 frames firewall work as policy first, then selecting, configuring, testing, deploying and managing the solution. For a migration, that means inventorying every object the old platform holds and deciding, per object, whether it moves, is rebuilt or is retired.

ObjectMigration approachWatch for
Security rulesClean on the source, convert, then review every converted ruleConverted "any" fields and application rules translated back to ports
NAT rulesConvert and test each public mappingOrder-dependent NAT behaving differently on the new platform
Address, service and application objectsNormalise naming; merge duplicatesApplication identification differs between vendors; some apps have no equivalent
Zones and interfacesMap to the target zone model and segmentation designCollapsing zones to simplify conversion
Site-to-site VPN tunnelsRebuild with new pre-shared keys or certificates, stronger proposalsPeers that only support legacy algorithms
Remote access VPNRebuild on directory authentication with MFALocal user accounts and their passwords carried over
TLS inspection policy and CAIssue a new inspection CA; distribute to endpoints before cutoverExporting the old CA private key; exemptions lost
Intrusion prevention, URL and malware profilesMap categories; start from the target's recommended profileProfiles attached to fewer rules than before
User identity sourcesNew directory integration accounts with least privilegeOld service accounts with directory read rights left enabled
Dynamic routing and authentication keysRebuild peers with new keysRoute leaks during the swap
Management settings (admins, AAA, SNMP, syslog, NTP, API)Build fresh from a hardened baselineDefault or shared admin accounts; SNMPv2c communities
External threat feeds and dynamic listsRe-subscribe; verify update frequencyLists referenced in rules but empty on the new platform
Logs and audit historyArchive for the retention periodHistory destroyed with the old appliance

Cleaning the rule base during conversion

Automated converters translate syntax, not intent. A rule base that grew over ten years usually contains rules that nobody can explain, and conversion is the cheapest moment to remove them. See the Firewall Rule Review Checklist and the Firewall rule lifecycle guide.

  1. Collect hit counts: export rule hit counters covering at least a full business cycle (our recommendation is 90 days, longer where quarterly or annual jobs exist).
  2. Remove dead rules on the source: zero-hit, shadowed and expired rules, after owner confirmation. Disabling first and deleting later gives a cheap rollback.
  3. Attach an owner and reason to the rest: rules without an owner go to a review queue rather than to the new platform.
  4. Convert: run the converter on the cleaned source and keep its report of untranslated items.
  5. Tighten where evidence allows: replace broad port rules with application-aware rules where logs show the actual applications. Do it in a later wave if the team is learning the platform, but schedule it.
  6. Keep a default deny: NIST SP 800-53 SC-7(5) asks for deny by default, allow by exception; check the converted policy still ends in an explicit, logged deny.

Re-issuing secrets held in the configuration

A firewall configuration file is one of the most sensitive files an organisation holds. Treat exports and conversion workspaces as secret material, and re-issue rather than move each secret.

SecretRe-issue approachOld secret
Site-to-site VPN pre-shared keysNew key per tunnel, or move to certificatesRetire at tunnel cutover
TLS inspection CANew CA key generated on the new platform or an HSMRemove from endpoint trust stores after cutover
RADIUS and TACACS+ shared secretsNew secret per device on the AAA serverDelete the old device entries
SNMPSNMPv3 with authentication and encryptionDisable v1 and v2c communities
Directory integration accountNew service account, read-only, scopedDisable and remove
Management API keysNew scoped keys for automation, stored in a secrets managerRevoke on the old platform
Routing protocol keysNew keys agreed with peersRemove at peer cutover

The joint guidance published by CISA, NSA, FBI and partner agencies in December 2024, Enhanced Visibility and Hardening Guidance for Communications Infrastructure, recommends storing configurations centrally and pushing them to devices, alerting on configuration changes made outside change management, using SNMPv3 with authentication and encryption, and changing default passwords on first use. Build those into the new platform from day one. The live Salt Typhoon breach page shows how stolen credentials and network device secrets kept attackers inside telecom networks.

Where identity fits: VPN and admin accounts

Remote access VPN users and firewall administrators are the identities most often abused on edge devices (ATT&CK T1133 External Remote Services, T1078 Valid Accounts). A migration is the moment to fix how they authenticate.

  • Do not carry local VPN accounts: in the SonicWall SSL VPN account compromises, the vendor linked an earlier wave of attacks to customers keeping old local passwords after firewall migrations. Authenticate VPN users against the directory with MFA, and if a local account must exist, reset its password on the new device.
  • Remove dormant accounts before conversion: the Colonial Pipeline attack began with an unused VPN account. Compare VPN accounts against HR and directory status, and migrate only active, owned accounts.
  • Federate administrators: admins should sign in through central AAA or SSO with phishing-resistant MFA; keep one break-glass local account per device, with its password vaulted and changed after each use, as the joint guidance advises.
  • Scope automation identities: orchestration and configuration management tools that push policy need their own scoped API keys, not a shared admin login. See the Next-generation firewall (NGFW) integration security guide.

Hardening the new management plane

  • No internet-facing management: CISA BOD 23-02 requires federal civilian agencies to remove management interfaces of devices including firewalls and VPN concentrators from the public internet within 14 days of discovery, or protect them with a zero trust policy enforcement point. It is a sound baseline for any organisation.
  • Out-of-band management: manage the new devices only from a separate management network and dedicated admin workstations, per the joint guidance.
  • Disable insecure services: Telnet, HTTP management, SNMPv1 and v2c, and unused protocols, before the device joins production.
  • Verify the software image: compare image hashes with the vendor's published values before installing, then patch to the current supported release.
  • Central logging first: send traffic, threat, system and configuration logs to the SIEM before cutover, so the first day of production is visible.

Choosing a cutover pattern

PatternHow it worksChoose it whenTrade-off
Parallel run in monitor or tap modeNew firewall sees a copy of traffic and logs verdicts without enforcingLarge or complex rule bases; application identification changesNeeds span or tap capacity; no enforcement evidence for NAT and VPN
Segment or site by siteMove one zone, branch or data centre at a timeMany sites or a clear segmentation modelMixed estate for months; policy in two places
Single window swapRe-cable or re-route all traffic to the new pair in one changeSingle site, well tested config, short maintenance windowAll issues at once; rollback is a physical or routing swap
Routing-based cutoverShift traffic by route preference, then remove the old pathData centre and cloud edges with dynamic routingAsymmetric routing breaks stateful inspection if not planned

Decision guidance: a small organisation with one site and a modest rule base can swap in one maintenance window after lab testing, provided the old device stays racked and configured for rollback. A large organisation should run in monitor mode where possible, then move by segment or site, starting with low-risk branches and leaving the data centre core and internet edge to last. Use the move to apply the segmentation the organisation wants, not just the one it has; see the Network Segmentation Guide.

The phased playbook

  1. Phase 0, inventory and baseline: export configuration, hit counts, VPN accounts and active sessions; map flows per segment from logs; record baseline metrics.
  2. Phase 1, clean the source: remove dead and unowned rules and dormant VPN accounts on the old platform.
  3. Phase 2, build the target: hardened management plane, central logging, AAA, new secrets, then the converted and reviewed policy.
  4. Phase 3, test in the lab: run a test plan per segment: allowed flows succeed, denied flows fail, NAT mappings resolve, VPN tunnels establish, inspection profiles trigger on safe test files, and failover works.
  5. Phase 4, monitor mode or pilot site: compare verdicts and hit counts with the old firewall.
  6. Phase 5, cutover per wave: in a change window, with application owners on call and a test script per critical flow.
  7. Phase 6, freeze: the old device stays powered and configured, but out of path, for the agreed period.
  8. Phase 7, decommission: see below.

Rollback

  • Write the swap-back steps: cabling, routing or HA changes needed to return to the old pair, rehearsed in the lab.
  • Agree triggers: for example any critical business flow failing after 30 minutes of troubleshooting, or VPN success rate below 95% of baseline (our recommendation).
  • Freeze rule changes on the old device: during the freeze, so a rollback does not reintroduce an outdated policy; record any emergency change on both.
  • Never roll back to an "allow any" rule: on the new device to make a problem go away; roll back the wave instead.

Decommissioning the old firewall

  • Archive logs and the final configuration: keep them for the retention period your policy sets (NIST SP 800-53 AU-11), encrypted, with access restricted.
  • Revoke what it held: AAA client entries, directory service accounts, VPN certificates, API keys, SNMP users and the old inspection CA in endpoint trust stores.
  • Remove cloud and support portal links: configuration backups stored in a vendor cloud service contain the same secrets; delete them. SonicWall confirmed in October 2025 that firewall configuration backups in its cloud service had been accessed.
  • Sanitise the device: follow the vendor's factory reset and storage wipe procedure and NIST SP 800-88 Rev. 2, and record it (MP-6), before return, resale or disposal.
  • Update diagrams and the asset inventory: so the old device's addresses and DNS names are not reused unexpectedly.

Detection and measurement

Metric or signalWhy it mattersTarget (our recommendation)
Rules migrated without owner and reasonShows unreviewed carry-overZero
Rules with any source, destination and serviceBroad exceptions surviving the moveFewer than on the old platform, each justified
Local VPN accounts on the new platformAccounts outside directory and MFABreak-glass only
Secrets imported rather than re-issuedOld exposure moved to new hardwareZero
Management interfaces reachable from the internetBOD 23-02 exposureZero
Configuration changes outside change managementDetects drift and tamperingZero unexplained; alert on each

Monitor denied traffic and VPN authentication failures closely in the first weeks: denied flows show missed rules, and authentication failures show accounts that should not have migrated.

Common failure patterns

  • One-to-one conversion: every old rule copied, so the new firewall starts life with the old one's debt.
  • Imported secrets: the same PSKs, SNMP communities and inspection CA key now live on two platforms and in a conversion workspace.
  • Local VPN passwords kept: accounts and passwords carried across without reset or MFA.
  • Management exposed during build: the new device is staged with its admin interface on the internet "just for setup".
  • Application rules converted back to ports: losing the main reason for buying a next-generation platform.
  • Old device left powered on the network: unpatched, still holding valid secrets, and still answering on its management address.

Framework mapping

ActivityNIST SP 800-53 Rev 5NIST CSF 2.0Other
Rule base and default denySC-7, SC-7(5), AC-4PR.IR-01NIST SP 800-41 Rev. 1
Baseline and hardened configurationCM-2, CM-6, CM-7PR.PS-01Joint hardening guidance (Dec 2024)
Change control and rollbackCM-3PR.PS-01Not mapped
VPN and admin authenticationAC-17, IA-5, AC-6PR.AA-05ATT&CK T1133, T1078
Management interface exposureSC-7, AC-17PR.IR-01CISA BOD 23-02
Flow documentationAC-4ID.AM-03Not mapped
Monitoring and log retentionAU-6, AU-11DE.CM-01Not mapped
Device sanitisationMP-6PR.DS-01NIST SP 800-88 Rev. 2

Practitioner checklist

  • Export hit counts over at least a business cycle and remove dead, shadowed and unowned rules before converting.
  • Review every converted rule and the converter's untranslated items report.
  • Treat configuration exports as secrets and re-issue PSKs, AAA secrets, SNMP, API keys and the inspection CA.
  • Migrate VPN users from the directory with MFA; keep only vaulted break-glass local accounts.
  • Build out-of-band management with no internet-facing admin interfaces before cutover.
  • Send traffic, threat and configuration logs to the SIEM before the first production packet.
  • Test allowed and denied flows, NAT, VPN, inspection and failover in a lab, then in monitor mode or a pilot site.
  • Keep the old device configured and out of path for the freeze period, with rehearsed swap-back steps.
  • Archive logs and configuration, revoke the old device's identities and secrets, delete cloud backups and sanitise it.

Standards and references

Related NHI Mgmt Group resources: Firewall Management Guide · Next-generation firewall (NGFW) rollout playbook · Firewall Buyer's Guide · TLS Inspection Guide · If your next-generation firewall (NGFW) is compromised

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 11 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.