将GCP云功能的触发限制为某些IP范围
我使用GCP云功能来触发基于另一个系统的HTTP重新要求的操作。我知道请求来自何处的IP范围,我想仅根据此IP范围的请求限制触发操作。
我应该怎么做?我试图将IP范围作为子网添加到我的默认VPC网络中,并限制云功能以允许内部流量,但是由于403错误,请求并未通过。
先感谢您。
I use GCP cloud functions to trigger actions based on http-requests from another system. I know the IP-range where the requests come from and I want to restrict triggering the actions only on requests from this IP-range.
How should I go about this? I have tried to add the IP-range as a subnet to my default VPC-network and restrict the cloud function to Allow internal traffic only, but the requests do not come through due to 403 error.
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够通过使用负载平衡产品并设置用于过滤IP地址的云装甲来实现这一目标。
I was able to achieve this by using Load Balancing-product and setting up Cloud Armor for filtering the IP addresses.