Question

How to allow mobile app, https, and web server through internal firewall

So I set up the ufw on my company’s servers. I need to allow the mobile application data. I’ve done sudo ufw allow 27017. sudo ufw allow 4000. sudo ufw allow https. sudo ufw allow http. (without the periods of course) when i click ufw status it is running. When I do an nmap scan it isn’t. Why is this?


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
December 26, 2022

Hi there,

In order for nmap to report that port 443 is open, you need to have a service listening on that port. You can check if this is the case with:

netstat -plant

For example if you have Nginx listening on port 80 (HTTP) then in order for it to start listening on port 443 (HTTPS) what you could do is to install an SSL certificate:

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

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up