Skip to content

Instantly share code, notes, and snippets.

@grantpullen
Created December 14, 2017 09:05
Show Gist options
  • Save grantpullen/2a1097164593810349fea7008013d2df to your computer and use it in GitHub Desktop.
Save grantpullen/2a1097164593810349fea7008013d2df to your computer and use it in GitHub Desktop.
firewalld
# get default zone
firewall-cmd --get-default-zone
# get current rules
firewall-cmd --list-all
# open up port (4433) on zone public
firewall-cmd --zone=public --add-port=4433/tcp --permanent
# apply changes to firewalld by doing a reload
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment