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

前端 未结 8 2007
孤独总比滥情好
孤独总比滥情好 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:45

    You need to:

    1. Go to cloud.google.com

    2. Go to my Console

    3. Choose your Project

    4. Choose Networking > VPC network

    5. Choose "Firewalls rules"

    6. Choose "Create Firewall Rule"

    7. To apply the rule to select 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. Then, make sure the instances have the network tag applied.

    8. To allow incoming TCP connections to port 9090, in "Protocols and Ports" enter tcp:9090

    9. Click Create

    I hope this helps you.

    Update Please refer to docs to customize your rules.

提交回复
热议问题