openSUSE, Samba, and the Firewall
I have been using either openSUSE Leap 15.2 or Tumbleweed for the last couple of weeks. As I continue to learn the system, one item that I need to work is connecting to my NAS. All systems are different, yet most distros have this working out of the box; openSUSE just required a little configuration. After digging around, I realized that the firewall wasn’t allowing Samba traffic.
Let me show you how to configure openSUSE to have it work.
Configuring openSUSE for Samba
Let me show you the issue. When I open Dolphin and navigate to Network -> Shared Folders (SMB), I didn’t see my NAS listed.
My initial thought was that Samba wasn’t installed. In fact, it is installed, so then I decided to ping my NAS, which worked. That left me with checking the firewall with YaST.
I noticed in the firewall section had multiple zones defined, so I started checking those zones to see if any included Samba in the allowed. There are a few, but the one that jumps out is called home. This connection is my home network, so I figured that would be an excellent zone to leverage.
The next piece was to figure out how to leverage the zone with my network connection. After digging around a little, I noticed that the network connection, under the general configuration tab, had a place to set the firewall zone.
I decided to try by setting the firewall zone for the network connection to home.
A quick application of that change and a jump back to Dolphin was all that was required. I was seeing my NAS show up.
Conclusion
I want to write that I was initially frustrated by this choice, yet I wasn’t. I felt this was adding security to my setup. Having predefined zones and setting those zones per network connection brings more control to my system. So far, the defaults have worked exactly how I expect, so I haven’t found the need to make any tweaks.
Thanks for reading,
Jamie
If you enjoy the content, then consider buying me a coffee.