关于Google中的IP地址,我有一个问题。我知道没有办法有一个静态的IP地址,但我的客户已经设置了一个带有IP地址的Custom Domain
。我的问题是:
有一个端点(API)被连接在上面,问题是目的地需要IP地址和端口才能在其防火墙策略中打开。由于Google应用程序引擎上没有“静态IP”,我可以在Google App Engine中使用在"data"
下显示的IP地址吗?
因为当我在浏览器中输入域时,我会看到自定义域中列出的相同的IP。我可以通过运行:nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8
发送那些IP地址而不是IP池,因为nslookup中列出的域没有显示在网络中(远程地址)。
谢谢!
发布于 2019-03-06 00:00:26
运行nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8
的结果不是静态的。谷歌可以在任何时候引入new _cloud-netblocks
条目。
在Google文档一节中,静态IP地址和App应用程序是检索IP的推荐方法。你得跑:
nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8
然后,从响应中,您必须查询列出的每个_cloud-netblocksN
。让我们以这个查询响应为例:
Non-authoritative answer:
_cloud-netblocks.googleusercontent.com text = "v=spf1 include:_cloud-netblocks1.googleusercontent.com include:_cloud-netblocks2.googleusercontent.com include:_cloud-netblocks3.googleusercontent.com ?all
列出了3个_cloud-netblocksN
,因此您必须查询它们:
nslookup -q=TXT _cloud-netblocks1.googleusercontent.com 8.8.8.8
nslookup -q=TXT _cloud-netblocks2.googleusercontent.com 8.8.8.8
nslookup -q=TXT _cloud-netblocks3.googleusercontent.com 8.8.8.8
从上述每个条目的查询中返回的SPF记录将是您可以用于App的IP范围。
发布于 2020-06-30 07:36:27
AppEngine的静态IP地址现在可以使用无服务器的NEG和负载均衡器。
使用这种方法,还可以使用指向内部无服务器资源(不同的AppEngine服务、云功能等)的HTTPS负载均衡器配置多个域/子域。
https://stackoverflow.com/questions/54987500
复制