Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I prevent Google Compute Engine external ip for public and cloudflare whitelist for GCE?

I need to prevent Google Cloud Engine external ip for public access, I mean users can access site only via domain over cloudflare, not GCE vm instance external ip. Maybe I must make Cloudflare IP ranges(https://www.cloudflare.com/ips-v4) whitelist from VPC Network/Firewall rules, but I don't know how?

enter image description here

like image 678
nikli Avatar asked Oct 29 '22 23:10

nikli


1 Answers

Thanks, I've only added https://www.cloudflare.com/ips-v4 ip ranges to default-allow-http and default-allow-https, then solved

like image 68
nikli Avatar answered Nov 15 '22 08:11

nikli