Search code examples
firewallfirewalld

FirewallD: add service without specifying a zone


I was wondering which zone would service be added if run the add service command without specifying a zone.

For example:

$ sudo firewall-cmd --add-service=http --permanent

Solution

  • it will be added to the default zone firewall-cmd --get-default-zone will give you default zone