Add support for Google Cloud (#1447)

Differentiate between Google its own apps/services and Google Cloud.
We already do something similar for Amazon vs AWS and Microsoft vs Azure.
This commit is contained in:
Ivan Nardi
2022-02-20 10:19:52 +01:00
committed by GitHub
parent 75a53ad064
commit 2f5f445f72
18 changed files with 797 additions and 99 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
cd "$(dirname "${0}")" || return
DEST=../src/lib/ndpi_google_match.c.inc
LIST=/tmp/google.list
echo "(1) Downloading file..."
#Nothing to do
echo "(2) Processing IP addresses..."
#https://cloud.google.com/vpc/docs/configure-private-google-access#ip-addr-defaults
python3 google.py > $LIST
./ipaddr2list.py $LIST NDPI_PROTOCOL_GOOGLE > $DEST
#rm -f $TMP $LIST
echo "(3) Google IPs are available in $DEST"