0
votes

I have a GCP compute engine instance where I've been trying to open several external ports. I am unable to connect to my static external IP and also unable to connect within the cloud shell using curl localhost:80 or localhost:443.

I have added multiple firewall rules which should allow access. Output of firewall rules list and nmap here https://imgur.com/a/mWgw2H2

I would expect to be able to make connections with all of these.

Edit: image with targets https://imgur.com/a/qZ2Dl7r

1
Show how you are assigning a firewall rule to an instance (hint: network tags).John Hanley
Edited with info.tacools10
1) I do not see a rule allowing port 443. 2) I do not see any services listening on either port 80 or 443.John Hanley
Note: Do not include links to screenshots in your question. All details must be in your question without clicking links to pictures.John Hanley

1 Answers

0
votes

In addition to previous comments by john-hanley@, default HTTP and HTTPS firewall rules are applied to GCE instances using the network tags, you will need to check the Allow HTTP traffic and Allow HTTPS traffic while creating the GCE instance or by editing the existing VM instance. Also as mentioned it seems there is nothing listening on the mentioned ports as seen in the screenshot for nmap scan. port 80 http is closed.