How to open a specific port such as 9090 in Google Compute Engine

前端 未结 8 2019
孤独总比滥情好
孤独总比滥情好 2020-11-22 13:15

I have 2 Google Compute Engine instances and I want to open port 9090 in both the instances. I think we need to add some firewall rules.

Can you tell me how can I

8条回答
  •  没有蜡笔的小新
    2020-11-22 13:32

    console.cloud.google.com >> select project >> Networking > VPC network >> firewalls >> create firewall.

    To apply the rule to VM instances, select Targets, "Specified target tags", and enter into "Target tags" the name of the tag. This tag will be used to apply the new firewall rule onto whichever instance you'd like.

    in "Protocols and Ports" enter tcp:9090

    Click Save.

提交回复
热议问题