Hello Daniel,
You can set firewall rules assignment with the
service account (beta). Service accounts are used by the applications to call the
Google API of a service. GCE VM instance may run as a service account, and that account can be given permissions to access the resources it needs. As such, creating firewall rule with "Source service account" or "Target service account" allow/deny communication among the services associated with the respective service accounts.
The firewall rule for the IP ranges
130.211.0.0/22 and
35.191.0.0/16 should allow traffic from both the HTTP(s) load balancer and the health checker. Network load balancing, the
health check probes come from addresses in the ranges
209.85.152.0/22,
209.85.204.0/22, and
35.191.0.0/16. For HTTP(S), SSL proxy, TCP proxy, and Internal load balancing, the
health check probes come from addresses in the ranges
130.211.0.0/22 and
35.191.0.0/16. It is not possible to bind the load balancers and health check IP ranges to a service account. As such, it is not possible to define the
firewall rule based on the service account.