Skip to content

Instantly share code, notes, and snippets.

@wang-zhijun
Created December 18, 2016 02:17
Show Gist options
  • Select an option

  • Save wang-zhijun/8f5507c98ec28b849d71752fca560404 to your computer and use it in GitHub Desktop.

Select an option

Save wang-zhijun/8f5507c98ec28b849d71752fca560404 to your computer and use it in GitHub Desktop.
Firewalld
# firewall-cmd --state
running

# firewall-cmd --get-default-zone
public

# firewall-cmd --get-active-zones
public
  interfaces: eno16777984
  
# firewall-cmd --get-zones
work drop internal external trusted home dmz public block

# firewall-cmd --set-default-zone=home
success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment