Repository navigation
fix: inbound traffic direction on PAN-OS and Check Point - #118
Merged
Merged
Conversation
PAN-OS rendered every traffic record with the egress zones, interfaces and source NAT, so inbound sessions (REP-021, REP-043's inbound stage, REP-053) looked like egress. Check Point rendered inzone=Internal for every session. Both now read the engine's reversed interface pair through profiles.base.is_inbound. FortiGate is unchanged; no golden line moved. Guard: tests/test_inbound_direction.py renders real plans at every preset. With the fix reverted, all 18 PAN-OS and Check Point inbound cases failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NtL63gY2LQZtZwgNwDM8vs
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The follow-up recorded when REP-053 shipped (#115), widened by one finding made in the same pass.
PAN-OS rendered every traffic record as egress. The engine marks an internet-to-inside session by reversing the interface pair (
src_intf/dst_intf,trandisp=dnat). FortiGate renders that pair; PAN-OS ignored it, so inbound sessions (REP-021, REP-043's inbound stage, REP-053) carriedcs4=trust cs5=untrust, the egress interface pair, and the egresssourceTranslatedAddress. They now carrycs4=untrust cs5=trust, the interfaces swapped, and no source NAT. The destination NAT a real inbound session would carry is not emitted.Check Point said every session entered from the internal zone. Found while fixing the above:
inzonewas the constantInternal. An inbound session now rendersinzone=External outzone=Internal.deviceDirectionwas already right (it is derived fromdst).Both profiles read the mark through one helper,
profiles.base.is_inbound. FortiGate is unchanged. No golden line is inbound, so no golden line moved.Verification
tests/test_inbound_direction.py: renders real plans of REP-021, REP-043 and REP-053 at every preset on PAN-OS and Check Point, checks FortiGate is unchanged, and checks egress records (REP-001, REP-005, REP-043's outbound legs) keep the egress shape. A vacuity guard asserts each technique emits inbound traffic.ruff,black --check,mypy replicantclean.Documentation impact
docs/paloalto-cef-reference.md,docs/checkpoint-cef-reference.md: the inbound shape, marked[Unverified]because no golden line covers it.docs/catalog-review-2026-10-07.md: dated implementation note closing the follow-up under backlog item 3.CLAUDE.md: the REP-053 note records the fix and the helper.CHANGELOG.mdUnreleased.Unaffected: the catalog (the
directiontext already says inbound; the vendors now agree with it),docs/run-manifest.md, the web UI.Maintained documentation changed alongside the behavior, or unaffected surfaces are explained above.
CHANGELOG.mdrecords the operator-visible change.Historical decision records were preserved or received a dated addendum.
Documentation claims were checked against the implemented behavior.
Scope boundary
[Unverified]until a live capture, like the rest of those references.CLAUDE.mdis unchanged.Generated by Claude Code