Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SMB bind network interface

Featured Replies

Hello all,

 

I have 4 network interfaces out of which 1 interface is in Management VLAN and the other three are bonded via LACP. I would like to bind the samba service to the bonded interface. I added the following to the SMB extra conf page but doesn't seem to be working.

 

bind interfaces only = yes
interfaces = lo br1

Tried bond1 and br1, both did not work. Any advice?

 

Thanks

  • 1 year later...

did you ever figure this out? Im having the same problem

  • Author
16 hours ago, gagefox said:

did you ever figure this out? Im having the same problem

No. Apparently you can’t change from the default interface. 

What makes you say this?

  • Author

I tried and couldn’t get it work. SMB for whatever reason was always bound to the main Interface and I couldn’t get it to use the LAGG interface.

Edited by crazystar

How many IP addresses are assigned to Unraid, and what do you get when you run

# netstat -lntp | grep smbd

You should get kinda like

tcp        0      0 127.0.0.1:139           0.0.0.0:*               LISTEN      30554/smbd
tcp        0      0 192.168.2.5:139         0.0.0.0:*               LISTEN      30554/smbd
tcp        0      0 127.0.0.1:445           0.0.0.0:*               LISTEN      30554/smbd
tcp        0      0 192.168.2.5:445         0.0.0.0:*               LISTEN      30554/smbd

which should only list your IPs to the bound interfaces.

 

In my case I have two interfaces and smbd is only bound to br0 and lo; but then again I only one IP assigned to Unraid, so the other VLANs need to use the router to reach Unraid, even it was a local container or VM (unless the VM is Linux and I'm using Plan9 mounting)

tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      10359/smbd          
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      10359/smbd          
tcp6       0      0 :::445                  :::*                    LISTEN      10359/smbd          
tcp6       0      0 :::139                  :::*                    LISTEN      10359/smbd  

 

Thats what I get. Strange thing is that none of my actual ip's show up. I have 3 nics that are attached to my machine. 1x pcie 10g and 2 onboard gbit. I have my 10g set as eth0, one of the other gbit set as eth1 and the eth2 is set as port down. 10g nic 10.10.20.0/24 and 1g nic 10.10.0.0/24. I have docker services running on both devices and can confirm that data is flowing on the respected nic.

 

Below is my samba settings

ntlm auth = yes

#unassigned_devices_start
#Unassigned devices share includes
   include = /tmp/unassigned.devices/smb-settings.conf
#unassigned_devices_end

#use samba on 10g network only
bind interfaces only = yes
interfaces = lo eth0

however when I look at the dashboard at the network activity and start a large file transfer I do not see it going through my 10g but the 1g nic. I have tried switching eth0 and eth1 and the traffic follows the 1g nic.  

Edited by gagefox

  • 1 month later...

it's working on my configuration by adding the tag [global] in smb.settings so your lines should be :

 

#use samba on 10g network only

[global]

bind interfaces only = yes

interfaces = lo eth0

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.