Strange port issue

Hey!

Got a VPS yesterday, setup the server correctly.

I then allow the port in ufw, both tcp and udp.

However, when i start the server and check for the port, it says its filtered. Which means “A port is marked as “filtered” when the packets are sent to that port, however packet filtering (e.g., firewall) prevents the packets from reaching that port.” - According to http://www.ipfingerprints.com/faq.php#q33

The strange part is that, when i close down the server, and then run the command “nc -l 30120” And then run the port check, it comes up as opened.

Im running ubuntu 16.04. Thanks!

contact your vps about this problem.

Turns out that all the ports were already open, and i didn’t even need to enable UFW!

I think by enabling UFW, it blocked the connection instead!