Feature/ipcc prefix filter - #131
Merged
salcock merged 6 commits intoSep 15, 2026
Merged
Conversation
Signed-off-by: Pawel Jablonski <187151585+ppjablonski@users.noreply.github.com>
Signed-off-by: Pawel Jablonski <187151585+ppjablonski@users.noreply.github.com>
Signed-off-by: Pawel Jablonski <187151585+ppjablonski@users.noreply.github.com>
Signed-off-by: Pawel Jablonski <187151585+ppjablonski@users.noreply.github.com>
Signed-off-by: Pawel Jablonski <187151585+ppjablonski@users.noreply.github.com>
Signed-off-by: Pawel Jablonski <187151585+ppjablonski@users.noreply.github.com>
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
Adds support for configurable IP CC prefix exclusion groups on a per-intercept basis.
Collectors can now define named groups of IPv4/IPv6 prefixes. Individual IP intercepts select which groups to apply via
cc_exclude_groups.When an intercepted packet's source or destination IP matches a prefix in an assigned group, CC generation is suppressed for that specific intercept. IRI generation remains unaffected.
Configuration
Example collector configuration:
Example intercept property:
Key constraints:
REST API
Exposed via
cc_exclude_groupsin the provisioner API.Partial PUT behavior:
[]) -> clear all exclusions.Invalid, duplicate, or oversized group lists fail atomically — no partial updates are applied to the active intercept.
Packet Processing
Prefix filtering is backed by immutable IPv4 and IPv6 Patricia tries.
To keep overhead minimal, source and destination IP lookups are performed once per packet during standard IP CC processing. The resulting group mask is then checked against the policy of each matching intercept.
This flow is shared across standard IP CC and vendor decapsulation paths:
Malformed packets that fail IPv4/IPv6 parsing fall back to fail-open behavior and proceed down the standard CC path.
Suppressed records are dropped early — before export job allocation, packet copying, ZMQ pub, or sequence tracking.
Persistence & Runtime Updates
Testing
Verified in lab / local testbed:
Implemented and build-verified (pending traffic testing in live environment):
Note: Code analyzed and prepared with assistance from GPT-5.6. Reviewed and tested manually.