audible feedback on just how much your browsing feeds into google
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Chris Blom 0e977851fe
add libpcaudio dependency name for Arch/Manjaro
3 years ago
.gitignore and docs for better setup 3 years ago
CMakeLists.txt Explicit link to pthread 3 years ago
LICENSE Initial commit 3 years ago
README.md add libpcaudio dependency name for Arch/Manjaro 3 years ago
cidr.py Add scripts for tracking single process 3 years ago
cloud.json add the google cloud list 3 years ago
goog-cloud-prefixes.txt add more google prefixes 3 years ago
goog-cloud-prefixes6.txt add more google prefixes 3 years ago
goog-prefixes.txt add preprocessed file 3 years ago
goog-prefixes6.txt add more google prefixes 3 years ago
goog.json initial 3 years ago
ipset-setup.sh and docs for better setup 3 years ago
netsendmsg.bt Add scripts for tracking single process 3 years ago
teller.cc Fix issue #4 3 years ago

README.md

googerteller

Audible feedback on just how much your browsing feeds into Google.

By bert@hubertnet.nl / https://berthub.eu/

Makes a little bit of noise any time your computer sends a packet to a Google service, which excludes Google Cloud users.

Demo video in this tweet

How to compile

You need a C++ compiler like gcc-c++ and CMake for compiling the binary.

You also need to install libpcaudio (libpcaudio-dev on Debian/Ubuntu, pcaudiolib-devel on Fedora/Red Hat, pcaudiolib on Arch/Manjaro).

Then run:

cmake .
make

How to run

Google is so large its IPv4 and IPv6 footprint can't be handled by tcpdump, or at least not efficiently. Therefore we need to define an ip(6)tables ipset. This will first exclude Google Cloud, and then include all the other Google IP addresses.

Install iptables 'ipset', and run (as root) the ipset-setup.sh script, or execute:

ipset create google-services hash:net
for a in $(cat goog-cloud-prefixes.txt)
do 
echo $a
	ipset add google-services $a nomatch
done 
for a in $(cat goog-prefixes.txt)
do 
	ipset add google-services $a
done

ipset create google-services6 hash:net family inet6
for a in $(cat goog-cloud-prefixes6.txt)
do 
	ipset add google-services6 $a nomatch
done 

for a in $(cat goog-prefixes6.txt)
do 
	ipset add google-services6 $a
done
iptables -I OUTPUT -m set --match-set google-services dst -j NFLOG --nflog-group 20 --nflog-threshold 1
ip6tables -I OUTPUT -m set --match-set google-services6 dst -j NFLOG --nflog-group 20 --nflog-threshold 1

Then start as:

sudo tcpdump -i nflog:20 -ln | ./teller

Or, to track a single process, fe firefox, start it and run:

sudo bpftrace netsendmsg.bt |
    grep --line-buffered ^$(pgrep firefox) |
    stdbuf -oL cut -f2 | ./cidr.py | ./teller

And cry.

Data source

The list of Google services IP addresses can be found on this Google support page.

Note that this splits out Google services and Google cloud user IP addresses. However, it appears the Google services set includes the cloud IP addresses, so you must check both sets before determining something is in fact a Google service and not a Google customer.