Table of Contents
ToggleOracle 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.
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.
After that select on default security list under add security list.
Under ingress, rules select add ingress rules.
Now edit the following like this:
Once done adding the ingress rules you now need to open the ports on your firewall.
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.
sudo ufw allow 80/tcp
sudo ufw allow 8080/tcp
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
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.