/etc/firewalld/services/my-service.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>My service</short>
<description>This option allows My service to use tcp port 12345</description>
<port protocol="tcp" port="12345"/>
</service>
firewall-cmd --permanent --add-service=my-service
firewall-cmd --reload
firewall-cmd --list-services
0 коммент.:
Post a Comment