From owner-freebsd-jail@FreeBSD.ORG Thu Mar 7 01:40:42 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 72ADBAF2 for ; Thu, 7 Mar 2013 01:40:42 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id 3710E822 for ; Thu, 7 Mar 2013 01:40:42 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 5B600CB8C5A; Wed, 6 Mar 2013 19:23:05 -0600 (CST) Received: from 68.255.104.38 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Wed, 6 Mar 2013 19:23:05 -0600 (CST) Message-ID: <55865.68.255.104.38.1362619385.squirrel@cosmo.uchicago.edu> In-Reply-To: References: Date: Wed, 6 Mar 2013 19:23:05 -0600 (CST) Subject: Re: IPv4 addresses clash / jails not working after =?iso-8859-1?Q?reboot=85?= From: "Valeri Galtsev" To: "Yoann Gini" User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: galtsev@kicp.uchicago.edu List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Mar 2013 01:40:42 -0000 Hi Yoann, I must say I'm not an expert if the first place, and I never used ezjail, I'm creating jails manually... Still. Try to make all jails configured each with one single IP. To the best of my knowledge jail implementation doesn't support multiple IPs. I have the box similar to yours, that has 3 different IPs. I have a bunch of services in individual jails. With that restriction in jail implementation I have to have three different jails (one per IP) for each of the services. Someone can correct me if I'm wrong about something. Thanks. Valeri On Wed, March 6, 2013 1:25 pm, Yoann Gini wrote: > Hi, > > I’m Yoann. It’s my first message here so a little brief about me. I’m a OS > X Server System Administrator and Trainer, actually working on a FreeBSD > based setup for a simple service provider infrastructure. > > On a server, I’ve three jails to provide public services, private services > and VPN to access to the private services. > > I’ve setup the network part of my server with two interfaces, one real > with one IPv4 and 4 IPv6 and a lo1 with 4 IPv4. > > As a beginner on this, I’ve start with ezjail to create my jails, I’ve > create and configure my 4 jails without any problems, I’ve been able to > start and stop them without difficulties, installing some services, > everything went right. > > At the end, I’ve hit a reboot and here, all goes down… > > When my server come back, only one on the three jails start, the other > fails and a sh -x end whit this this : > > + eval '_x="$jail_front0_public_example_com_ip_multi0"' > + _x='' > + break > + echo ' cannot start jail "front0_public_example_com": ' > cannot start jail "front0_public_example_com": > + tail +2 /tmp/jail.4n2kxXqu/jail.5037 > jail: IPv4 addresses clash > + rm -f /tmp/jail.4n2kxXqu/jail.5037 > + rmdir /tmp/jail.4n2kxXqu > + echo . > > Here is my network setup : > > em0: > inet IPv4Prefix.184 netmask 0xffffff00 broadcast IPv4Prefix.255 > inet6 IPv6Prefix::1 prefixlen 64 > inet6 IPv6Prefix::2 prefixlen 64 > inet6 IPv6Prefix::3 prefixlen 64 > lo1: > inet 10.42.0.1 netmask 0xffffff00 > inet 10.42.0.2 netmask 0xffffff00 > inet 10.42.0.3 netmask 0xffffff00 > inet 10.42.0.4 netmask 0xffffff00 > > I can’t find a lot of resources on this error… So if someone can give me a > clue about what happening, it could be nice :-) > > Cheers > Yoann > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++