swaschkut / pan-os-php

Framework and utilities to easily manage and edit Palo Alto Network PANOS devices
ISC License
18 stars 1 forks source link

pan-os-php

PAN-OS-PHP is a PHP library aimed at making PANOS config changes easy (and XML free ;), maintainable and allowing complex scenarios like rule merging, unused object tracking, conversion of checkpoint exclusion groups, massive rule editing, AppID conversion … . It will work seamlessly on PAN-OS local xml config file or PAN-OS API.

Support Me

Do you like PAN-OS-PHP? Are you looking forward to the new features?

US Dollar

PayPal or credit/debit card

EUR

PayPal or credit/debit card

PAYPAL

PayPal or credit/debit card

Thank you!

INSTALLATION

The recommended installation of PAN-OS-PHP is via Docker. Please install Docker Desktop if needed.

README docker

WIKI docker

Old detailed information

Homepage : latest sources on GitHub.

Requirements :

Usage: include the file lib/pan_php_framework.php in your own script to load the necessary classes.

    require_once "lib/pan_php_framework.php";

File tree:

SUPPORT

This tool is provided "AS IS" and is community supported. Please also check the LICENSE file.

For help, it is always possible to open a GIT issue for this repository, or reaching out to Palo Alto Networks LIVE community page.

Usage (create custom Scripts)

With less than 20 lines of code, you should be able to solve most of your needs. Brief overview:

README customScripting

UTIL (predefined Scripts)

You hate scripting ?

Use around 50 different predefined entry parts [e.g. address / service / tag / rule / ...] with 100 of actions and filters to easily improve your Palo Alto Networks Firewall and Panorama configuration

README util

Docker build

There are Dockerfiles available with OS: Ubuntu20/22 and CentOS 7/8

README docker

WIKI docker