Skip to content

Match Palo Alto GRE and SCTP rules by IP protocol number - #376

Open
Shubham-Padkonde wants to merge 1 commit into
google:masterfrom
Shubham-Padkonde:fix/paloalto-gre-sctp-protocols
Open

Shubham-Padkonde wants to merge 1 commit into
google:masterfrom
Shubham-Padkonde:fix/paloalto-gre-sctp-protocols

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown
Contributor

GRE and SCTP terms currently reference PAN-OS built-in applications instead of matching their IP protocol numbers. Generate ip-protocol-gre and ip-protocol-sctp custom applications using ident-by-ip-protocol values 47 and 132. The existing mixed-protocol split keeps these applications separate from TCP/UDP service rules.

The generated applications are reused across policies. Explicit GRE/SCTP port filters are rejected: PAN-OS service objects only support TCP/UDP, and silently discarding a port restriction would broaden the policy. Document these rules and add XML-level coverage for IPv4, IPv6, mixed protocols, shared applications, and unsupported ports.

Addresses the GRE/SCTP cases in #273. Other protocol mappings are unchanged.

Validation: the new protocol cases failed before the fix. The full suite passes (1721 tests and 19 subtests); after formatting cleanup, all 50 Palo Alto tests and six subtests pass. No new Pylint findings compared with the base using the repository configuration. The XML field matches Palo Alto's SDK schema (https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/panos/objects.py). No physical PAN-OS firewall was available for deployment validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant