From owner-freebsd-questions@FreeBSD.ORG Thu Apr 17 10:46:40 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 4539C1065671 for ; Thu, 17 Apr 2008 10:46:40 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.freebsd.org (Postfix) with ESMTP id BCD808FC13 for ; Thu, 17 Apr 2008 10:46:39 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from w2003s01.double-l.local (dpm.xs4all.nl [80.126.205.144]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id m3HAkWTJ048829; Thu, 17 Apr 2008 12:46:37 +0200 (CEST) (envelope-from Johan@double-l.nl) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 17 Apr 2008 12:46:32 +0200 Message-ID: <57200BF94E69E54880C9BB1AF714BBCB5DDDB1@w2003s01.double-l.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD 7.0 jail and Samba 3 Thread-Index: Acigcgd3RSIeABwhRySeWazNaM22mwABVqkg References: <47F54BB3.1080801@skoberne.net> <48071F0E.2020002@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: Thu, 17 Apr 2008 10:46:40 -0000 >> I am trying to get latest Samba running under FreeBSD 7.0 jail=20 >> environment. I happen >> to have problems with "visibility" of the Samba server on the network = -=20 >> I cannot connect >> to it using its NetBIOS name. To be able to run nmbd, I have to use = the=20 >> "interfaces" >> parameter in smb.conf like this: >>=20 >> interfaces =3D 192.168.1.2/24 127.0.0.1 >>=20 >> If I don't set this, nmbd fails to run (it says it cannot find=20 >> interfaces). However, if >> I try the identical configuration on a "non-jailed" Samba (on a = FreeBSD=20 >> 6.2 though) it >> runs seamlessly - I can connect to it from another box by running=20 >> "smbclient //server/share". >>=20 >> Is there any way to make NetBIOS work for jailed Samba server on = FreeBSD=20 >> 7.0? >Is there really nobody who could help me out here? >Thanks, >Nejc I think you will need to remove 127.0.0.1 Just use 192.168.1.2/24 There is no 127.0.0.1 on a jailed system This is the output of ifconfig on my jail server bge0: flags=3D8843 metric 0 mtu = 1500 options=3D9b ether 00:19:bb:d1:66:06 inet 192.168.100.200 netmask 0xffffff00 broadcast = 192.168.100.255 inet 192.168.100.201 netmask 0xffffffff broadcast = 192.168.100.201 inet 192.168.100.202 netmask 0xffffffff broadcast = 192.168.100.202 inet 192.168.100.203 netmask 0xffffffff broadcast = 192.168.100.203 inet 192.168.100.204 netmask 0xffffffff broadcast = 192.168.100.204 media: Ethernet autoselect (100baseTX ) status: active pflog0: flags=3D0<> metric 0 mtu 33204 pfsync0: flags=3D0<> metric 0 mtu 1460 syncpeer: 224.0.0.240 maxupd: 128 lo0: flags=3D8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 and here it is from my jailed server bge0: flags=3D8843 metric 0 mtu = 1500 options=3D9b ether 00:19:bb:d1:66:06 inet 192.168.100.202 netmask 0xffffffff broadcast = 192.168.100.202 media: Ethernet autoselect (100baseTX ) status: active pflog0: flags=3D0<> metric 0 mtu 33204 pfsync0: flags=3D0<> metric 0 mtu 1460 syncpeer: 224.0.0.240 maxupd: 128 lo0: flags=3D8049 metric 0 mtu 16384 as you can see the interface lo0 is there but no ip 127.0.0.1 regards, Johan Hendriks Double L Automatisering