diff options
author | Luca Deri <deri@ntop.org> | 2023-09-09 18:17:26 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2023-09-09 18:17:26 +0200 |
commit | 63977459b6d636a21e3407fa622916d11a582e52 (patch) | |
tree | 1d444b3d041d3ca29b79fcc41009a7b44764b421 /src | |
parent | 076edeab54bf4271e29f342882373171169fd651 (diff) |
Added OperaVPN detection
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_protocol_ids.h | 2 | ||||
-rw-r--r-- | src/lib/ndpi_content_match.c.inc | 2 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 15 |
3 files changed, 10 insertions, 9 deletions
diff --git a/src/include/ndpi_protocol_ids.h b/src/include/ndpi_protocol_ids.h index d3db7726d..d4cb02ebb 100644 --- a/src/include/ndpi_protocol_ids.h +++ b/src/include/ndpi_protocol_ids.h @@ -367,7 +367,7 @@ typedef enum { NDPI_PROTOCOL_HOTS = 336, /* Heroes of the Storm */ NDPI_PROTOCOL_FACEBOOK_REEL_STORY = 337, NDPI_PROTOCOL_SRTP = 338, - NDPI_PROTOCOL_FREE = 339, /* Formerly used by gambling now a category. It can be reused in the future */ + NDPI_PROTOCOL_OPERA_VPN = 339, NDPI_PROTOCOL_EPICGAMES = 340, NDPI_PROTOCOL_GEFORCENOW = 341, NDPI_PROTOCOL_NVIDIA = 342, diff --git a/src/lib/ndpi_content_match.c.inc b/src/lib/ndpi_content_match.c.inc index 6fe13e852..c2d521d52 100644 --- a/src/lib/ndpi_content_match.c.inc +++ b/src/lib/ndpi_content_match.c.inc @@ -890,6 +890,8 @@ static ndpi_protocol_match host_match[] = { "hotspotshield.com", "HotspotShield", NDPI_PROTOCOL_HOTSPOT_SHIELD, NDPI_PROTOCOL_CATEGORY_VPN, NDPI_PROTOCOL_POTENTIALLY_DANGEROUS, NDPI_PROTOCOL_DEFAULT_LEVEL }, { ".northghost.com", "HotspotShield", NDPI_PROTOCOL_HOTSPOT_SHIELD, NDPI_PROTOCOL_CATEGORY_VPN, NDPI_PROTOCOL_POTENTIALLY_DANGEROUS, NDPI_PROTOCOL_DEFAULT_LEVEL }, + { ".sec-tunnel.com", "OperaVPN", NDPI_PROTOCOL_OPERA_VPN, NDPI_PROTOCOL_CATEGORY_VPN, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL }, + { ".webex.com", "Webex", NDPI_PROTOCOL_WEBEX, NDPI_PROTOCOL_CATEGORY_VOIP, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL }, { ".webexcontent.com", "Webex", NDPI_PROTOCOL_WEBEX, NDPI_PROTOCOL_CATEGORY_VOIP, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL }, diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index c2da19baf..ae3c4c200 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -896,11 +896,11 @@ int ndpi_init_app_protocol(struct ndpi_detection_module_struct *ndpi_str, void ndpi_init_protocol_match(struct ndpi_detection_module_struct *ndpi_str, ndpi_protocol_match const * const match) { - if (ndpi_init_app_protocol(ndpi_str, match) == 0) { - ndpi_add_host_url_subprotocol(ndpi_str, match->string_to_match, - match->protocol_id, match->protocol_category, - match->protocol_breed, match->level); - } + if (ndpi_init_app_protocol(ndpi_str, match) == 0) { + ndpi_add_host_url_subprotocol(ndpi_str, match->string_to_match, + match->protocol_id, match->protocol_category, + match->protocol_breed, match->level); + } } /* ******************************************************************** */ @@ -2144,9 +2144,8 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "Mullvad", NDPI_PROTOCOL_CATEGORY_VPN, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); - - ndpi_set_proto_defaults(ndpi_str, 0 /* encrypted */, 1 /* app proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_FREE, - "Free", NDPI_PROTOCOL_CATEGORY_WEB, + ndpi_set_proto_defaults(ndpi_str, 0 /* encrypted */, 1 /* app proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_OPERA_VPN, + "OperaVPN", NDPI_PROTOCOL_CATEGORY_VPN, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); |