The
bind
interfaces
only
option can be used to force the
smbd and
nmbd processes to serve SMB requests to only those addresses specified by the
interfaces
option. The
nmbd process normally binds to the all addresses interface (0.0.0.0.) on ports 137 and 138, allowing it to receive broadcasts from anywhere. However, you can override this behavior with the following:
bind interfaces only = yes
This will cause both Samba processes to ignore any packets whose origination address does not match the broadcast address(es) specified by the
interfaces
option, including broadcast packets. With
smbd, this option will cause Samba to not serve file requests to subnets other than those listed in the
interfaces
option. You should avoid using this option if you want to allow temporary network connections, such as those created through SLIP or PPP. It's very rare that this option is needed, and it should only be used by experts.
If you set
bind interfaces only
to
yes
, you should add the localhost address (127.0.01) to the "interfaces" list. Otherwise,
smbpasswd will be unable to connect to the server using its default mode in order to change a password.