Skip to main content

List firewall rules from your Palo Alto firewall/Panorama using this NetBox plugin.

Project description

Palo Alto Networks firewall/Panorama NetBox plugin

This plugin enables you to list firewall rules defined on your Palo Alto Networks firewall or Panorama management server directly in NetBox. The URL <NETBOX>/plugins/paloalto/<object> will list all firewall rules associated with object (see limitations further down).

Preview

Plugin preview

Compatibility

NetBox 2.8 and higher.
Tested on Panorama PAN-OS 9.1 and PA-220 PAN-OS 9.1.

Installation

Add netbox-paloalto to your local_requirements.txt.

Add netbox_paloalto to configuration.py like this:

PLUGINS = ['netbox_paloalto']

Run ./upgrade.sh which will download the package and run the necessary database migrations.

Add you firewall/Panorama (can have multiple) through the Admin GUI of NetBox.

Available settings

Assume a NetBox object with name Server01 and IP 1.2.3.4.
Available settings in PLUGINS_CONFIG is:

transform: True/False - Netbox object is transformed before the search in Panorama/firewall. 
                        Additional search term will be Server01.3.4. Default: False
nesting: <int> - The number of levels of nesting within address groups to perform. Default: 1

Generate your Palo Alto firewall API key

See Palo Alto Networks documentation on generating your API key.

Limitations

  • Limited nesting for address groups as default
  • Does not include "any" rules based on zones (as we can't tell the zone from the object name)
  • Does not match with subnet rules (you can have a rule saying 10.0.0.0/8 is allowed, but your object with the address 10.1.1.1 is not listed)
  • Does currently not support other rule types than security rules (no NAT/Decryption/etc)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox-paloalto-0.3.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_paloalto-0.3.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file netbox-paloalto-0.3.0.tar.gz.

File metadata

  • Download URL: netbox-paloalto-0.3.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for netbox-paloalto-0.3.0.tar.gz
Algorithm Hash digest
SHA256 99e2658b9d02495b87846c09af40f56fbadf3d6d51af0dd53d4961f8813f3301
MD5 c9379e9cc5c11b00f8081c51aae022d2
BLAKE2b-256 5b8ca2ef125a09ef90d6b24f8e4df5b491584f2e2d907d2f14df8dee88fba3c8

See more details on using hashes here.

File details

Details for the file netbox_paloalto-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: netbox_paloalto-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for netbox_paloalto-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83e6e179ff35e78f2a9f3f11be4012b8c5b712e7c78599acd616566d55646b00
MD5 a3567baf16b4597309d6c19b254344b5
BLAKE2b-256 6989a72f6d1db0207bd4dc9409376051add5fbbd11b017d3c03814d0cdf59e70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page