From owner-freebsd-stable Mon Oct 30 3:53:17 2000 Delivered-To: freebsd-stable@freebsd.org Received: from thelab.hub.org (CDR20-53.accesscable.net [24.138.20.53]) by hub.freebsd.org (Postfix) with ESMTP id 71F2537B479; Mon, 30 Oct 2000 03:53:10 -0800 (PST) Received: from localhost (scrappy@localhost) by thelab.hub.org (8.11.1/8.11.1) with ESMTP id e9UBoo001327; Mon, 30 Oct 2000 07:50:50 -0400 (AST) (envelope-from scrappy@hub.org) X-Authentication-Warning: thelab.hub.org: scrappy owned process doing -bs Date: Mon, 30 Oct 2000 07:50:49 -0400 (AST) From: The Hermit Hacker To: Marc Silver Cc: freebsd-stable@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Multiple Jail environment(s) on one host ... In-Reply-To: <20001030074727.P20320@draenor.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 30 Oct 2000, Marc Silver wrote: > Hi there, > > It's my understanding that the chroot's (jails) should run on different > IP addresses to that of your base system. > > For instance, let's say you have three addresses: > > 192.168.0.10 > 192.168.0.11 > 192.168.0.12 > > 192.168.0.10 would be that of your base machine and all it's services, > which you should make sure are bound to just that address, and none of > the others. The same would apply for your chroots. Their services > should also all be running on a seperate dedicated IP address. Right, I read that too. the base machine is on 216.126.84.253, while the two envs are on 216.126.85.28 and 216.126.85.73 respectively ... that is why I'm confused by the 'Address already in use' issue ... > > Cheers, > Marc > > On Sun, Oct 29, 2000 at 11:40:36PM -0400, The Hermit Hacker wrote: > > > > Morning all ... > > > > I'm running 4.x-STABLE on a machine, that I have setup two jail > > environments over the base system, but the second one is getting the > > following "errors" generated: > > > > Oct 29 22:32:20 mail inetd[97608]: telnet/tcp: bind: Address already in use > > Oct 29 22:32:20 mail inetd[97608]: ftp/tcp: bind: Address already in use > > > > I have portmap disabled in both jail(s) and the base OS, and inetd > > bound in the base OS to its IP ... do I have to bind inside of each jail > > to? I thought it got bound only to those IPs that were visible, no? > > > > Hrmmm ... if I do a 'telnet localhost smtp' inside of the second > > env, it gets its own sendmail ... if I do a 'ftp localhost', it gets the > > ftp server of the first env ... samn thing with telnet, it gets me the > > first env ... > > > > If I add the -a IP option to inetd_flags, I can eliminate the > > behaviour ... is this the way its supposed to work? > > > > Thanks ... > > > > > > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy > > Systems Administrator @ hub.org > > primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org > > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message