Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pedro-hos/4eb8f7dcbf9a342697c72b785bb58f0e to your computer and use it in GitHub Desktop.
Save pedro-hos/4eb8f7dcbf9a342697c72b785bb58f0e to your computer and use it in GitHub Desktop.
Open a port in the firewall on CentOS or RHEL
$ sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
$ sudo firewall-cmd --reload
$ firewall-cmd --list-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment