diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-01-31 15:10:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-31 15:10:30 +0100 |
commit | ecf0f8ace3d95703dc88450e333dd44c842ddcb9 (patch) | |
tree | 8b91df0db172c56a86061761ab257bd926bba35d /src/include | |
parent | 41133638dc303be1717462876814a6102669757c (diff) |
Create a specific configuration for classification only (#2689)
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.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h index 07f8329e8..092502ab7 100644 --- a/src/include/ndpi_private.h +++ b/src/include/ndpi_private.h @@ -242,7 +242,15 @@ struct ndpi_detection_module_config_struct { int tls_app_blocks_tracking_enabled; int tls_heuristics; int tls_heuristics_max_packets; + int tls_versions_supported_enabled; + int tls_alpn_negotiated_enabled; + int tls_cipher_enabled; int tls_sha1_fingerprint_enabled; + int tls_cert_server_names_enabled; + int tls_cert_validity_enabled; + int tls_cert_issuer_enabled; + int tls_cert_subject_enabled; + int tls_broswer_enabled; int tls_ja3s_fingerprint_enabled; int tls_ja4c_fingerprint_enabled; int tls_ja4r_fingerprint_enabled; |