Tcp service report for rules

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

Tcp service report for rules

L4 Transporter
Is there a report that I can run that will show me every rule that has tcp service applied? For example let's say migration tool is not an option and I do not want to scroll through 3000 rules to manually look. Or can I can export all rules and somehow use excel filtering on service field
4 REPLIES 4

Cyber Elite
Cyber Elite

Export to Excel works. I have tried it.

Did not go through this guide to verify step by step at the moment but you get the basics.

 

https://indeni.com/how-to-export-palo-alto-networks-firewalls/

Enterprise Architect, Security @ Cloud Carib Ltd
Palo Alto Networks certified from 2011

@clyde.franklin,

It looks like the guide that @Raido_Rattameister shared is valid and will work appropriately. Personally I find it easier to export the XML directly and look at it that way you can look at the rules directly and look at the <service> setting which will list all <member> listing. Excel works perfectly fine though.

L7 Applicator

I also prefere the XML and in combination with the very powerful xpath "language" this task could be done with a one-liner and will give you all the rules with service objects in one view

L4 Transporter

Thanks  all I used Pan-configurator and was able to get it pretty easy:

 

 

 


bash-3.2$ php rules-edit.php in=api://x.x.x.x actions=exportToExcel:rules.xls location=PALO-TIAA-FWHA03-QIC ruletype=security

 

 

   - object 'QIC-C3_IS_T3' passing through Action='exportToExcel' Args: filename=rules.xls, additionalFields=,

   - object 'QIC-C3_IS_T1' passing through Action='exportToExcel' Args: filename=rules.xls, additionalFields=,

   - action 'exportToExcel' has tasks to process before shutdown.

  • 2246 Views
  • 4 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!