Oracle Cloud Always Free Compute http port is unavailable.

Home /

This is how I accomplished it without having to use iptables.

Create an Ingress Rule for port range 23-90 in Oracle Cloud vps’s dashboard/Networking/Virtual Cloud Networks, for example.

Then, on Ubuntu, install firewalld

sudo apt-get install firewalld
sudo systemctl enable firewalld
sudo systemctl start firewalld

This just has to be done once. After a reset, it will still be there.

Then, to open port 80, follow these steps:

sudo firewall-cmd --zone=public --add-port=80/tcp --permanent  #  or --add-service=http 
sudo firewall-cmd --reload


sudo firewall-cmd --list-all

The same is true when it comes to opening additional ports (s). Refer to the firewalld documentation for instructions on how to delete the port (—remove-port=80/tcp + a —reload).