Skip to content

Instantly share code, notes, and snippets.

@dainiusjocas
Created May 19, 2015 20:00
Show Gist options
  • Save dainiusjocas/abc3a055b5234e39d696 to your computer and use it in GitHub Desktop.
Save dainiusjocas/abc3a055b5234e39d696 to your computer and use it in GitHub Desktop.
CentOS 7 open firewall for port 80
# Long description of the situation can be found here:
# http://ask.xmodulo.com/open-port-firewall-centos-rhel.html
# Following two lines get the job done.
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment