Add PIA (Private Internet Access) support (#2250)

* Fix typo in protocols.rst

* Add PIA (Private Internet Access) support

* Update ndpi_main.c
This commit is contained in:
Vladimir Gavrilov
2024-01-09 18:28:57 +01:00
committed by GitHub
parent ead5bf2adb
commit 3d57dec6b4
8 changed files with 58 additions and 12 deletions
+1
View File
@@ -412,6 +412,7 @@ typedef enum {
NDPI_PROTOCOL_CEPH = 381,
NDPI_PROTOCOL_GOOGLE_CHAT = 382,
NDPI_PROTOCOL_ROUGHTIME = 383,
NDPI_PROTOCOL_PIA = 384,
#ifdef CUSTOM_NDPI_PROTOCOLS
#include "../../../nDPI-custom/custom_ndpi_protocol_ids.h"
+3
View File
@@ -1580,6 +1580,8 @@ static ndpi_protocol_match host_match[] =
{ ".tesla.services", "TeslaServices", NDPI_PROTOCOL_TESLA_SERVICES, NDPI_PROTOCOL_CATEGORY_NETWORK, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL },
{ "digitalassets.tesla.com", "TeslaServices", NDPI_PROTOCOL_TESLA_SERVICES, NDPI_PROTOCOL_CATEGORY_NETWORK, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL },
{ "privateinternetaccess.com", "PrivateInternetAccess", NDPI_PROTOCOL_PIA, NDPI_PROTOCOL_CATEGORY_VPN, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL },
#ifdef CUSTOM_NDPI_PROTOCOLS
#include "../../../nDPI-custom/custom_ndpi_content_match_host_match.c.inc"
#endif
@@ -1607,6 +1609,7 @@ static ndpi_tls_cert_name_match tls_certificate_match [] = {
{ "O=Riot Games, Inc.", NDPI_PROTOCOL_RIOTGAMES },
{ "O=Riot Games Inc", NDPI_PROTOCOL_RIOTGAMES },
{ "O=NoMachine", NDPI_PROTOCOL_NOMACHINE },
{ "O=Private Internet Access", NDPI_PROTOCOL_PIA },
{ "CN=Snapchat Inc.", NDPI_PROTOCOL_SNAPCHAT_CALL },
{ "CN=NVIDIA GameStream", NDPI_PROTOCOL_GEFORCENOW },