Add some scripts to easily update some IPs lists (#1449)
While the lists ina6ff0dd0and2f5f445fare somehow provided by the companies themselves (or by some interested parties), these new lists are directly extracted from BGP information, via AS prefixes. *Usually*, these new lists are far more stable than the previous ones. TODO: * add some other ASNs (see `src/lib/ndpi_content_match.c.inc`) * IPv6, as usual :-(
This commit is contained in:
@@ -63,6 +63,13 @@
|
||||
#include "ndpi_ms_skype_teams_match.c.inc"
|
||||
#include "ndpi_google_match.c.inc"
|
||||
#include "ndpi_google_cloud_match.c.inc"
|
||||
#include "ndpi_asn_telegram.c.inc"
|
||||
#include "ndpi_asn_apple.c.inc"
|
||||
#include "ndpi_asn_twitter.c.inc"
|
||||
#include "ndpi_asn_netflix.c.inc"
|
||||
#include "ndpi_asn_webex.c.inc"
|
||||
#include "ndpi_asn_teamviewer.c.inc"
|
||||
#include "ndpi_asn_facebook.c.inc"
|
||||
|
||||
/* Third party libraries */
|
||||
#include "third_party/include/ndpi_patricia.h"
|
||||
@@ -2427,6 +2434,15 @@ struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_google_protocol_list);
|
||||
if(!(prefs & ndpi_dont_load_google_cloud_list))
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_google_cloud_protocol_list);
|
||||
if(!(prefs & ndpi_dont_load_asn_lists)) {
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_telegram_protocol_list);
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_apple_protocol_list);
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_twitter_protocol_list);
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_netflix_protocol_list);
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_webex_protocol_list);
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_teamviewer_protocol_list);
|
||||
ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_facebook_protocol_list);
|
||||
}
|
||||
}
|
||||
|
||||
ndpi_str->ip_risk_mask_ptree = ndpi_patricia_new(32 /* IPv4 */);
|
||||
|
||||
Reference in New Issue
Block a user