From owner-freebsd-questions@FreeBSD.ORG Wed Apr 23 09:55:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D89121065673 for ; Wed, 23 Apr 2008 09:55:04 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id 57E868FC19 for ; Wed, 23 Apr 2008 09:55:03 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from w2003s01.double-l.local (dpm.xs4all.nl [80.126.205.144]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id m3N9svF3008317; Wed, 23 Apr 2008 11:55:02 +0200 (CEST) (envelope-from Johan@double-l.nl) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 23 Apr 2008 11:54:58 +0200 Message-ID: <57200BF94E69E54880C9BB1AF714BBCB5DDDDC@w2003s01.double-l.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD 7.0 jail and Samba 3 Thread-Index: AcilI8O1e3tDwXm8RuW5NqIX/+L3PAAA5H5Q References: <47F54BB3.1080801@skoberne.net><48071F0E.2020002@skoberne.net> <57200BF94E69E54880C9BB1AF714BBCB5DDDB1@w2003s01.double-l.local> <480DB0E2.3070202@skoberne.net><60553.203.127.42.92.1208860527.squirrel@www.superhero.nl> <480EFF60.3040901@skoberne.net> From: "Johan Hendriks" To: =?iso-8859-2?Q?Nejc_=A9koberne?= X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: RE: FreeBSD 7.0 jail and Samba 3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 09:55:04 -0000 >> OK.. if it is running inside your jail it doesnt respond to WINS >> broadcasts (request for NETBIOS Names.. oi, who is Machine on this >> subnet???), if it is not running in your jail, it is. >I wouldn't say "WINS broadcasts" but NetBIOS broadcasts, yes. "Machine" >is jailed Samba 3 server - I want it to be accessible from Windows = machines >via \\Machine. But it is not unless I put it out of jail (or turn on = WINS in >smb.conf and enter the WINS server IP into Windows clients). Windows = >machines >don't have the WINS server set - I don't want to use WINS server = capability >of Samba (nor of any other server on the network). >> So, what are your settings for master (local, domain and wins)? wins support =3D no local master =3D yes domain master =3D yes preferred master =3D yes >> can you do a ping to machine? Can it be resolved? >C:\Users\Nejko.DOMAIN>ping freebsd >Ping request could not find host freebsd. Please check the name and try = >again. >C:\Users\Nejko.DOMAIN>ping 192.168.15.201 >Pinging 192.168.15.201 with 32 bytes of data: >Reply from 192.168.15.201: bytes=3D32 time<1ms TTL=3D64 >> Can you connect smbclient //ipadres? >You mean \\192.168.15.201. Yes. >> Do you see the smb client listening on the machines virtual ip? >You mean smb server - yes: >root smbd 1436 18 tcp4 192.168.15.201:445 *:* >root smbd 1436 19 tcp4 192.168.15.201:139 *:* >root nmbd 1430 6 udp4 192.168.15.201:137 *:* >root nmbd 1430 7 udp4 192.168.15.201:138 *:* >root nmbd 1430 8 udp4 192.168.15.201:137 *:* >root nmbd 1430 9 udp4 192.168.15.201:138 *:* >> in case the above work for you it is all about name resolution. >> # man smbclient >> Read the first paragraph of servicename on servername resolution. >I know it is all about network resolution. But the question is how to >convince a jailed Samba to reply to NetBIOS broadcasts. I can't find = this >in any manual. >Thanks, >Nejc This is nota n issue with samba it is a name resolve issue. If you add in c:\windows\system32\drivers\etc\hosts the following does = all work then ipadress Machine-name where ipadress is the ipadres of the jailed samba server and = machine-name is the netbios name of the jailed server. If this works then you need to check your DNS server. =20