From owner-freebsd-net@FreeBSD.ORG Thu Apr 24 09:27:15 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 6B7611065689 for ; Thu, 24 Apr 2008 09:27:15 +0000 (UTC) (envelope-from nejc@skoberne.net) Received: from svarun.infrax.si (syssvarun.infrax.si [89.212.81.4]) by mx1.freebsd.org (Postfix) with ESMTP id 399308FC1E for ; Thu, 24 Apr 2008 09:27:15 +0000 (UTC) (envelope-from nejc@skoberne.net) Received: from localhost (sysSvarun.infrax.si [89.212.81.4]) by svarun.infrax.si (Postfix) with ESMTP id 5482924AA71; Thu, 24 Apr 2008 11:27:13 +0200 (CEST) Received: from svarun.infrax.si ([89.212.81.4]) by localhost (svarun.infrax.si [89.212.81.4]) (amavisd-maia, port 10024) with ESMTP id 32447-05; Thu, 24 Apr 2008 11:27:08 +0200 (CEST) Received: from [192.168.15.2] (lk.84.20.249.154.dc.cable.static.lj-kabel.net [84.20.249.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nejko@infrax.si) by svarun.infrax.si (Postfix) with ESMTP id 96AC724AA3A; Thu, 24 Apr 2008 11:27:08 +0200 (CEST) Message-ID: <48105269.4040303@skoberne.net> Date: Thu, 24 Apr 2008 11:27:05 +0200 From: =?windows-1252?Q?Nejc_=8Akoberne?= User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: "Bjoern A. Zeeb" References: <254549.19682.qm@web46005.mail.sp1.yahoo.com> <481047FF.4080707@skoberne.net> <20080424084727.G66744@maildrop.int.zabbadoz.net> In-Reply-To: <20080424084727.G66744@maildrop.int.zabbadoz.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 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:27:15 -0000 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