Skip to content

Port 443 closed on Lightsail instance

0

The IPv4 and IPv6 firewall rules allow any traffic. When I run the nc -vnzu <static server IP> 443 command on my Mac terminal it produces: Connection to <static server IP> port 80 [udp/*] succeeded! When I run it through a port checker it comes back as closed. No changes have been made to this server for quite a while, but this started happening 1 day ago. Any help would be appreciated, thanks.

asked 2 years ago537 views

3 Answers
0
Accepted Answer

Thanks for the help. It turns out there was another install of nginx on the server that was causing the issue.

answered 2 years ago

0

Hello.

Can I check not only Lightsail's firewall but also the OS's firewall?
For example, if Lightsail's OS is Ubuntu, you can check the firewall rules with the following command.
Please confirm that the action column for port 443 is set to Allow using the command below.
If port 443 is denied or nothing is displayed, try adding a rule using the "ufw allow" command.

sudo ufw status

sudo ufw allow 443/tcp

Also, if there are no problems with your firewall, please check if it is listening to port 443.
If you cannot confirm port 443 using the command below, there may be a problem with the web server, so please recheck the web server settings and check the logs.

sudo lsof -i:443 -P 
EXPERT

answered 2 years ago

0

I'm confused by the command and the output - you report that running nc -vnzu <static server IP> 443 gives the output Connection to <static server IP> port 80 [udp/*] succeeded!

If you're attempting to establish a connection to port 443, why is the response talking about port 80?

I'm also wondering why you're passing the -u flag which forces it to use UDP rather than TCP? If it really is UDP that you want to use, make sure this protocol is open in the firewall for those port(s).

EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.