This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
google_ip_range [2020/05/25 23:14] kyxap add amazon and github |
google_ip_range [2021/03/29 05:31] (current) kyxap |
||
---|---|---|---|
Line 10: | Line 10: | ||
</code> | </code> | ||
- | ==== Google ==== | + | ==== Google1 ==== |
<code bash> | <code bash> | ||
dig +short TXT _spf.google.com \ | dig +short TXT _spf.google.com \ | ||
Line 18: | Line 18: | ||
| xargs netmask -s \ | | xargs netmask -s \ | ||
| perl -pne 's#(.+)/(.+)#route \1 \2 vpn_gateway#' | | perl -pne 's#(.+)/(.+)#route \1 \2 vpn_gateway#' | ||
+ | </code> | ||
+ | |||
+ | ==== Google2 ==== | ||
+ | <code bash> | ||
+ | wget -q https://www.gstatic.com/ipranges/goog.json -O - \ | ||
+ | | jq '.prefixes[] | select(.ipv4Prefix) | .ipv4Prefix' -r | ||
</code> | </code> | ||