question

SebastianRichel-5178 avatar image
0 Votes"
SebastianRichel-5178 asked shivapatpi-MSFT commented

Open port 443 Ubuntu VM

I cannot get port 443 to open. I have tried to open the firewall and set the network security rule. But the only ports that are open are 22 and 80

nmap:
Starting Nmap 7.80 ( https://nmap.org ) at 2021-11-08 15:33 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00013s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http

ufw firewall status:

 Status: active
 Logging: on (low)
 Default: deny (incoming), allow (outgoing), disabled (routed)
 New profiles: skip
    
 To                         Action      From
 --                         ------      ----
 443/tcp                    ALLOW IN    Anywhere                  
 443                        ALLOW IN    Anywhere                  
 80                         ALLOW IN    Anywhere                  
 22                         ALLOW IN    Anywhere                  
 443/tcp (v6)               ALLOW IN    Anywhere (v6)             
 443 (v6)                   ALLOW IN    Anywhere (v6)             
 80 (v6)                    ALLOW IN    Anywhere (v6)             
 22 (v6)                    ALLOW IN    Anywhere (v6) 


Network security rules:
147437-screen-shot-2021-11-08-at-105044-am.png


azure-virtual-machines
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shivapatpi-MSFT avatar image
1 Vote"
shivapatpi-MSFT answered shivapatpi-MSFT commented

Hello @SebastianRichel-5178 ,
As per the above screen shot and description all the NSG rules looks good. Try running an application listening at port 443 and then check out using nmap localhost. It should then show under list of open ports

Regards,
Shiva.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

port 443 is now open, I didn't realize you needed to have an app using a port for it to show up on nmap, thanks! Now I am getting error ERR_SSL_VERSION_OR_CIPHER_MISMATCH when trying to connect via HTTPS.

0 Votes 0 ·

Glad that we are able to help you out. Please make sure to Upvote & Accept the above answer so that it will help out to the community out there looking for similar issues.

FYI - Above error means it is expecting a valid SSL certificate , make sure you deploy the required certificates for accessing the deployed application , basically port 443 is for https to securely access the applications.

Regards,
Shiva.

1 Vote 1 ·