I need to add a directive to allow a range of IPs coming from VPN , do you know how to do that ?
That's my cue for leaving....
I never edited the
smb.conf
file. While troubleshooting, I had a look at it to check if I could see anything out of the ordinary.... but since I don't really know that configuration file, my reference for "ordinary" was rather relying on luck! :-D
I found
this article about the
smb.conf
file though, it might interest you (if you haven't seen it yet).
Maybe the
hosts allow
option is what you're looking for (more
details here) but if my memory is right, the hosts allow option is also available in the GUI of Free/TrueNAS so you shouldn't have to edit the
smb.conf
file.
In any cases, I would try to do everything over the GUI first before tinkering with that configuration file...