In Google Compute Engine, after I created a instance with http option checked and can pass through web. But its forwarding rule isn't shown with "gcloud compute forwarding-rules" in command or "Load Balancing" in console.

Is HTTP forwarding rule configured as any special rule? or anything wrong in my understandings?

  • I may be wrong. No forwarding rules are needed. With only a firewall rule it works. gcloud compute firewall-rules list – jumeno Dec 9 '16 at 1:48

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.

  • OK. I was wrong to confuse the forwarding with the firewall. Your answer is backing my understanding. Thanks. – jumeno Dec 11 '16 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.