How to create a custom Region via CLI

How to create a custom Region via CLI

711
Created On 11/04/22 16:25 PM - Last Modified 10/29/25 17:52 PM


Objective


This article explains how to create a custom region with address entries via CLI

Environment


  • Palo Alto Firewalls
  • Supported PAN-OS
  • Custom Regions


Procedure


The syntax for creating custom regions is as follows:

# set region <Region_Name>
{
address {<value> | <ip/netmask> | <ip_range>} |
geo-location |
{
latitude <coordinate> |
longitude <coordinate>
}
}


For Example
:

To create a custom region with single IP, IP netmask, and range of IPs:
>configure
#set region test address 172.16.20.6
#set region test address 192.16.1.0/24
#set region test address 10.20.9.50-10.20.9.100
#commit


This will create a custom region named "Test" with Address entries: "172.16.20.6", "192.16.1.0/24" and  "10.20.9.50-10.20.9.100"
Refresh the browser and view the custom region  to confirm it was successfully created
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000sZqoCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail