Skip to content

Instantly share code, notes, and snippets.

@kirankotari
Created April 1, 2021 11:35
Show Gist options
  • Save kirankotari/139ad0599a728951c652bf3cba42ea7e to your computer and use it in GitHub Desktop.
Save kirankotari/139ad0599a728951c652bf3cba42ea7e to your computer and use it in GitHub Desktop.
firewall-cmd
firewall-cmd --zone=public ---add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-services
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --zone=public --add-service=https --permanent
firewall-cmd --list-services
firewall-cmd --reload
firewall-cmd --list-services
firewall-cmd --list-ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment