googerteller
googerteller copied to clipboard
Find way to also do Facebook
trafficstars
To do Facebook as well, and separate it out from Google, we need some more work. The tcpdump trick won't work for that.
https://stackoverflow.com/a/11164738
This stackoverflow post states that we can use the whois command to get all the subnets from facebook.
You can make an approximate list of prefixes by installing https://github.com/bgp/bgpq4 and https://github.com/job/aggregate6 utilities and chaining them like so:
$ (bgpq4 -F"%n/%l\n" AS-FACEBOOK && bgpq4 -6 -F"%n/%l\n" AS-FACEBOOK) | aggregate6
31.13.24.0/21
31.13.64.0/18
45.64.40.0/22
...