config: move IP lists configurations to the new API
This commit is contained in:
@@ -173,6 +173,13 @@ struct ndpi_detection_module_config_struct {
|
||||
/* Protocols */
|
||||
|
||||
int tls_sha1_fingerprint_enabled;
|
||||
|
||||
NDPI_PROTOCOL_BITMASK ip_list_bitmask;
|
||||
|
||||
int flow_risk_lists_enabled;
|
||||
int risk_anonymous_subscriber_list_icloudprivaterelay_enabled;
|
||||
int risk_anonymous_subscriber_list_protonvpn_enabled;
|
||||
int risk_crawler_bot_list_enabled;
|
||||
};
|
||||
|
||||
struct ndpi_detection_module_struct {
|
||||
|
||||
@@ -1514,21 +1514,7 @@ typedef u_int32_t ndpi_init_prefs;
|
||||
|
||||
typedef enum {
|
||||
ndpi_no_prefs = 0,
|
||||
ndpi_dont_load_tor_list = (1 << 0),
|
||||
ndpi_dont_init_libgcrypt = (1 << 1),
|
||||
ndpi_dont_load_azure_list = (1 << 3),
|
||||
ndpi_dont_load_whatsapp_list = (1 << 4),
|
||||
ndpi_dont_load_amazon_aws_list = (1 << 5),
|
||||
ndpi_dont_load_ethereum_list = (1 << 6),
|
||||
ndpi_dont_load_zoom_list = (1 << 7),
|
||||
ndpi_dont_load_cloudflare_list = (1 << 8),
|
||||
ndpi_dont_load_microsoft_list = (1 << 9),
|
||||
ndpi_dont_load_google_list = (1 << 10),
|
||||
ndpi_dont_load_google_cloud_list = (1 << 11),
|
||||
ndpi_dont_load_asn_lists = (1 << 12),
|
||||
ndpi_dont_load_icloud_private_relay_list = (1 << 13),
|
||||
ndpi_dont_init_risk_ptree = (1 << 14),
|
||||
ndpi_dont_load_cachefly_list = (1 << 15),
|
||||
ndpi_track_flow_payload = (1 << 16),
|
||||
/* In some networks, there are some anomalous TCP flows where
|
||||
the smallest ACK packets have some kind of zero padding.
|
||||
@@ -1541,15 +1527,11 @@ typedef enum {
|
||||
correct detection/classification.
|
||||
See #1946 for other details */
|
||||
ndpi_enable_tcp_ack_payload_heuristic = (1 << 17),
|
||||
ndpi_dont_load_crawlers_list = (1 << 18),
|
||||
ndpi_dont_load_protonvpn_list = (1 << 19),
|
||||
/* Heuristic to detect fully encrypted sessions, i.e. flows where every bytes of
|
||||
the payload is encrypted in an attempt to “look like nothing”.
|
||||
This heuristic only analyzes the first packet of the flow.
|
||||
See: https://www.usenix.org/system/files/sec23fall-prepub-234-wu-mingshi.pdf */
|
||||
ndpi_disable_fully_encrypted_heuristic = (1 << 20),
|
||||
ndpi_dont_load_protonvpn_exit_nodes_list = (1 << 21),
|
||||
ndpi_dont_load_mullvad_list = (1 << 22),
|
||||
} ndpi_prefs;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user