etcfirewalldservices
The /etc/firewalld/services directory contains XML service definition files used by the firewalld daemon to map service names to network ports, protocols, and ICMP settings. These files allow administrators to open named services in zones without specifying every port individually. The directory typically holds files that can be edited by the administrator; default service definitions are provided by the system in /usr/lib/firewalld/services or /usr/share/firewalld/services.
Each file in this directory is an XML document named after the service (for example ssh.xml) and
Firewalld uses these service definitions when a service is added to a zone. The permanent configuration reads
Creating or modifying service files is common when adding custom applications. When doing so, place the file
See also: firewalld, firewall-cmd, zones, ports, xml service definitions.