Skip to content

Instantly share code, notes, and snippets.

@itsalb3rt
Forked from jbaranski/OracleOpenPort80Centos.md
Created October 15, 2021 03:28
Show Gist options
  • Save itsalb3rt/1425922eb952e06028b49b6c4ab2b274 to your computer and use it in GitHub Desktop.
Save itsalb3rt/1425922eb952e06028b49b6c4ab2b274 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