Add firewall rule in front of a Google Cloud Load Balancer

Solution 1:

Yes, by adding Google Cloud Armor.

Create a security policy. Add rules to the security policy. Assign the security policy to HTTP Load Balancer. If your goal is to only allow traffic from specific addresses, be sure to change the default rule to DENY.

Configuring Google Cloud Armor security policies

Cloud Armor makes it very easy to create a rule based upon IP address match.

enter image description here