Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Last active April 16, 2017 09:17
Show Gist options
  • Save goyalmohit/5babed56851143bc20b970e40878330c to your computer and use it in GitHub Desktop.
Save goyalmohit/5babed56851143bc20b970e40878330c to your computer and use it in GitHub Desktop.
Open firewall for port 80 on CentOS
#this command configure firewall to accept incoming tcp connections on port 80
firewall-cmd --zone=public --permanent --add-port=80/tcp
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment