Skip to content

This utility queries the firewall and out provides information on Unused rules.

License

Notifications You must be signed in to change notification settings

PaloAltoNetworks/Unused-Rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unused-Rules

This utility queries the firewall and out provides information on Unused rules.

Prerequisites

Requires GO installed in your system. Use this link to download GO.

How to use the tool

Set up environmental variables on your system for the following:

  • Firewall IP or FQDN
  • Firewall Usernane
  • Firewall Password

Update the variables in the main package.

var (
		hostname = os.Getenv("SITEAFW") -- Change "SITEAFW" to match your enviromental setting for the firewall fqdn or IP address
		user     = os.Getenv("PANOUSER") -- Change "PANOUSER" to match your enviromental setting for the firewall's username.
		password = os.Getenv("PANOPWD") -- Change "PANOPWD" to match your enviromental setting for the firewall's password.
		months = 10 -- Change to the number of past months you want to check for last hits. In this example the script will looks for rules with no hits for the last 10 months from today.
	)

Sample Output

*****Rules with Zero Hit Count*****
Name:Block_Malicious_Inbound HitCount:0

Name:Office-To-Lab-Networks HitCount:0

Name:Client-To-AWS-Health-Dashboard HitCount:0

Name:SOC-To-Internet HitCount:0

Name:External-To-GP HitCount:0

Name:GP-To-Internal HitCount:0

Name:GP-To-Outside HitCount:0

Name:External-To-CIE HitCount:0

Name:External-To-All-No-Profile HitCount:0

***** Rules with no hit count for the last 10 Months *****

About

This utility queries the firewall and out provides information on Unused rules.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages