Created
October 4, 2017 13:08
-
-
Save pedro-hos/4eb8f7dcbf9a342697c72b785bb58f0e to your computer and use it in GitHub Desktop.
Open a port in the firewall on CentOS or RHEL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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