Skip to content

Instantly share code, notes, and snippets.

@jbaranski
Created September 26, 2020 02:00
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save jbaranski/4671af6cdd6e4038cb90b357d3335fb9 to your computer and use it in GitHub Desktop.
Save jbaranski/4671af6cdd6e4038cb90b357d3335fb9 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.
@ualisonaguiar
Copy link

thanks

@inigoalda
Copy link

Thank you!

@mtovmassian
Copy link

It saved me hours! 🙌

@Mcrich23
Copy link

Mcrich23 commented Mar 27, 2024

it won't work. Edit: there was a vnic issue

@Rouliooooo
Copy link

Thanks, that's perfect !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment