From owner-freebsd-jail@FreeBSD.ORG Sat Nov 29 17:05:08 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 378911065679 for ; Sat, 29 Nov 2008 17:05:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id EDC768FC0A for ; Sat, 29 Nov 2008 17:05:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 4BD8F41C67E; Sat, 29 Nov 2008 18:05:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id emsD2saKx+Pq; Sat, 29 Nov 2008 18:05:06 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id ECB0941C678; Sat, 29 Nov 2008 18:05:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id A76B74448D5; Sat, 29 Nov 2008 17:00:23 +0000 (UTC) Date: Sat, 29 Nov 2008 17:00:23 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Frank Behrens In-Reply-To: <200811272118.mARLIdKH006580@post.behrens.de> Message-ID: <20081129165714.E61259@maildrop.int.zabbadoz.net> References: <200811272118.mARLIdKH006580@post.behrens.de> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-jail@freebsd.org Subject: Re: Anyone interested in jail patches? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2008 17:05:08 -0000 On Thu, 27 Nov 2008, Frank Behrens wrote: Hi, > On the other side I still read in the patched jail(2) man page: > "Similarly, it might be a good idea to add an address alias flag such > that daemons listening on all IPs (INADDR_ANY) will not bind on that > address...". Can you explain the current behaviour? I think this question is related to your PR kern/84215. The current situation is: jails take precendence. So if sshd is listening on inaddr_any on the host and on inaddr_any inside a jail the connection to an IP belonging to a jail will end up inside the jail; any connections to IPs not beloning to jails will end up on the base. Obviously if you stop the jail and ssh to a former jail IP you'll end up on the bsae system and ssh would complain about different keys possibly while telnet or similar things won't notice. /bz -- Bjoern A. Zeeb Stop bit received. Insert coin for new game.