[Samba] Configure specific nmbd response

Jim Ramsay i.am at jimramsay.com
Thu Mar 6 20:51:42 GMT 2008


I need to know if I can somehow tell nmbd which IP address on a
multiple-ip interface to report - It is picking the wrong one!

Details:
--------
smb.conf is currently set up to bind to all interfaces in the machine.

vrm378-02 ~ # ip addr show dev br0
216: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue 
    link/ether 00:1e:0b:65:c8:65 brd ff:ff:ff:ff:ff:ff
    inet 10.8.50.71/24 brd 10.8.50.255 scope global br0
    inet 10.8.50.72/24 brd 10.8.50.255 scope global secondary br0
    inet 10.8.50.73/24 brd 10.8.50.255 scope global secondary br0
    inet 10.8.50.74/24 brd 10.8.50.255 scope global secondary br0
    inet 10.8.50.75/24 brd 10.8.50.255 scope global secondary br0
vrm378-02 ~ # nmblookup -B 10.8.50.255 vrm378-02
querying vrm378-02 on 10.8.50.255
10.8.50.75 vrm378-02<00>

The problem is that I'm using iptables to do static nat that eats all
the packets bound for every IP on br0 except for the "primary" one of
10.8.50.71 - How do I tell nmbd to return that one instead of the
latest-added address of 10.8.50.75?

-- 
Jim Ramsay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20080306/ce5a5797/signature.bin


More information about the samba mailing list