Can I add more services?

Yes, you can add more services to a specific firewalld zone. To do this, you can use the following command:

firewall-cmd --zone=<zone-name> --add-service=<service-name>

Replace <zone-name> with the name of the zone you want to modify (e.g., home, work, etc.) and <service-name> with the name of the service you want to add (e.g., http, https, ssh, etc.).

For example, to add the http service to the home zone, you would run:

firewall-cmd --zone=home --add-service=http

To make the change permanent, add the --permanent flag:

firewall-cmd --zone=home --add-service=http --permanent

After making changes, reload the firewalld configuration to apply them:

firewall-cmd --reload

You can also list available services with:

firewall-cmd --get-services

0 Comments

no data
Be the first to share your comment!