Solved Samba 4.2.4_1 - nmbd listen on all interfaces

Hi

I have issue that nmbd listens on ALL interfaces instead of selected.

My configuration /usr/local/etc/smb4.conf looks like below:

Code:
[global]
interfaces = vmx1 lo0
bind interfaces only = yes

And smbd binds just to vmx1 (172.22.101.148) and lo0 interfaces, but nmbd still listens on all interfaces - eg. *:137, *:138, see below:

$ sockstat -4 | egrep "smb|nmb"
Code:
root     smbd       66494 35 tcp4   127.0.0.1:445         *:*
root     smbd       66494 36 tcp4   127.0.0.1:139         *:*
root     smbd       66494 39 tcp4   172.22.101.148:445    *:*
root     smbd       66494 40 tcp4   172.22.101.148:139    *:*
root     nmbd       66355 16 udp4   *:137                 *:*
root     nmbd       66355 17 udp4   *:138                 *:*
root     nmbd       66355 18 udp4   172.22.101.148:137    *:*
root     nmbd       66355 19 udp4   172.22.101.255:137    *:*
root     nmbd       66355 20 udp4   172.22.101.148:138    *:*
root     nmbd       66355 21 udp4   172.22.101.255:138    *:*

Changing settings to IP addresses instead of interfaces also doesn't help - sockstat looks the same as above after configuration change and service samba_server restart.

Code:
interfaces = 172.22.101.148 127.0.0.1

I'm looking for some solution if it's possible
 
Last edited by a moderator:
Back
Top