browse list sync with 2 samba servrs

Script0r script0r at axenet.org
Sun Dec 9 21:34:03 GMT 2001


hello,
I have 2 samba serers, a pdc/wins server on 10.0.0.1 for one subnet (/24),
and a ldc/winsclient on 192.168.0.1 for it's /24

I start the pdc, and wait for it to win all it's elections, then start the ldc 
and wait for it to win it's elections,

at this boint the lists are synced to whatever the pdc has, however it is unable to
complete future browse syncs,

this has the effect that once a machine is turned off, it is never removed from the browse lists.

This looks a good deal like a bug, because when looking through the logs in combination with
etheral, I see this:

syslog:
 [2001/12/09 23:48:17, 0] nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(360)
   find_domain_master_name_query_fail:
   Unable to find the Domain Master Browser name BIGGROUP<1b> for the workgroup BIGGROUP.
   Unable to sync browse lists in this workgroup.

tetheral:
192.168.0.1 -> 10.0.0.1     NBNS Name query NB BIGGROUP       <1b>
10.0.0.1 -> 192.168.0.1     NBNS Name query response NB 10.0.0.1
192.168.0.1 -> 10.0.0.1     ICMP Port Unreachable


attached is the full log of these 3 packets from tethereal

192.168.0.1 reguests the name query using sport 354 (this number does change, but is always a 'priviledged' port)
10.0.0.1 sends the requested query back to 192.168.0.1 also on 354 (this apears right)
but 192.168.0.1 is no longer listening on that port do it sends back icmp-port-unreachable
I have tried setting my default firewall policy to accept and the same problem occurs.
should this traffic be using a low port ?

after this fails, I can issue:

$ smbclient biggroup#1b

and the proper result comes out.


the ldc has in it's conf file all the pertinant settings I've read need to be there

local master =yes
prefered master = yes
domain master = no
wins support = no
wins server = 10.0.0.1
wins proxy = yes

I would apreciate any help you could provide in this mater.
(please cc me on any replies as I am not a regular subscriber of this list)
-------------- next part --------------
Frame 266 (92 on wire, 92 captured)  
    Arrival Time: Dec  9, 2001 23:47:56.0386
    Time delta from previous packet: 67.923017 seconds
    Frame Number: 266
    Packet Length: 92 bytes
    Capture Length: 92 bytes  
Ethernet II
    Destination: 00:c0:f0:4d:1c:94 (00:c0:f0:4d:1c:94)
    Source: 00:c0:f0:4d:1c:94 (00:c0:f0:4d:1c:94)
    Type: IP (0x0800)
Internet Protocol
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 78
    Identification: 0x0000
    Flags: 0x04
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 64
    Protocol: UDP (0x11)
    Header checksum: 0x6ff5 (correct)
    Source: 192.168.0.1 (192.168.0.1)
    Destination: 10.0.0.1 (10.0.0.1)
User Datagram Protocol
    Source port: 354 (354)
    Destination port: 137 (137)
    Length: 58
    Checksum: 0x9e3a 
NetBIOS Name Service
    Transaction ID: 0x2542
    Flags: 0x0100 (Name query)
        0... .... .... .... = Query
        .000 0... .... .... = Name query
        .... ..0. .... .... = Message is not truncated
        .... ...1 .... .... = Do query recursively
        .... .... ...0 .... = Not a broadcast packet
    Questions: 1
    Answer RRs: 0
    Authority RRs: 0
    Additional RRs: 0
    Queries
        BIGGROUP       <1b>: type NB, class inet
            Name: BIGGROUP       <1b> (Domain Master Browser)
            Type: NB
            Class: inet        
            
Frame 267 (104 on wire, 104 captured)
    Arrival Time: Dec  9, 2001 23:47:56.1035
    Time delta from previous packet: 0.064912 seconds
    Frame Number: 267
    Packet Length: 104 bytes
    Capture Length: 104 bytes
Ethernet II
    Destination: 00:c0:f0:4d:1c:94 (00:c0:f0:4d:1c:94)
    Source: 00:00:1d:cc:6a:bd (00:00:1d:cc:6a:bd) 
    Type: IP (0x0800)
Internet Protocol   
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 90
    Identification: 0x42f3
    Flags: 0x00
        .0.. = Don't fragment: Not set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 64
    Protocol: UDP (0x11)
    Header checksum: 0x6cf6 (correct)
    Source: 10.0.0.1 (10.0.0.1)
    Destination: 192.168.0.1 (192.168.0.1)
User Datagram Protocol
    Source port: 137 (137)
    Destination port: 354 (354)
    Length: 70
    Checksum: 0xdd24
NetBIOS Name Service
    Transaction ID: 0x2542
    Flags: 0x8580 (Name query response, No error)
        1... .... .... .... = Response
        .000 0... .... .... = Name query  
        .... .1.. .... .... = Server is an authority for domain
        .... ..0. .... .... = Message is not truncated
        .... ...1 .... .... = Do query recursively
        .... .... 1... .... = Server can do recursive queries
        .... .... ...0 .... = Not a broadcast packet
        .... .... .... 0000 = No error
    Questions: 0
    Answer RRs: 1       
    Authority RRs: 0       
    Additional RRs: 0
    Answers
        BIGGROUP       <1b>: type NB, class inet
            Name: BIGGROUP       <1b> (Domain Master Browser)
            Type: NB
            Class: inet
            Time to live: 2 days, 23 hours, 51 minutes, 14 seconds
            Data length: 6
            Flags: 0x4000 (M-node, unique)
                0... .... .... .... = Unique name
                .10. .... .... .... = M-node
            Addr: 10.0.0.1
        
Frame 268 (132 on wire, 132 captured)     
    Arrival Time: Dec  9, 2001 23:47:56.1038
    Time delta from previous packet: 0.000208 seconds 
    Frame Number: 268
    Packet Length: 132 bytes
    Capture Length: 132 bytes
Ethernet II
    Destination: 00:c0:f0:4d:1c:94 (00:c0:f0:4d:1c:94)
    Source: 00:c0:f0:4d:1c:94 (00:c0:f0:4d:1c:94)
    Type: IP (0x0800)      
Internet Protocol
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0xc0 (DSCP 0x30: Class Selector 6; ECN: 0x00)
        1100 00.. = Differentiated Services Codepoint: Class Selector 6 (0x30)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 118
    Identification: 0x8836
    Flags: 0x00
        .0.. = Don't fragment: Not set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 255
    Protocol: ICMP (0x01)
    Header checksum: 0x67e6 (correct)
    Source: 192.168.0.1 (192.168.0.1)
    Destination: 10.0.0.1 (10.0.0.1)
Internet Control Message Protocol
    Type: 3 (Destination unreachable)
    Code: 3 (Port unreachable)
    Checksum: 0xc7fe (correct)
    Data (90 bytes)  


   0  4500 005a 42f3 0000 4011 6cf6 0a00 0001   E..ZB... at .l.....
  10  c0a8 0001 0089 0162 0046 dd24 2542 8580   .......b.F.$%B..
  20  0000 0001 0000 0000 2045 4345 4a45 4845   ........ ECEJEHE
  30  4846 4345 5046 4646 4143 4143 4143 4143   HFCEPFFFACACACAC
  40  4143 4143 4143 4142 4c00 0020 0001 0003   ACACACABL.. ....
  50  f272 0006 4000 0a00 0001                  .r.. at .....    


More information about the samba mailing list