Report this

What is the reason for this report?

Opening port 443 on Linux

Posted on December 21, 2022

I followed the instructions below using ufw, it worked fine and tested instantly for ports 80 and 22, but for 443 I get Connection refused on the test, and no ufw block or in syslog or sign of attempt in auth.log.

Does DO block 443 on their own?

$ sudo ufw status | grep 443

To Action From


443/tcp ALLOW Anywhere 443/tcp (v6) ALLOW Anywhere (v6)

https://www.digitalocean.com/community/tutorials/opening-a-port-on-linux



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @phobrain,

Port 443 is not being blocked by DigitalOcean. I would assume that you do not have anything listening to port 443 and thus you can’t connect to it.

Additionally, I’ll assume you are using either Apache or Nginx. You’ll need to configure a vhost and in there say that your WebService should listen on port 443 for secure connections. The easiest way would be to install Let’s Encrypt and let it configure it automatically for you.

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

Hello @phobrain

DigitalOcean will not block this port on your droplet in any case.

Have in mind that even opening the port will need a service listening on it in order to load/open any resource, e.g a web server like Apache/Nginx needs to be configured to listen on this port in order to serve your app/web content.

Regards

I have a droplet accepting traffic on port 443. Do you have a server on port 443?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.