PAN-OS - Block IP - Static Address Group

This playbook blocks IP addresses using Static Address Groups in Palo Alto Networks Panorama or Firewall. The playbook receives malicious IP addresses and an address group name as inputs, verifies that the addresses are not already a part of the address group, adds them and commits the configuration. ***Note - The playbook does not block the address group communication using a policy block rule. This step will be taken once outside of the playbook.

PAN-OS by Palo Alto Networks · 14 tasks · 4 inputs · 0 outputs

Inputs

  • IP — IP address to block
  • AddressGroupName — Static address group name
  • AutoCommit — This input establishes whether to commit the configuration automatically. Yes - Commit automatically. No - Commit manually.
  • IPDescription — The description of the IP in case it will get created by the playbook.

Commands used

pan-os-create-address pan-os-edit-address-group pan-os-get-address-group

Flowchart

yes yes yes yes Start Start Palo Alto Networks PAN-OS enabled? Palo Alto Networks PAN-OS... Is there an IP to block? Is there an IP to block? Done Done PAN-OS - Get address group - pan-os-get-address-group PAN-OS - Get address group pan-os-get-address-group Check if the malicious IPs already exist in the address group Check if the malicious IP... PAN OS - Add IP addresses to address group - pan-os-edit-address-group PAN OS - Add IP addresses... pan-os-edit-address-group PAN-OS - Create address objects - pan-os-create-address PAN-OS - Create address o... pan-os-create-address PAN-OS Commit Configuration - PAN-OS Commit Configuration PAN-OS Commit Configuration PAN-OS Commit Configuration PAN-OS Commit Configuration - PAN-OS Commit Configuration PAN-OS Commit Configuration PAN-OS Commit Configuration AutoCommit defined? AutoCommit defined? Commit PAN-OS Instance manually Commit PAN-OS Instance ma... PAN OS - Add IP addresses to address group - pan-os-edit-address-group PAN OS - Add IP addresses... pan-os-edit-address-group Commit PAN-OS Instance manually Commit PAN-OS Instance ma...