Server: Leap 15.3, samba allowed in firewall with Yast.
Client 1: Windows 10 -> shares are seen and accessible, with firewall enabled or disabled.
Client 2: FireTV stick -> same shares are only accessible with firewall disabled, else KODI says “couldn’t connect to network server”. WTF?
I vaguely remember having to open nmb ports, but this was with openSUSE 42.something. And if so client 1 wouldn’t see the shares anyway?
On windows 10 shares were set manually as shortcuts to \<server_ip><share_name>. On KODI (on the fireTV stick) you select the location (like //smb or similar) and the shares should be shown, but nothing is found if the firewall is enabled in the server.
That will list active connections to the device including the ports, check them against the firewall.
If that does not work, you can run wireshark (you might have to install it), that will dump all traffic, so start it capturing before the FireTV stick is connecting and keep it running till it runs.
Select Capture → Options, select the interface the FireTV stick is connected to and filter again on the IP address of the FireTV stick.
I.e. replace 192.168.111.1 in the picture above by the IP address of the FireTV stick
Once the FireTV stick is running, stop the capture and open Statistics → Protocol Hierarchy. That will again list all type of traffic and should give you an idea on what additional ports need to be opened.
I’ve made a mistake in my first report. The fireTV stick I referred to was not accessing a SMB share, but a NFS one.
I have another stick that is actually accessing the SMB share. Both sticks, curiously, loose the connection if the firewall is active when they are turned on or when the server is rebooted. To access the share, in either stick, I have to disable the firewall an access the share. After that I can enable the firewall back and the share continues accessible.
I just noticed that in Yast firewall I can set it to restart or reload after saving the changes. Perhaps reload would keep some kind of authorization for the sticks? Probably not, but maybe worth testing later.
Sorry (again) for the late reply, I’m still having eye trouble, so my monitor-staring time is severely restricted, but my eyes are slowly getting better, it’s a four month treatment.
Yast nfs-server has nfs v4 enabled, and the standard message that firewalld services for nfs-server are not available, and have to be configured manually.
nfs3 was enabled in firewall, but not mountd. After enabling it, it is working. YAY!
You got the nail in the head again, thank you very much!