Pour info:
le service existait déjà dans l' "environnement" firewalld, mais effectivement pas dans Yast.
thierry@toto-PC:~> firewall-cmd --get-services | grep -o squid
squid
Le fichier xml se trouve ici:
thierry@toto-PC:/usr/lib/firewalld/services> ls
amanda-client.xml cockpit.xml foreman.xml ipsec.xml libvirt-tls.xml nbd.xml postgresql.xml rtsp.xml ssh.xml transmission-client.xml
amanda-k5-client.xml collectd.xml freeipa-4.xml ircs.xml libvirt.xml nfs3.xml privoxy.xml salt-master.xml steam-streaming.xml upnp-client.xml
amqps.xml condor-collector.xml freeipa-ldaps.xml irc.xml lightning-network.xml nfs.xml prometheus.xml samba-client.xml svdrp.xml vdsm.xml
amqp.xml ctdb.xml freeipa-ldap.xml iscsi-target.xml llmnr.xml nmea-0183.xml proxy-dhcp.xml samba-dc.xml svn.xml vnc-server.xml
apcupsd.xml dhcpv6-client.xml freeipa-replication.xml isns.xml managesieve.xml nrpe.xml ptp.xml samba.xml syncthing-gui.xml wbem-https.xml
audit.xml dhcpv6.xml freeipa-trust.xml jenkins.xml matrix.xml ntp.xml pulseaudio.xml sane.xml syncthing.xml wbem-http.xml
bacula-client.xml dhcp.xml ftp.xml kadmin.xml mdns.xml nut.xml puppetmaster.xml sips.xml synergy.xml wsmans.xml
bacula.xml distcc.xml ganglia-client.xml kdeconnect-kde.xml memcache.xml openvpn.xml quassel.xml sip.xml syslog-tls.xml wsman.xml
bb.xml dns-over-tls.xml ganglia-master.xml kdeconnect.xml minidlna.xml ovirt-imageio.xml radius.xml slp.xml syslog.xml x11.xml
bgp.xml dns.xml git.xml kerberos.xml mongodb.xml ovirt-storageconsole.xml rdp.xml smtp-submission.xml telnet.xml xdmcp.xml
bitcoin-rpc.xml docker-registry.xml grafana.xml kibana.xml mosh.xml ovirt-vmconsole.xml redis-sentinel.xml smtps.xml tentacle.xml xmpp-bosh.xml
bitcoin-testnet-rpc.xml docker-swarm.xml gre.xml klogin.xml mountd.xml plex.xml redis.xml smtp.xml tftp-client.xml xmpp-client.xml
bitcoin-testnet.xml dropbox-lansync.xml https.xml kpasswd.xml mqtt-tls.xml pmcd.xml RH-Satellite-6-capsule.xml snmptrap.xml tftp.xml xmpp-local.xml
bitcoin.xml elasticsearch.xml http.xml kprop.xml mqtt.xml pmproxy.xml RH-Satellite-6.xml snmp.xml tigervnc-https.xml xmpp-server.xml
bittorrent-lsd.xml etcd-client.xml imaps.xml kshell.xml mssql.xml pmwebapis.xml rpc-bind.xml spideroak-lansync.xml tigervnc.xml zabbix-agent.xml
ceph-mon.xml etcd-server.xml imap.xml kube-apiserver.xml ms-wbt.xml pmwebapi.xml rquotad.xml spotify-sync.xml tile38.xml zabbix-server.xml
ceph.xml finger.xml ipp-client.xml ldaps.xml murmur.xml pop3s.xml rsh.xml squid.xml tinc.xml
cfengine.xml foreman-proxy.xml ipp.xml ldap.xml mysql.xml pop3.xml rsyncd.xml ssdp.xml tor-socks.xml
thierry@toto-PC:/usr/lib/firewalld/services>
thierry@toto-PC:/usr/lib/firewalld/services>
thierry@toto-PC:/usr/lib/firewalld/services> cat squid.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>squid</short>
<description>Squid HTTP proxy server</description>
<port protocol="tcp" port="3128"/>
</service>
Pour la prise en compte du "service squid" (ouverture de ports…) par firewalld:
# firewall-cmd --zone=home --add-service=squid --permanent
Test de la prise en compte:
# firewall-cmd --zone=home --list-services --permanent
dhcpv6-client mdns samba samba-client squid ssh
sans oublier de reloader:
# firewall-cmd --reload
success