Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCP Firewall allow ingress traffic based on domain name

Is GCP Firewall able to allow ingress traffic based on a specific domain name?

I've googled about it and I didn't find any result on this.

All I know is it can allow or deny based on IP address.

like image 709
Fazrul Izwan Hassan Avatar asked Oct 21 '25 09:10

Fazrul Izwan Hassan


1 Answers

A network firewall typically acts at the packet level and since network packets don't carry information about the domain, the standard GCP VPC Firewall will not let you do that.

What you are looking for is an Application Firewall (or Layer 7 Firewall). Google Cloud has another service called Cloud Armor that has WAF (Web Application Firewall) capabilities. I think that by using Cloud Armor and load balancers you might be able to do what you want.

like image 125
aalbagarcia Avatar answered Oct 24 '25 08:10

aalbagarcia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!