Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a specific configuration for classification only #2689

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

IvanNardi
Copy link
Collaborator

In some scenarios, you might not be interested in flow metadata or flow-risks at all, but you might want only flow (sub-)classification. Examples: you only want to forward the traffic according to the classification or you are only interested in some protocol statistics.

Create a new configuration file (for ndpiReader, but you can trivially adapt it for the library itself) allowing exactly that. You can use it via: ndpiReader --conf=example/only_classification.conf ...

Note that this way, the nDPI overhead is lower because it might need less packets per flow:

  • TLS: nDPI processes only the CH (in most cases) and not also the SH and certificates
  • DNS: only the request is processed (instead of both request and response)

We might extend the same "shortcut-logic" (stop processing the flow immediately when there is a final sub-classification) for others protocols.

Add the configuration options to enable/disable the extraction of some TLS metadata.

@IvanNardi IvanNardi force-pushed the tls-metadata-config branch from 389208c to 94acbf2 Compare January 21, 2025 17:39
In some scenarios, you might not be interested in flow metadata or
flow-risks at all, but you might want only flow (sub-)classification.
Examples: you only want to forward the traffic according to the
classification or you are only interested in some protocol statistics.

Create a new configuration file (for `ndpiReader`, but you can trivially
adapt it for the library itself) allowing exactly that. You can use it
via: `ndpiReader --conf=example/only_classification.conf ...`

Note that this way, the nDPI overhead is lower because it might need
less packets per flow:
* TLS: nDPI processes only the CH (in most cases) and not also the SH
  and certificates
* DNS: only the request is processed (instead of both request and
  response)

We might extend the same "shortcut-logic" (stop processing the flow
immediately when there is a final sub-classification) for others
protocols.

Add the configuration options to enable/disable the extraction of some
TLS metadata.
@IvanNardi IvanNardi force-pushed the tls-metadata-config branch from 94acbf2 to 5bc32bf Compare January 21, 2025 18:40
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