From owner-freebsd-questions@FreeBSD.ORG Sun Aug 7 00:58:03 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDC5116A41F for ; Sun, 7 Aug 2005 00:58:03 +0000 (GMT) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (hobbiton.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9592143D48 for ; Sun, 7 Aug 2005 00:58:03 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.161.222.227] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpa (Exim 4.51) id 1E1ZUI-0006Q5-MZ for freebsd-questions@freebsd.org; Sat, 06 Aug 2005 18:58:02 -0600 Mime-Version: 1.0 (Apple Message framework v733) Content-Transfer-Encoding: 7bit Message-Id: <1AC1583D-DC24-46EC-B061-107F95F973D2@shire.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: FreeBSD - Questions From: "Chad Leigh -- Shire.Net LLC" Date: Sat, 6 Aug 2005 18:58:02 -0600 X-Mailer: Apple Mail (2.733) X-SA-Exim-Connect-IP: 67.161.222.227 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on hobbiton.shire.net); SAEximRunCond expanded to false Subject: jail question -- why can a user programatically see more than one IP address inside a jail? 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: Sun, 07 Aug 2005 00:58:04 -0000 I have some jails. On 5.3R i386 Some software (some C based, some java) for various reasons, like licensing, look at all the IP addresses/interfaces available in the running system. Inside the jail they return more than just the jails IP address. For example, FrontBase database (www.frontbase.com) sees the following inside the jail " Host name and IP and ethernet address information ================================================= Name of this host : db.shire.net IP address of this host : XXX.70.252.100 IP address : XXX.70.252.132 IP address : 192.168.2.2 IP address : 127.0.0.1 No ethernet interfaces configured WARNING: The IP address, XXX.70.252.100 for this host db.shire.net is not configured on any network device. " The main address shown, XXX.70.252.100 is the jail's IP. XXX.70.252.132 is the main address assigned to bge0 on the jail's host 192.168.2.2 is the main address assigned to bge1 on the jail's host 127.0.0.1 is the main address assigned to lo0 on the jail's host The other bunch of alias IPs assigned to bge0 do not show through. I was wondering why the jailed processes can see these addresses though they do not show in ifconfig for example and you cannot do anything with them... On a related note we have some java software that is trying to do multicast inside a jail to do the mDNS stuff for ZeroConf and it is getting confused for similar reasons it appears (still gathering details on this) thanks Chad --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad@shire.net