Object add in bunch of policies.

Reply
Highlighted
L2 Linker

Object add in bunch of policies.

Hi All,

 

An object (IP address: 192.168.1.2 as an example) configured in the PA firewall and assigned it to 50+ security policies as a source/destination address.

 

Now, I want another object (IP address: 192.168.1.5) assign into the same 50+ security policies as IP 192.168.1.2. What's the fastest way to do it?

 

I can manually do it by going in each policy that IP 192.168.1.2 configured with and add new object IP 192.168.1.5 there but it's really time-consuming as I need to do it for 50 policies. So just checking if anyone knows the fastest way to do it?

 

Thank you.

Highlighted
L6 Presenter

@ChiragP 

API is the option. Below article may help you here.

 

https://docs.paloaltonetworks.com/pan-os/9-0/pan-os-panorama-api/get-started-with-the-pan-os-rest-ap...

 

And better have address group to use under security policies. So without API also you can add new object in group and avoid repetitive task.

 

Mayur



Mayur
Highlighted
L7 Applicator

click, drag and drop is also possible but as recommended by @SutareMayur  i'd replace the one object with a group object, then just add the 2 ip to the group

next time, you'll only have to add a new ip to a group once

 

 

Tom Piens - PANgurus.com
Find my book at amazon.com/dp/1789956374
Highlighted
L2 Linker

Thanks for the reply. 

 

Regards.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!