Skip to main content

block-external-ip

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.1.0 and later.

The script blocks a list of IP addresses in supported integrations.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.1.0

Inputs#


Argument NameDescription
ip_listList of IPs to block.
rule_nameThe name of the rule which will be created in the relevant products.
log_forwarding_namePanorama log forwarding object name. Indicate what type of Log Forwarding setting will be specified in the PAN-OS custom rules.
address_groupThis input determines whether PANW Panorama or Firewall or Prisma SASE Address Groups are used. Specify the Address Group name for IPs list handling.
auto_commitWhether to commit the new rule.
tagThe designated tag name for the IP.
brandsWhich integrations brands to run the command for. If not provided, the command will run for all available integrations.
For multi-select provide a comma-separated list. For example: "Palo Alto Networks - Prisma SASE,Panorama,CheckPointFirewall_v2".
verboseWhether to retrieve a human-readable entry for every command or only the final result. True retrieves a human-readable entry for every command. False retrieves a human-readable entry only for the final result.

Outputs#


PathDescriptionType
BlockExternalIPResults.MessageA message concerning the result of the action.String
BlockExternalIPResults.ResultThe result of the action Success or Failed.String
BlockExternalIPResults.BrandThe name of the brand that was executed.String
BlockExternalIPResults.IPThe IP that was blocked.String