Skip to main content

Gmail Ips address ranges

Gmail

Si, gmail tambien tiene sus lios con fallos en los SPF, con algun problema como todos. Y a diferencia del resto de los ISP, a Google como Microsoft, les tenemos tanto miedo que tenemos que protegernos de que sus ip caigan en lista negra o que incumplan lo que a nosotros se nos exige.

Esto es asi. Es imposible lidiar con un cliente, o con un administrador de una empresa que no pueda enviarnos correos porque el servidor XXX de Gmail, no ha firmado correctamente el correo con DKIM, o porque hay una falla en el SPF.

Como obtener las IP de gMail

❯ dig +short gmail.com txt
gmail.com.              300     IN      TXT     "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
gmail.com.              300     IN      TXT     "v=spf1 redirect=_spf.google.com"

❯ dig +short _spf.google.com TXT
"v=spf1 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com ~all"

❯ dig +short _netblocks.google.com TXT
"v=spf1 ip4:35.190.247.0/24 ip4:64.233.160.0/19 ip4:66.102.0.0/20 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:74.125.0.0/16 ip4:108.177.8.0/21 ip4:173.194.0.0/16 ip4:209.85.128.0/17 ip4:216.58.192.0/19 ip4:216.239.32.0/19 ~all"
❯ dig +short _netblocks2.google.com TXT
"v=spf1 ip6:2001:4860:4000::/36 ip6:2404:6800:4000::/36 ip6:2607:f8b0:4000::/36 ip6:2800:3f0:4000::/36 ip6:2a00:1450:4000::/36 ip6:2c0f:fb50:4000::/36 ~all"
❯ dig +short _netblocks3.google.com TXT
"v=spf1 ip4:172.217.0.0/19 ip4:172.217.32.0/20 ip4:172.217.128.0/19 ip4:172.217.160.0/20 ip4:172.217.192.0/19 ip4:172.253.56.0/21 ip4:172.253.112.0/20 ip4:108.177.96.0/19 ip4:35.191.0.0/16 ip4:130.211.0.0/22 ~all"

Google public DNS

Pendiente hacer el trabajo con un scriot como lo tengo con los google dns, pero incluyendo los Google gmail.

Listado de IP de google y gmail (IPV4)

