How to remove a Standalone Firewall from Panorama
301269
Created On 01/17/19 21:22 PM - Last Modified 12/07/24 02:50 AM
Objective
- The article provides steps on how to remove a firewall that is managed by Panorama while keeping both the local config and Panorama pushed config on the firewall by merging both during the process.
- This article is to remove the standalone firewall from Panorama.
- If a HA (High Availability) Firewall Pair must be removed from Panorama, then "config sync" needs to be disabled, and "commit" must be completed prior to starting the removal process.
- If not, due to HA config sync, one of the firewalls may end up with double policies (one from Panorama and the second from config sync of the Peer). This may result in commit failure.
Environment
- Panorama with Managed Firewalls
- PAN-OS 9.1 and above.
- Template and Device group associated with one firewall.
Procedure
Login to Firewall Web UI
- Take a backup
- Device > Setup > Operations
- Click Export Device State (saves local config as well as Panorama Templates and Device Group config)
- Device > Setup > Management
- Click (gear icon) on Panorama Settings
- Click Disable device and Network Template and check the box Import Device and Network Template before disabling, then click OK
5. Click Disable Panorama Policy and Objects and check the box Import Panorama Policy and Objects before disabling, then click OK
6. Verify all the policies pushed from Panorama are still show on firewall before moving to step 4
7. From Device > Setup > Management > Panorama Settings
a. Delete the Panorama IP address
8. Commit
Login to Panorama
- Save a copy of the current config for backup
- Panorama > Setup > Operations
- Click "Save named Panorama configuration snapshot"
- Name the config file (today's_date_running_config, before_fw_removal, etc)
- Panorama > Managed Devices > Summary
- Verify the firewall Device State show as Disconnected
- Use GlobalSearch and search for the serial number of firewall to see if the firewall serial number is used in any policies as "target". If yes, edit the policy and remove the firewall serial number from the "target" field. Repeat this for all policies that has this target. Example below.
- If Device Log forwarding is configured, remove the firewall from the collector group using GUI: Panorama > Collector Group > (name) > Device Log Forwarding > Remove the Firewall under "Device" Column.
- Panorama > Templates
- Remove the device from “template-stack”
- Remove the device from “Template”
- Delete device from "Device Group"
- Panorama > Device Groups which then removes it from Panorama > Managed Devices > Summary
- Delete the firewall from the "Managed Device" device list
- Commit to Panorama
Additional Information
Note:
- Starting from PAN-OS 10.1, there is a new field under Device > Setup > Management > Panorama Settings called Auth Key.
- If the firewall was managed through Panorama prior to 10.1, this field will likely be blank. As such, the OK button will be greyed out and will not let Panorama IP to be removed.
- To resolve, give auth key of format "2:<anycharacters>" as shown in snapshot below:
Alternatively, remove Panorama config from CLI. See: PAN-189804