Bug 5481 - Master browsing can be intercepted by other hosts with multiply network adapters.
Summary: Master browsing can be intercepted by other hosts with multiply network adapt...
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: nmbd (show other bugs)
Version: 3.0.28a
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 15:38 UTC by Oleg
Modified: 2008-06-29 16:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg 2008-05-21 15:38:51 UTC
smb.conf:
[global]
        dos charset = cp866
        unix charset = cp1251
        workgroup = MKK
        netbios aliases = nex
        server string =
        map to guest = Bad User
        null passwords = Yes
        log level = 3
        log file = /var/log/samba/%m.log
        max log size = 1500
        unix extensions = No
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        load printers = No
        disable spoolss = Yes
        os level = 255
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes

Master browsing can be intercepted by other hosts with multiply adapters. I think they became Master Browser in their own network and send annouchments to my master browser and confuse Samba. When it happens, all hosts in workgroup are dissapear with the exception of my master browser and intercepter. 


root@server:/var/log/samba# nmblookup -M MKK
added interface ip=192.168.0.5 bcast=192.168.15.255 nmask=255.255.240.0
Socket opened.
querying MKK on 192.168.15.255
Got a positive name query response from 192.168.4.28 ( 172.16.0.1 169.254.15.50 )
Got a positive name query response from 192.168.7.47 ( 192.168.30.1 192.168.147.1 )
Got a positive name query response from 192.168.3.50 ( 192.168.13.72 )
Got a positive name query response from 192.168.0.5 ( 192.168.0.5 )
192.168.13.72 MKK<1d>
192.168.0.5 MKK<1d>
192.168.30.1 MKK<1d>
192.168.147.1 MKK<1d>
172.16.0.1 MKK<1d>
169.254.15.50 MKK<1d>

In most cases the intercepter is one of 4.28 7.47 3.50 . Now my temporary workaround is to block these hosts in INPUT chain of iptables ;(.
Comment 1 Oleg 2008-05-21 16:00:18 UTC
Addition: while Samba confused - smbclient -L *any_host* display my Samba server acting as master browser, but in Network Neighborhood i can see only my Samba host (and his alias) and one of Windows based PC (in most cases it's computer with installed firewall - it doesn't reply on ping, but replies on arping). Anyway blocking hosts with multiply adapters always works for me.
Comment 2 Oleg 2008-06-29 16:49:56 UTC
Sorry, i think problem was in second host with misconfigured samba.