Palo Alto Private Data Reset with HA (Active/Passive)

Palo Alto Private Data Reset with HA (Active/Passive)

Sometimes, you need to do a quick factory reset on a Palo Alto Networks firewall. If you aren’t decommissioning the firewall, a Private Data Reset can be a faster way to accomplish similar results as a factory reset and can be done via CLI directly and could technically be done remotely with some coordination.

In this post, I will show you step-by-step instructions on how to perform a private data reset on a primary Palo Alto Networks firewall in an Active/Passive High Availability Pair using the GUI and the CLI.

The Process

HA Election Settings

If the HA election settings are set to preemptive, we need to disable that.

HA Election Settings GUI

HA Election Settings CLI

If preemptive is set to yes, make a note of that (if it isn’t selected, you don’t need to do anything)

Export Running Config

We need to export the running config to reimport it after the Private Data Reset.

Export Running Config GUI

Export Running Config CLI

For me, that command will look like tftp export configuration from running-config.xml to 192.168.3.125

Suspend HA on the Active Firewall

We need to move traffic off the active firewall to the passive firewall. To do this, we need to suspend High Availability on the active firewall, which will force a failover to the passive firewall.

Suspend HA on the Active Firewall GUI

We should now be failed over to the secondary firewall.

Suspend HA on the Active Firewall CLI

Private Data Reset

The firewall will now reboot and preform the Private Data Reset. Once completed the Palo Alto firewall will boot up in the default configuration, all logs and configs will be reset.

Initial config

Once the firewall has booted up, the admin credentials will be the default of admin for the username and admin for the password.

Import the Exported Config

High Availability Config

Running Config Sync GUI

Running Config Sync CLI

Test High Availability

As we just reset one of the firewalls, we should test the High Availability.

Test HA GUI

We should now be failed over to the Primary firewall.

Test HA CLI

We should now be failed over to the Primary firewall.

Enable HA Election

If you disabled HA election, we need to turn that back on.

HA Election GUI

HA Election CLI

Closing

That is all it takes to perform a private data reset on the primary Palo Alto Networks firewall in an Active/Passive High Availability Pair using the GUI and the CLI.

If you want to read more about the private data reset, here is a Palo Alto Knowledge Base Article about it.

If your firewall was impacted by the Level 2 Compromise of CVE-2024-3400 the Private Data Reset will wipe out any lingering items. For direction on CVE-2024-3400, please reach out to Palo Alto Networks Support and see the Palo Alto Security Advisory for CVE-2024-3400.

Exit mobile version