how to set up a firewall and open all ports in oracle cloud VPS 2023

set up a firewall and open all ports
set up a firewall and open all ports

Oracle cloud is a top-notch service provider with over 25 million users worldwide. They provide the computing, storage, networking, database, and platform services you need to deliver robust business outcomes as you rethink your data center needs.

In order to set up the firewall and open the ports you need to create an Oracle cloud free tier account. The free tier account allows you to create 2 free VM lifetime instances for free (no monthly charges).

Oracle gives you access to about 24GB ram, Arm-based Ampere A1 cores, and about 10 GB Object Storage all for free.

open all ports in oracle cloud

Once done creating the account you need to create a Linux Ubuntu/Debian VM.

When done creating your VM check under Primary VNIC on the subnet and select the words in blue.

set up a firewall and open all ports

After that select on default security list under add security list.

set up a firewall and open all ports

Under ingress, rules select add ingress rules.

set up a firewall and open all ports

Now edit the following like this:

  • Source type (Leave default CIDR)
  • Source CIDR ( )
  • IP Protocol (All protocols)
set up a firewall and open all ports

Once done adding the ingress rules you now need to open the ports on your firewall.

to set up a firewall and open all ports

To set up the firewall you need to log in to your VM via putty on PC or Juice SSH on Android using the IP address you were given when creating your VM.

Once done logging in, to have root access on your VM type:

sudo -i

and click enter. update and upgrade your VM using the following command.

sudo apt-get update && upgrade -y

activate your firewall

sudo ufw enable

To allow a port you need to type sudo ufw allow port/tcp (replace port with the number of the port you want to allow. ports I recommend you open.

  • port 80 (Apache)
  • port 8080 (HTTP connection)
  • port 443 (SSL/TLS tunnel)
port 80
sudo ufw allow 80/tcp
port 8080
sudo ufw allow 8080/tcp
port 443
sudo ufw allow 443/tcp

You can open using the command above, just replace the port number and put your own. Once you are done allowing the ports, you need to reboot your VM using:

sudo reboot

Leave a Reply

Your email address will not be published. Required fields are marked *

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO