From owner-freebsd-net@FreeBSD.ORG Thu Apr 24 11:44:22 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 1F7721065670 for ; Thu, 24 Apr 2008 11:44:22 +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 E09C48FC1B for ; Thu, 24 Apr 2008 11:44:21 +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 37E2724AA77; Thu, 24 Apr 2008 13:44:20 +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 13653-03; Thu, 24 Apr 2008 13:44:14 +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 41A2424AA3A; Thu, 24 Apr 2008 13:44:14 +0200 (CEST) Message-ID: <4810728A.8090902@skoberne.net> Date: Thu, 24 Apr 2008 13:44:10 +0200 From: =?windows-1252?Q?Nejc_=8Akoberne?= User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <254549.19682.qm@web46005.mail.sp1.yahoo.com> <481047FF.4080707@skoberne.net> <20080424084727.G66744@maildrop.int.zabbadoz.net> <48105269.4040303@skoberne.net> <48106E76.7030503@quip.cz> In-Reply-To: <48106E76.7030503@quip.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Cc: "Bjoern A. Zeeb" , 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 11:44:22 -0000 Hello, > Try not to use jail_samba_interface="rl0" for "auto aliasing" and add > > ifconfig_rl0_alias0="inet 192.168.15.201 netmask 255.255.255.0" > > This should give you > inet 192.168.15.201 netmask 0xffffffff broadcast 192.168.15.255 > in the ifconfig output (after restart) Okay. Now I can see this from inside the jail: rl0: flags=8843 metric 0 mtu 1500 options=8 ether 00:40:f4:27:7e:a8 inet 192.168.15.201 netmask 0xffffff00 broadcast 192.168.15.255 media: Ethernet autoselect (100baseTX ) status: active and this on the 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 0xffffff00 broadcast 192.168.15.255 media: Ethernet autoselect (100baseTX ) status: active So the netmask is correct now, I guess. But nevertheless, it still doesn't work. I simply cannot access my Samba directly by name (\\freebsd) but I can access it via IP (\\192.168.15.201) normally. My rc.conf is now as follows (the relevant lines): ifconfig_rl0="192.168.15.198 netmask 255.255.255.0" ifconfig_rl0_alias0="192.168.15.201 netmask 255.255.255.0" defaultrouter="192.168.15.1" 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.infrax.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" #=--------------------------------------------------------------=# Any other ideas? Thanks, Nejc