From owner-freebsd-jail@FreeBSD.ORG Sat Jun 21 17:35:05 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A8EF1065671 for ; Sat, 21 Jun 2008 17:35:05 +0000 (UTC) (envelope-from alexus@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by mx1.freebsd.org (Postfix) with ESMTP id E973C8FC13 for ; Sat, 21 Jun 2008 17:35:04 +0000 (UTC) (envelope-from alexus@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so8521348rvf.43 for ; Sat, 21 Jun 2008 10:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=bFje3KwpGnNUaunLoLwDG25h24UG7kV9utiCSj3BRrY=; b=XNv3+yxnAv2j+yg7Yh9ZJWI0ZfaaP9t3x+NZKoX4XKqyoh82EuSH81J34ELV0SQcfg I4kBCbPqQLcYSQotFQea45nFCOBv8bW/Bc0+LoDyjiLxOkaNDIwj+6is/dn5GfUdOlFn BR3gv3KHgAjvzfv/iDH+O3OmxLGejOMyzelGc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WBXtkwmfwT5KnB/kTBjuaflGOdRj/HJLKWDyx4fU3+RU6wvIB15O3w3lzmuF2VIcjn swndMzK2w9FcI7jGzqgoU06prW9WrAhlspLGTKnBu9QUOMU88GMg6kJh0m8U1oYmX01E kMMTQJsPZQkVSPXC9KitaIF1XutGFZsPlANPQ= Received: by 10.141.202.12 with SMTP id e12mr9629433rvq.273.1214069704458; Sat, 21 Jun 2008 10:35:04 -0700 (PDT) Received: by 10.114.67.7 with HTTP; Sat, 21 Jun 2008 10:35:04 -0700 (PDT) Message-ID: <6ae50c2d0806211035y73e09f15xde28403b824eb421@mail.gmail.com> Date: Sat, 21 Jun 2008 13:35:04 -0400 From: alexus To: "Ruben van Staveren" In-Reply-To: <78553FE8-BB3A-4AD5-9926-7B095260741D@verweg.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78553FE8-BB3A-4AD5-9926-7B095260741D@verweg.com> Cc: freebsd-jail@freebsd.org Subject: Re: new set of multi-IPv4/v6/noIP jail patches X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2008 17:35:05 -0000 cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror /usr/src/sys/kern/kern_jail.c cc1: warnings being treated as errors /usr/src/sys/kern/kern_jail.c: In function 'prison_if': /usr/src/sys/kern/kern_jail.c:876: warning: unused variable 'sai6' *** Error code 1 Stop in /usr/obj/usr/src/sys/t. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. bash-3.2# On Fri, Jun 20, 2008 at 10:10 AM, Ruben van Staveren wrote: > >> Maybe Im stupid, but I cant figure out the syntax in rc.conf for multiple >> ips. > > > You might try this patch against /etc/rc.d/jail to help starting > multi-IPv4/v6/no-IP jails > > Just the 1st iteration > > open issues > > * add support for no-IP jails > * handle ipv6 addresses more cleanly (support notations like > 2001:888:1029::10.1.1.1, 2001:888:1029:0:0:0:0:1) > > this is because you'll get "address not assigned" errors because ifconfig > doesn't seem to make the v6 address canonical. This only happens when you > stop the jail btw. > > you'll need to stuff v6 stuff in _ipv6 variables though. > > > > > > > Regards, > Ruben > > > -- http://alexus.org/