Failing to set up SMB/Samba

IT WORKS!!! IT FREAKING WORKS!!! WOOOOHOOOOOO!!!

Thank you for the input, using nmap again I checked and realized both ports 137 and 138 on UDP are open.

PORT STATE SERVICE
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm

Meanwhile TCP ports 139 and 445 are closed. Didn’t work.
I got frustrated like incredible and was incredibly close to just dumping that crap alltogether (out the window, first the Turris, then me head first through the glass).
Randomly followed some instructions, opening just all the ports, making random changes to the configuration, no idea what I’m doing.
The last documentation I followed was that one here:

And now it incredibly freaking works!

I have no idea which exact step it was, or whether the pantheon of gods just felt sorry for my pathetic attempts and just took pity and made it work, but here I will describe my current state of config, in case anyone else might profit from it:

In Luci my Shares configuration template looks as follows:

[global]
netbios name = |NAME| 
display charset = |CHARSET|
interfaces = |INTERFACES|
server string = |DESCRIPTION|
unix charset = |CHARSET|
workgroup = |WORKGROUP|
deadtime = 30
domain master = yes
enable core files = no
guest account = nobody
local master = yes
guest okay = yes
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
passdb backend = smbpasswd
security = user
smb passwd file = /etc/samba/smbpasswd
use sendfile = yes

In Luci Shares general settings tab the config is set to as follows:
Hostname: TurrisNAS
Description: OpenWrt
Work group: <<Left it empty, so falls back to default WORKGROUP>>

I have one Share/Directory set up and working:
name: nas
path /srv/nas
legimitated users: <<Left it empty, no idea what the system is making of it>>
read only: <<Left unchecked, I also wanna write after all>>
guest access: Checked, dunno what happens if I uncheck it, maybe I’ll unleash the wrath of the gods.
Mask for new files: 0644 (Whatever, it works, seemingly, don’t know, better not touch)
Mask for new directories: 0755 (The same)

In Luci, in the firewall section, under traffic rules, I added a new rule.
I gave it the name Samba and basically allowed all the ports 137,138,139,445 on both tcp and udp in “lan” (from every PC to every PC).

I know this is probably not optimal, but for now, feeling like the master of the universe, I’m not gonna worry about the safety or robustness of my configuration but enjoy this moment of glory.
With tears in my eyes, singing and dancing, because Samba works.
Loving you all.
Good night.
Goes sleeping with an evil grin

1 Like