Fedora use Firewalld for the firewall, but I don’t know why, I couldn’t permanently open the the samba service on my network. I just want to share files on my network.
Add the entry
I tried firewall-config but on each reboot the firewall configuration was restored to the default. After few attempts, I found the file in
/etc/firewalld/zones/FedoraWorkstation.xml and then I add
<service name="samba" /> to this file because I saw this in the GUI program:
The configuration file
<?xml version="1.0" encoding="utf-8"?> <zone> <short>Fedora Workstation</short> <description> Unsolicited incoming network packets are rejected from port 1 to 1024, except for select network services. Incoming packets that are related to outgoing network connections are accepted. Outgoing network connections are allowed. </description> <service name="dhcpv6-client"/> <service name="mdns"/> <service name="samba-client"/> <service name="samba" /> <service name="ssh"/> <port protocol="udp" port="1025-65535"/> <port protocol="tcp" port="1025-65535"/> </zone>
Et voilà ! It works. Now at boot time, the firewalld program add a rule for Samba.