google-compute-engine"/>
Answer
    • I may be wrong. No forwarding rules are needed. With only a firewall rule it works. gcloud compute firewall-rules list

The HTTP option that you have checked when creating the instance is mapped to a firewall rule in GCE network firewall, which is for incoming traffic on port 80. As such, this will allow incoming HTTP traffic to your VM instance. To learn more about firewall rules you can go through this link.

The forwarding rules are used for load balancing and protocol forwarding purposes. If you have not configured a load balancer or protocol forwarding the gcloud compute forwarding-rules will not output anything. You can refer to this link for more information on forwarding rule.

  • 1
Reply Report
      • 2
    • OK. I was wrong to confuse the forwarding with the firewall. Your answer is backing my understanding. Thanks.

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions