From owner-freebsd-questions@FreeBSD.ORG Fri Mar 13 19:21:42 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5FC3106566C for ; Fri, 13 Mar 2009 19:21:42 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 9E7818FC0C for ; Fri, 13 Mar 2009 19:21:42 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by yw-out-2324.google.com with SMTP id 5so262950ywb.13 for ; Fri, 13 Mar 2009 12:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=SzajVTm4hnmyx1A5TO5bbjuGbJAQGHMfNDm1Np3k/mM=; b=V9xOPUWmPjPt9bO9qwldRtBBAjaDY9tWfIofJ+JnOSSumdcyrB2rXjjGSu4NHl9hbd 7dZZJ8tQlS+NYZ+Z5pvtw5y34YCUMYcI3kHM6sOniTPur5tdmTSihPgK5peU9lwCeATy DQSl9+7ZhLValPCksDd/tiUaX4vRxKT4c+Cu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cGwOq14Ym1FSD3kc7CqQpcNlX4dPV7KIucYks++ObGhP9K4LGkQJxBSYfLwvV/H0oN TdF9Wtk+C8t01g8lB74JN2U8fUqRLC/JYr+n8gCDBF8dmznQCaDTpDADcJw1LStRiZrt CJIxClRig2nH974MBJQUTUOgwRMaPE/hDjX20= MIME-Version: 1.0 Received: by 10.231.30.198 with SMTP id v6mr368629ibc.26.1236972101675; Fri, 13 Mar 2009 12:21:41 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Mar 2009 13:21:41 -0600 Message-ID: From: Tim Judd To: Dave Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Bind to Localhost from 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: Fri, 13 Mar 2009 19:21:43 -0000 On Fri, Mar 13, 2009 at 12:59 PM, Dave wrote: > Hi all, > > I'm trying to get cPanel installed on my host, and to run it from jail. > The > installer script that cPanel provides, however, seems to be confused by the > fact that it cannot test the daemons it has installed by checking if they > are listening on localhost. Is there any way to allow services running in > jail to bind on localhost? > > I noticed that there was a patch committed to the stable branch that > allowed > for jails to have multiple or no ip addresses. Is this perhaps a solution > to the problem I've outlined above? > > If anyone can provide any insight it would be much appreciated! > > Thanks, > Dave > How does any system to know if you're talking to the host localhost, or the jail's localhost? I see a logical flaw that would make that somewhat difficult. Since the point of IP addresses are supposed to be unique (let's not get into rfc1918 addresses, or my localhost has your localhost IP), how can that be safely determined? Now, if it was 127.0.0.10 on the host, and 127.0.0.1 on the jail, and 127.0.0.2 on a 2nd jail, etc -- that could work. can you trick cPanel by using /etc/hosts to say localhost (name of a machine) maps to your jail's IP? Can you provide any other workaround that will allow such scripts to dynamically and correctly find the information they're looking for? Couple ideas, HTH --Tim