Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eduardolat/8e6c2d6e2dad9f10ebf8e647f669896a to your computer and use it in GitHub Desktop.
Save eduardolat/8e6c2d6e2dad9f10ebf8e647f669896a to your computer and use it in GitHub Desktop.
Open Port 80 Oracle Cloud Compute Instance (CentOS)

Open Port 80 Oracle Cloud Compute Instance (CentOS)

FYI This was harder than it needed to be:

  1. Looking at your instance info, find VNIC section, click "Public Subnet".
  2. Click on your security list.
  3. Add a new entry with the following options:
  • "Stateless" = No, "Source" = 0.0.0.0/0, "IP Protocol" = TCP, "Source Port Range" = All, "Destination Port Range" = 80
  1. SSH to your instance.
  2. While SSH'ed in your instance, run command firewall-cmd --permanent --add-service=http.
  3. While SSH'ed in your instance, run command firewall-cmd --reload.
  4. Now start Apache, NGINX, or whatever server you need to on port 80. You can now access from the internet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment