18.3 Configuring the Fedora 31 Firewall to Enable Samba
Next, the firewall currently protecting the Fedora 31 system needs to be configured to allow Samba traffic. To achieve this, run the firewall-cmd command as follows:
# firewall-cmd --permanent --add-port={139/tcp,445/tcp}
# firewall-cmd --reload
Before starting the Samba service a number of configuration steps are necessary to define how the Fedora system will appear to Windows systems, and the resources which are to be shared with remote clients. The majority of these configuration tasks take place within the /etc/samba/smb.conf file.