如何阻止Google Compute Engine外部IP用于GCE的公共和cloudflare白名单?

时间:2017-11-15 19:37:18

标签: google-cloud-platform google-compute-engine firewall cloudflare

我需要阻止Google Cloud Engine外部IP进行公共访问,我的意思是用户只能通过cloudflare上的域访问网站,而不是GCE vm实例外部ip。也许我必须根据VPC网络/防火墙规则制作Cloudflare IP范围(https://www.cloudflare.com/ips-v4)白名单,但我不知道怎么做?

enter image description here

1 个答案:

答案 0 :(得分:1)

谢谢,我只将https://www.cloudflare.com/ips-v4个ip范围添加到default-allow-http和default-allow-https,然后解决了