From owner-freebsd-net@FreeBSD.ORG Thu Apr 24 09:50:00 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35EC5106564A for ; Thu, 24 Apr 2008 09:50:00 +0000 (UTC) (envelope-from dewayne_freebsd@yahoo.com) Received: from n58.bullet.mail.sp1.yahoo.com (n58.bullet.mail.sp1.yahoo.com [98.136.44.46]) by mx1.freebsd.org (Postfix) with SMTP id 35B708FC16 for ; Thu, 24 Apr 2008 09:50:00 +0000 (UTC) (envelope-from dewayne_freebsd@yahoo.com) Received: from [216.252.122.217] by n58.bullet.mail.sp1.yahoo.com with NNFMP; 24 Apr 2008 09:37:31 -0000 Received: from [69.147.84.88] by t2.bullet.sp1.yahoo.com with NNFMP; 24 Apr 2008 09:37:31 -0000 Received: from [127.0.0.1] by omp204.mail.sp1.yahoo.com with NNFMP; 24 Apr 2008 09:37:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 372757.18857.bm@omp204.mail.sp1.yahoo.com Received: (qmail 5947 invoked by uid 60001); 24 Apr 2008 09:37:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=1l9iEKKTDu3Wcb35UTruyPnbEqReZSHugfX4WcAll6je0iFVxFSilv4OuYPqKGXGAyzc8wFnzlJZQZStpL688PbhfQU7lUglXbnnaJrbvrpAOA0IDb2uG72NeoO4uEo8PycHeqQ18NdlMWz5aPikNaQnRQ4eP2P+yWgT8YmxOkU=; X-YMail-OSG: 8p2jPggVM1mxpit2xI5mm297oqhWmaM.ebYBpRhHiFumKCYd9wMACm6p6LG1GVfxyZY7Yr5_qtUpciABdm.XbRLt5Wxdh8y7Nw-- Received: from [58.172.113.127] by web46015.mail.sp1.yahoo.com via HTTP; Thu, 24 Apr 2008 02:37:30 PDT Date: Thu, 24 Apr 2008 02:37:30 -0700 (PDT) From: Dewayne Geraghty To: Nejc "Škoberne" , "Bjoern A. Zeeb" In-Reply-To: <48105269.4040303@skoberne.net> MIME-Version: 1.0 Message-ID: <249262.97716.qm@web46015.mail.sp1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Jailed Samba not getting broadcasts X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 09:50:00 -0000 Nejc Škoberne wrote: Hi, > so what kind of setup do you have? Sorry, forgot to provide it. I am running latest Samba 3 on FreeBSD 7.0 server. You can get my smb.conf here: http://stuff.skoberne.net/smb.conf (without "remote" entries suggested by Dewayne) My rc.conf (relevant lines): ifconfig_rl0="192.168.15.198 netmask 255.255.255.0" jail_enable="YES" jail_sysvipc_allow="YES" jail_socket_unixiproute_only="NO" #=---------------------------- Jails ---------------------------=# jail_list="samba" #=--------------------------------------------------------------=# jail_samba_rootdir="/usr/jail/samba" jail_samba_hostname="samba.domain.local" jail_samba_ip="192.168.15.201" jail_samba_interface="rl0" jail_samba_devfs_enable="YES" jail_samba_procfs_enable="YES" jail_samba_devfs_ruleset="devfsrules_samba_jail" #=--------------------------------------------------------------=# My /etc/devfs.rules: [devfsrules_samba_jail=6] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login add path bpf0 unhide > is the jail IP on a real interface or on loopback? Real interface. "rl0" in my case. > is the jail IP an alias or a primary IP? Alias - how to make it primary IP? > what netmask does ifconfig show for this IP? Host: rl0: flags=8843 metric 0 mtu 1500 options=8 ether 00:40:f4:27:7e:a8 inet 192.168.15.198 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.15.201 netmask 0xffffffff broadcast 192.168.15.201 media: Ethernet autoselect (100baseTX ) status: active Jail: rl0: flags=8843 metric 0 mtu 1500 options=8 ether 00:40:f4:27:7e:a8 inet 192.168.15.201 netmask 0xffffffff broadcast 192.168.15.201 media: Ethernet autoselect (100baseTX ) status: active Hmm, I guess this is the reason why Samba doesn't see the broadcasts - the mask in the jail is /32, not /24. I read somewhere this cannot be changed? > Are you running single-IP jail as shipped with FreeBSD, or are you > running with patches? Single ip jail. No patches. Thanks a lot, Nejc _______________________________________________ I think you've answered the question. Thanks Bjorn, I setup samba within a jail a few years ago and had forgotten the interface setup. Nejc, this is my interface config, the jail is at 10.1.2.46 inside: flags=8843 mtu 1500 options=1b inet 10.1.2.2 netmask 0xffff0000 broadcast 10.1.255.255 inet 10.1.5.88 netmask 0xffffffff broadcast 10.1.5.88 inet 10.1.2.46 netmask 0xffffff00 broadcast 10.1.2.255 ether 00:40:63:e4:5b:50 media: Ethernet autoselect (1000baseTX ) Enjoy :) --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.