Did anyone get it working on MacOS? I couldn't find the audio library in homebrew and gave up.
sudo tcpdump -i en0 -n -l dst host 8.8.8.8 $(for a in $(curl -s https://raw.githubusercontent.com/berthubert/googerteller/main/goog-prefixes.txt); do echo or dst net $a; done) | while read; do tput bel; done
Link to read the list (remember to read what you curl | bash): https://raw.githubusercontent.com/berthubert/googerteller/ma... 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) | xargs -I {} bash -c "tput bel"
EDIT: it's definitely not as good as the OPs solution as the bells sometimes get skipped when there are lots of packets.