Files
nDPI/utils/google_ip_addresses_download.sh
T
Ivan Nardi 2f5f445f72 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.
2022-02-20 10:19:52 +01:00

18 lines
419 B
Bash
Executable File

#!/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"