[Vserver] Samba in a vserver guest: broadcast problem

From: [eMAXX] sys-admin_at_emaxx.nl <sys-admin_at_emaxx.nl>
Date: Sat 24 Jun 2006 - 17:44:31 BST
Message-ID: <449D6BEF.4070906@emaxx.nl>

Hi,

I'm trying te get Samba (3.0.14a-Debian) to work in a Linux Vserver guest.

---
Versions:
                   Kernel: 2.6.14.4-vs2.1.0.20060621
                   VS-API: 0x00020001
             util-vserver: 0.30.209; Jan  7 2006, 16:17:48
Features:
                       CC: gcc, gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
                      CXX: g++, g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
                 CPPFLAGS: ''
                   CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W'
                 CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W 
-fmessage-length=0'
               build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
             Use dietlibc: yes
       Build C++ programs: yes
       Build C99 programs: yes
           Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
            ext2fs Source: e2fsprogs
    syscall(2) invocation: alternative
      vserver(2) syscall#: 273/glibc
Paths:
                   prefix: /
        sysconf-Directory: /etc
            cfg-Directory: /etc/vservers
         initrd-Directory: /etc/init.d
       pkgstate-Directory: /var/run/vservers
          vserver-Rootdir: /home/vservers
---
~$ cat/etc/vservers/vs01-elastic/interfaces/0/bcast
192.168.1.255
(tried 255.255.255.255 too)
~$ cat /etc/vservers/vs01/capabilities
CAP_NET_RAW
CAP_NET_BROADCAST
CAP_NET_ADMIN
(inside the guest)
~$ grep Cap /proc/self/status   
CapInh: 0000000000000000
CapPrm: 00000000344c3cff
CapEff: 00000000344c3cff
Whenever I click on "My Network places >> Microsoft Windows-network" 
(swift translation out of Dutch), Windows tells me I have no rights to 
open the Samba host. If I connect to the host directly (eg: \\vs01\foo) 
there is no problem (will need user/pass, but that's ok).
I discovered Windows is sending broadcast packages, hereby one of them:
---
~$ tcpdump -vvnei eth0:0 host 192.168.1.8
18:34:56.002814 00:13:d4:*:*:* > ff:ff:ff:ff:ff:ff, ethertype IPv4 
(0x0800), length 92: IP (tos 0x0, ttl 128, id 26492, offset 0, flags 
[none], length: 78) 192.168.1.8.137 > 192.168.1.255.137: [udp sum ok]
 >>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
TrnID=0x80C6
OpCode=0
NmFlags=0x11
Rcode=0
QueryCount=1
AnswerCount=0
AuthorityCount=0
AddressRecCount=0
QuestionRecords:
Name=ELASTIC-FS      NameType=0x00 (Workstation)
QuestionType=0x20
QuestionClass=0x1
---
but samba in the vserver guest doesn't answer them.
Who's to blame? Samba or Vserver?
Thank you to any one who can help.
Regards,
Vince.
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Jun 24 19:27:43 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 24 Jun 2006 - 19:27:50 BST by hypermail 2.1.8