Create a new XML file that will contain the parameters of your new service
vim /etc/network/custom-service-1.xml
Use the following format. Add as many lines as you like.
<?xml version="1.0" encoding="utf-8"?>
<service>
<port port="22" protocol="tcp"/>
<port port="161" protocol="udp"/>
<port port="443" protocol="tcp"/>
<port port="80" protocol="tcp"/>
</service>
Create the new service
firewall-offline-cmd --new-service-from-file=/etc/network/custom-service-1.xml --name=CustomService1
Reload
firewall-cmd --reload