Skip to main content

PanoramaSecurityPolicyMatchWrapper

This Script is part of the PAN-OS by Palo Alto Networks Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.1.0 and later.

A wrapper script for the panorama-security-policy-match command that receives multiple values for the source, destination, and destination port arguments and performs the policy match for each combination of the inputs.

Script Data#


NameDescription
Script Typepython3
Tags
Cortex XSOAR Version6.1.0

Inputs#


Argument NameDescription
applicationThe application name.
categoryThe category name.
destinationA comma-separated list of destination IP addresses.
fromThe from zone.
toThe to zone.
protocolThe IP protocol value.
sourceA comma-separated list of source IP addresses.
targetTarget number of the firewall. Use only on a Panorama instance.
vsysTarget vsys of the firewall. Use only on a Panorama instance.
source_userThe source user.
destination_portA comma-separated list of destination ports.
limitMaximum number of API calls that script sends.

Outputs#


PathDescriptionType
Panorama.SecurityPolicyMatch.Rules.NameThe matching rule name.String
Panorama.SecurityPolicyMatch.Rules.ActionThe matching rule action.String
Panorama.SecurityPolicyMatch.Rules.CategoryThe matching rule category.String
Panorama.SecurityPolicyMatch.Rules.DestinationThe matching rule destination.String
Panorama.SecurityPolicyMatch.Rules.FromThe matching rule from zone.String
Panorama.SecurityPolicyMatch.Rules.SourceThe matching rule source.String
Panorama.SecurityPolicyMatch.Rules.ToThe matching rule to zone.String

Script Examples#

Example command#

!PanoramaSecurityPolicyMatchWrapper destination=2.2.2.2 source=1.1.1.1,8.8.8.8 protocol=1

Context Example#

{
"Panorama": {
"SecurityPolicyMatch": {
"Rules": {
"Action": "deny",
"Category": "any",
"Destination": "2.2.2.2",
"From": "any",
"Name": "test rule",
"Source": "1.1.1.1",
"To": "any"
}
}
}
}

Human Readable Output#

Matching Security Policies:#

ActionCategoryDestinationFromNameSourceTo
denyany2.2.2.2anytest rule1.1.1.1any

The query for source: 8.8.8.8, destination: 2.2.2.2 did not match a Security policy.