将GCP云功能的触发限制为某些IP范围

发布于 2025-01-30 06:19:10 字数 159 浏览 5 评论 0原文

我使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦忆晨望 2025-02-06 06:19:10

我能够通过使用负载平衡产品并设置用于过滤IP地址的云装甲来实现这一目标。

I was able to achieve this by using Load Balancing-product and setting up Cloud Armor for filtering the IP addresses.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文