googerteller/README.md

57 lines
1.3 KiB
Markdown
Raw Normal View History

2022-08-21 21:41:01 +02:00
# googerteller
Audible feedback on just how much your browsing feeds into Google.
2022-08-21 22:48:40 +02:00
2022-08-22 00:07:55 +02:00
By bert@hubertnet.nl / https://berthub.eu/
2022-08-21 22:48:40 +02:00
## 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` in Arch Linux).
Then run:
2022-08-21 22:48:40 +02:00
```bash
2022-08-21 22:48:40 +02:00
cmake .
make
```
## How to run
2022-08-21 22:48:40 +02:00
```bash
2022-08-21 23:36:55 +02:00
sudo tcpdump -n -l dst net 192.0.2.1/32 $(for a in $(cat goog-prefixes.txt); do echo or dst net $a; done) | ./teller
2022-08-21 22:48:40 +02:00
```
Replace `192.0.2.1` with the IP address of your default gateway (e.g. your Internet router).
2022-08-21 22:48:40 +02:00
And then cry.
### Arch Linux
googerteller is available as a package in the Arch User Repository (AUR), you can install and run with the following commands:
```bash
git clone ssh://aur@aur.archlinux.org/googerteller-git.git
cd googerteller-git
makepkg -si
googerteller
```
2022-08-22 13:23:14 +02:00
## Problems
If `tcpdump` complains about `Warning: Kernel filter failed: Cannot allocate memory`, try
2022-08-22 13:23:14 +02:00
this first:
```bash
2022-08-22 13:23:14 +02:00
sudo sysctl net.core.optmem_max=204800
```
## Data source
The list of Google services IP addresses can be found on [this Google
support page](https://support.google.com/a/answer/10026322?hl=en).
Note that this splits out Google services and Google cloud user IP
addresses.