Unable to access SMB share from RHEL 7

keylevel

Explorer
Joined
Mar 9, 2017
Messages
58
I've got a FreeNAS running FreeNAS-11.2-U5 with an SMB share that I'm trying to access from a RHEL 7 system, which is able to access SMB shares on a Buffalo NAS and AFP shares on the FreeNAS.

However, it is not able to access SMB shares on the FreeNAS. For example, attempting to use the "File" utility to access smb://a.b.c.d/share results in an error box reporting "Oops! Something went wrong. Unhandled error message : Failed to mount Windows share : Connection timed out". The error message is thrown up as soon as the connection is attempted.

The SMB share works as expected from a MacBook (though on a different interface, but both are bound within the SMB service on the FreeNAS).

Any pointers as to what I should check would be much appreciated!
 

keylevel

Explorer
Joined
Mar 9, 2017
Messages
58
The following entries in log.smbd appear to be related:

[2019/08/08 14:01:32.639381, 0] ../source3/lib/util_sock.c:875(matchname)
matchname: host name/name mismatch: 192.168.11.240 != (NULL)
[2019/08/08 14:01:32.639406, 0] ../source3/lib/util_sock.c:1054(get_remote_hostname)
matchname failed on 192.168.11.240
 
Joined
Jul 3, 2015
Messages
926
Your client may be trying to connect SMB1 and FreeNAS won't allow that.

You may need to modify your client machine /etc/samba/smb.conf at the bottom of ‘Global Settings’ area to read:

server min protocol = SMB2_10

client min protocol = SMB2

client max protocol = SMB3

Restart smbd after or restart the machine.
 
Joined
Jul 3, 2015
Messages
926
Ok, so it sounds like what I said. I'd keep SMB1 disabled on FreeNAS and make that change on the client as its more secure.
 

keylevel

Explorer
Joined
Mar 9, 2017
Messages
58
Indeed - it's a live server, so I'll have to wait for a suitable maintenance window.

I'm not too concerned about security (for now), as there's no public access and the FreeNAS isn't accessible to users.

Thanks again for your help.
 
Top