Object add in bunch of policies.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Object add in bunch of policies.

L2 Linker

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.

3 REPLIES 3

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

M

Check out my YouTube channel - https://www.youtube.com/@NetworkTalks

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 - Strata specialist; config reviews, policy optimization

Thanks for the reply. 

 

Regards.

  • 3260 Views
  • 3 replies
  • 0 Likes
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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!