# google
34.64.0.0/24 
34.64.1.0/24 
34.64.2.0/24 
34.101.0.0/24 
34.101.1.0/24 
34.101.2.0/24 
74.125.16.128/26 
74.125.16.192/26 
74.125.17.128/26 
74.125.17.192/26 
74.125.18.0/25 
74.125.18.128/26 
74.125.18.192/26 
74.125.19.0/25 
74.125.19.128/25 
74.125.40.0/25 
74.125.40.128/26 
74.125.40.192/26 
74.125.41.0/24 
74.125.42.0/24 
74.125.43.0/25 
74.125.43.128/25 
74.125.44.0/24 
74.125.45.0/24 
74.125.46.0/24 
74.125.47.0/24 
74.125.72.0/24 
74.125.73.0/24 
74.125.74.0/24 
74.125.75.0/24 
74.125.76.0/24 
74.125.77.0/24 
74.125.78.0/24 
74.125.79.0/24 
74.125.80.0/24 
74.125.81.0/24 
74.125.92.0/24 
74.125.112.0/24 
74.125.113.0/24 
74.125.114.128/26 
74.125.114.192/26 
74.125.115.0/24 
74.125.177.0/24 
74.125.178.0/25 
74.125.178.128/25 
74.125.179.0/25 
74.125.179.128/26 
74.125.179.192/26 
74.125.180.0/24 
74.125.181.0/25 
74.125.181.128/26 
74.125.181.192/26 
74.125.182.0/24 
74.125.183.0/24 
74.125.184.0/24 
74.125.185.0/25 
74.125.185.128/26 
74.125.185.192/26 
74.125.186.0/25 
74.125.186.128/26 
74.125.186.192/26 
74.125.187.0/25 
74.125.187.128/26 
74.125.187.192/26 
74.125.189.0/24 
74.125.190.0/24 
74.125.191.0/24 
172.217.32.0/25 
172.217.32.128/26 
172.217.32.192/26 
172.217.33.0/25 
172.217.33.128/25 
172.217.34.0/26 
172.217.34.64/26 
172.217.34.128/26 
172.217.34.192/26 
172.217.35.0/26 
172.217.35.64/26 
172.217.35.128/26 
172.217.35.192/26 
172.217.36.0/24 
172.217.37.0/25 
172.217.37.128/26 
172.217.37.192/26 
172.217.38.0/25 
172.217.38.128/26 
172.217.38.192/26 
172.217.39.0/25 
172.217.39.128/26 
172.217.39.192/26 
172.217.40.0/25 
172.217.40.128/26 
172.217.40.192/26 
172.217.41.0/25 
172.217.41.128/26 
172.217.41.192/26 
172.217.42.0/25 
172.217.42.128/26 
172.217.42.192/26 
172.217.43.0/25 
172.217.43.128/26 
172.217.43.192/26 
172.217.44.0/25 
172.217.44.128/26 
172.217.44.192/26 
172.217.45.0/25 
172.217.45.128/25 
172.217.46.0/24 
172.217.47.0/25 
172.217.47.128/25 
172.253.0.0/25 
172.253.0.128/25 
172.253.1.0/25 
172.253.1.128/26 
172.253.1.192/26 
172.253.2.0/25 
172.253.2.128/26 
172.253.2.192/26 
172.253.3.0/25 
172.253.3.128/25 
172.253.4.0/25 
172.253.4.128/25 
172.253.5.0/25 
172.253.5.128/25 
172.253.6.0/25 
172.253.6.128/25 
172.253.7.0/25 
172.253.7.128/26 
172.253.7.192/26 
172.253.8.0/25 
172.253.8.128/26 
172.253.8.192/26 
172.253.9.0/25 
172.253.9.128/26 
172.253.9.192/26 
172.253.10.0/25 
172.253.10.128/25 
172.253.11.0/25 
172.253.11.128/26 
172.253.11.192/26 
172.253.12.0/25 
172.253.12.128/25 
172.253.13.0/25 
172.253.13.128/26 
172.253.13.192/26 
172.253.14.0/25 
172.253.14.128/26 
172.253.14.192/26 
172.253.15.0/25 
172.253.15.128/26 
172.253.15.192/26 
172.253.192.0/24 
172.253.193.0/25 
172.253.193.128/26 
172.253.193.192/26 
172.253.194.0/25 
172.253.194.128/26 
172.253.194.192/26 
172.253.195.0/25 
172.253.195.128/26 
172.253.195.192/26 
172.253.196.0/25 
172.253.196.128/26 
172.253.196.192/26 
172.253.197.0/25 
172.253.197.128/26 
172.253.197.192/26 
172.253.198.0/25 
172.253.198.128/26 
172.253.198.192/26 
172.253.199.0/25 
172.253.199.128/26 
172.253.199.192/26 
172.253.200.0/25 
172.253.200.128/26 
172.253.200.192/26 
172.253.201.0/25 
172.253.201.128/25 
172.253.202.0/24 
172.253.204.0/25 
172.253.204.128/26 
172.253.204.192/26 
172.253.205.0/24 
172.253.206.0/24 
172.253.209.0/25 
172.253.209.128/26 
172.253.209.192/26 
172.253.210.0/25 
172.253.210.128/25 
172.253.211.0/25 
172.253.211.128/26 
172.253.211.192/26 
172.253.212.0/25 
172.253.212.128/26 
172.253.212.192/26 
172.253.213.0/25 
172.253.213.128/25 
172.253.214.0/25 
172.253.214.128/26 
172.253.214.192/26 
172.253.215.0/25 
172.253.215.128/26 
172.253.215.192/26 
172.253.216.0/25 
172.253.216.128/26 
172.253.216.192/26 
172.253.217.0/25 
172.253.217.128/25 
172.253.218.0/25 
172.253.218.128/26 
172.253.218.192/26 
172.253.219.0/25 
172.253.219.128/26 
172.253.219.192/26 
172.253.220.0/25 
172.253.220.128/26 
172.253.220.192/26 
172.253.221.0/25 
172.253.221.128/26 
172.253.221.192/26 
172.253.222.0/25 
172.253.222.128/26 
172.253.222.192/26 
172.253.223.0/25 
172.253.223.128/26 
172.253.223.192/26 
172.253.224.0/24 
172.253.225.0/24 
172.253.226.0/24 
172.253.227.0/24 
172.253.228.0/24 
172.253.229.0/24 
172.253.230.0/24 
172.253.231.0/24 
172.253.232.0/24 
172.253.233.0/24 
172.253.234.0/24 
172.253.235.0/24 
172.253.236.0/24 
172.253.237.0/24 
172.253.238.0/24 
172.253.239.0/24 
172.253.240.0/24 
172.253.241.0/24 
172.253.242.0/24 
172.253.243.0/24 
172.253.244.0/24 
172.253.245.0/24 
172.253.246.0/24 
172.253.247.0/24 
172.253.248.0/24 
172.253.249.0/24 
172.253.250.0/24 
172.253.251.0/24 
172.253.252.0/24 
172.253.253.0/24 
172.253.254.0/24 
172.253.255.0/24 
173.194.90.0/24 
173.194.91.0/24 
173.194.93.0/24 
173.194.94.0/24 
173.194.95.0/24 
173.194.96.0/25 
173.194.96.128/25 
173.194.97.0/24 
173.194.98.0/24 
173.194.99.0/24 
173.194.100.0/24 
173.194.101.0/24 
173.194.102.0/24 
173.194.103.0/24 
173.194.168.0/25 
173.194.168.128/26 
173.194.168.192/26 
173.194.169.0/24 
173.194.170.0/24 
173.194.171.0/24 
108.177.16.0/24
108.177.17.0/24
142.250.220.0/24
142.250.221.0/24
64.18.0.0/20
64.233.160.0/19
66.102.0.0/20
66.249.80.0/20
72.14.192.0/18
74.125.0.0/16
108.177.8.0/21
108.177.96.0/19
172.217.0.0/19
173.194.0.0/16
207.126.144.0/20
209.85.128.0/17
216.58.192.0/19
216.239.32.0/19
# end google ipv4