From owner-freebsd-net@freebsd.org Mon Dec 28 18:31:11 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6250A52808 for ; Mon, 28 Dec 2015 18:31:11 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9537D1D96 for ; Mon, 28 Dec 2015 18:31:11 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from amavis-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 3pTnWb1bBXz1H2 for ; Mon, 28 Dec 2015 19:31:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:organization:subject:subject:from:from :date:date:content-transfer-encoding:content-type:content-type :mime-version:received:received:received:received; s=jakla4; t= 1451327464; x=1453919465; bh=F2R36cm3B5p50ixNEO2x+6YBJvVodfTeMeO QGLh+fsQ=; b=lkUzSUZR4xChydkynqPNOgi9as2lGlk0leKU37tmhHd7XjO8Xum v87rbImtTj2j69MLeJb0K7BETb6/S+Axg7qx1m0aW8qMfDPnbaNjApiT3WTLfU4+ MvidWJEceCgSl/sbGynbTV2WZg+31VsfClWUsx+Ov/Ey9oSaVdquMx1I= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10026) with LMTP id 7BTBmxYvSPxA for ; Mon, 28 Dec 2015 19:31:04 +0100 (CET) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP id 3pTnWX5PKzz1H1 for ; Mon, 28 Dec 2015 19:31:04 +0100 (CET) Received: from nabiralnik.ijs.si (nabiralnik.ijs.si [IPv6:2001:1470:ff80::80:16]) by mildred.ijs.si (Postfix) with ESMTP id 3pTnWX3C3Pzh4 for ; Mon, 28 Dec 2015 19:31:04 +0100 (CET) Received: from neli.ijs.si (2001:1470:ff80:88:21c:c0ff:feb1:8c91) by nabiralnik.ijs.si with HTTP (HTTP/1.1 POST); Mon, 28 Dec 2015 19:31:04 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 28 Dec 2015 19:31:04 +0100 From: Mark Martinec To: freebsd-net@FreeBSD.org Subject: CARP IP address and jails Organization: Jozef Stefan Institute Message-ID: <67f945a70d620ea4ce0c29d0a297545d@mailbox.ijs.si> X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.1.3 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2015 18:31:11 -0000 Trying to set up a jail with an IP address on a VHID of an interface, using FreeBSD 10.2. Back in the 9.x days when CARP (Common Address Redundancy Protocol) was implemented as a separate cloned interface, I suppose one could create such interface in a host and delegate it to jail(8), which could then automatically assign a jail's IP address alias to it. Now with FreeBSD 10 I cannot see how jail(8) could assign a jail's configured IP address alias to an interface under a given VHID. As far as I can tell the ip4.addr and ip6.addr jail options can only take an interface name and an IP address, but there is no provision to specify a VHID. Is the jail's ip4=inherit (and ip6=inherit) now the only option of running a jail on a CARPed IP address, allowing a jail to have unrestricted access to all system addresses ? Mark