aboutsummaryrefslogtreecommitdiff
path: root/utils/google_ip_addresses_download.sh
blob: 9560ef3c9329ad979f91a29748286b3d4ef5ed7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"