Product SiteDocumentation Site

3.8.13.5.8. Add a Service to a Zone using the CLI
To add a service to a zone, for example to allow SMTP to the work zone, enter the following command as root:
~]# firewall-cmd --zone=work --add-service=smtp
To make this setting permanent, add the --permanent option and reload the firewall.