3 ms·
If you don't mind blocking everything hosted on GCP as well: > dig TXT +short _netblocks{,2,3}.google.com | tr ' ' '\n' | egrep "(ip4:|ip6:)" Gives you a full
by kyrra 7y ago
If you don't mind blocking everything hosted on GCP as well:
> dig TXT +short _netblocks{,2,3}.google.com | tr ' ' '\n' | egrep "(ip4:|ip6:)"
Gives you a full list of all of Google's IP blocks. You can just blackhole those.
- oil25 7y agoThis is far from a complete list - I got only 8 netblocks with that command. Try this one instead which queries Merit RADb: whois -h whois.radb.net '!gAS15169'
- fnord77 7y agohow come this seems to only work with ".google.com" tld? I tried .apple.com, .yahoo.com, etc. and got nothing.
- jedberg 7y agoIt's not a shortcut or anything, those are just Google's SPF records (which as noted above are drastically incomplete, they are only the IPs from which Google sends email).
- jedberg 7y agoThat's just their SPF record. It's only a list of IPs that google.com email might come from (or any domain that imports those records)
- _wmd 7y agoIt's in SPF format, but it's also everything. See e.g. https://cloud.google.com/appengine/kb/ https://cloud.google.com/appengine/kb/ Another method is using GeoIP's ASN database, but they also run many ASNs so it would require a little effort to ensure you have them all
- deleted 7y ago[deleted]