How to change the interfacte that SMB shares on? Macs and Linux need it - Windows doesnt?

Hello Forum!
I built a Scale 24.10.2.1 which has three network interfaces - one for web UI, one for 10Gb/s background transfer network, and one for 25Gb/s ‘nearline’ access.

I set up an SMB share, and connecting from Windows 10 on the 10Gb network was a matter of seconds - I have been copying tons of data across to my future NAS to rule all local storage. So far, so fun.

Then I tried to connect to the same share from Mac or Linux and it is a fail each time. Macs say

There was a problem connecting - server may not exist etc.

Rocky Linux 9 tells me I made a mistake in my ‘mount’ string.

To debug this, I use the shell on the TrueNAS itself, and ask for

sudo smbclient -L //10Gb.IP.address -U my_username

… I get told that:

(Error NT_STATUS_HOST_UNREACHABLE)

But if I request instead:

sudo smbclient -L //webUI.IP.address -U my_username

…then I get asked for a password and all is well.

I am baffled why it would work at all for Windows but I guess there is a lot in networking and file sharing that would baffle me if I looked harder…

Anyway - I spent a good time googling now and looking here in the forum to no avail - I hope someone can tell me where I can specifiy the interface that SMB daemon talks on?
(while I am there I would also like to remove the ability to do SMB over the UI interface).

Many thanks!
sheepish

You don’t have to specify the interface, you bind the smb service to a specific IP address or multiple adresses.
Go to system → services and open the options for the smb service, click on advanced options and the last option is “bind ip addresses”. Click add and add the IP of the nic you want to bind the service to. Save and restart the smb service

1 Like

Hi LarsR,
Thank you for the quick reply, much appreciated.
I did bind the service to the intended interfaces, and it works as expected. phew

May all your blocks stay good!
sheepish