From owner-freebsd-jail@FreeBSD.ORG Sun Apr 29 02:00:47 2012 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 37CEA1065670; Sun, 29 Apr 2012 02:00:47 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id EBD6D8FC14; Sun, 29 Apr 2012 02:00:46 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa05 [127.0.0.1]) by ltcfislmsgpa05.fnfis.com (8.14.4/8.14.4) with SMTP id q3T20iFM001795; Sat, 28 Apr 2012 21:00:44 -0500 Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa05.fnfis.com with ESMTP id 14gvc5g0bs-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sat, 28 Apr 2012 21:00:44 -0500 Received: from [10.0.0.105] (10.14.152.61) by smtp.fisglobal.com (10.132.206.31) with Microsoft SMTP Server (TLS) id 14.2.283.3; Sat, 28 Apr 2012 21:00:42 -0500 MIME-Version: 1.0 (Apple Message framework v1257) From: Devin Teske In-Reply-To: <4F9C74B4.70308@FreeBSD.org> Date: Sat, 28 Apr 2012 19:00:40 -0700 Message-ID: <45330131-E805-4590-8973-972073FC6EB8@fisglobal.com> References: <4F99AB0E.4090805@FreeBSD.org> <4F9B6E8F.8070708@erdgeist.org> <4F9C00E2.3070205@FreeBSD.org> <4F9C74B4.70308@FreeBSD.org> To: Jamie Gritton X-Mailer: Apple Mail (2.1257) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7580, 1.0.260, 0.0.0000 definitions=2012-04-28_07:2012-04-27, 2012-04-28, 1970-01-01 signatures=0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD-Jail Subject: Re: New jail(8) committed X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Devin Teske List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Apr 2012 02:00:47 -0000 On Apr 28, 2012, at 3:52 PM, Jamie Gritton wrote: > I don't know about wrapping a utility around it, but it would be nice to > have in a library. If it could be made to work for not only jail, but > apmd and devd as well, then we could make some existing code cleaner. >=20 I'm thinking about throwing "figpar" into the CVS projects tree and then creating a few examples for reading jail.conf, apmd.conf, and devd.conf as well as dhcpd.conf. Naturally, this would be a library that you load and then pass it a struct-= array describing how you're going to handle the config file directives and what they look like. You're passing function pointers in the struct array and the parse_config() function will call the functions you pass to handle keywords. The header file (figpar.h) is 123 lines and the source file (figpar.c) is 3= 76 lines. There's only 2 functions and one struct to learn. The 2 functions ar= e: config_t* get_config_option(config_t [], char *); int parse_config(config_t [], char *, int (*)(u_int32_t, char *, char *)); NOTE: It will of course have to be cleaned up for style(9) compatibility (that's where the ``dusting off'' part comes-in). A link to the sources that I've uploaded temporarily to sourceforge (again, if we're serious about needing a light-weight parser for this file-format, I think we should import it into cvs:projects/figpar/ and hack on it together= ): http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/figpar/ --=20 Devin >=20 >=20 > On 04/28/12 10:52, Devin Teske wrote: >> On Apr 28, 2012, at 7:38 AM, Jamie Gritton wrote: >>=20 >>> The main reason I didn't consider a jail.d approach is just that I >>> haven't - such things are a little off the radar for me. It seemed very >>> natural to use a configuration file format that other programs already >>> use (e.g. named, apmd, devd). I suppose it's true that the "foo.d" >>> approach is also in use by other programs, though I mostly seem to see >>> those on Linux. And if I did opt for a directory approach, the files >>> within the directory would still need a format - you can't get away from >>> the fact that a config file needs a format. >>>=20 >>> It would be nice to have a general parser for C-style config files, and >>> I looked for such a library when I started on this. But such a library >>> doesn't seem to exist.Perhaps it's time to make one. >>>=20 >>=20 >> The config file format that you've chosen is remarkably identical to con= fig files for which I've already written parsers. >>=20 >> So, I guess I'm saying that I'm willing to help out in this area. >>=20 >> My parser is written in C, it's very small and light-weight, and it's ca= lled figpar (con[fig par]ser). >>=20 >> I can dust if off, slap a BSD license on it, wrap a utility around it an= d we could have something like sysrc (which operates on the collection of r= c.conf(5) files). >>=20 >> Alternatively, I could rewrite it in something like sh(1) if C is not de= sired. _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. From owner-freebsd-jail@FreeBSD.ORG Sun Apr 29 23:36:14 2012 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 6E516106566B for ; Sun, 29 Apr 2012 23:36:14 +0000 (UTC) (envelope-from oleg.ginzburg@nevosoft.ru) Received: from eu1sys200aog106.obsmtp.com (eu1sys200aog106.obsmtp.com [207.126.144.121]) by mx1.freebsd.org (Postfix) with SMTP id AF2588FC14 for ; Sun, 29 Apr 2012 23:36:13 +0000 (UTC) Received: from mail-lpp01m010-f47.google.com ([209.85.215.47]) (using TLSv1) by eu1sys200aob106.postini.com ([207.126.147.11]) with SMTP ID DSNKT53QZ67ptF8o9uHjXjaH68GQ7gtoqhoz@postini.com; Sun, 29 Apr 2012 23:36:13 UTC Received: by lagw12 with SMTP id w12so2050690lag.34 for ; Sun, 29 Apr 2012 16:36:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=Ybe8u9aehcnnMY+ykH8dWNvpLCnUoHQMyjcOD0aGV+8=; b=cSwb8pg5iKOLUyK2oRZ/pzHZ7kdSgQKQUAG4exK04ketdrd97AXfLNAw0UQTEJc7Sj SkcIFirkyzN+vAFqEsXSnR5PaYNPfgpbtgFzpOEjXwS3xqY1z3oYiUpJJ8kM7R88cpyy RYNhYWzUkgwJkOY45zJcUKrQ3ex7eYXAoc2NtOBUjkvi5C8djbxpdvDsJcIuagX1Gra1 0ie7y9s2P3p3glFAHp3b9ZtjybPZ8I6IYjNlPg7tQmrG5N7q37E6Myt/tkyFn98Kis5c ikYigp0GrD5+wFJdlKAzhzf9G5BYYFvpCpV6KYQVVlNwxAhGS91EbaBqCLCghLRQE9tK qX4Q== Received: by 10.112.87.195 with SMTP id ba3mr8868210lbb.75.1335742566927; Sun, 29 Apr 2012 16:36:06 -0700 (PDT) Received: from gizmo.my.domain (nat140-253-205-109.tvoe.tv. [109.205.253.140]) by mx.google.com with ESMTPS id lp15sm14710405lab.1.2012.04.29.16.36.05 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Apr 2012 16:36:05 -0700 (PDT) From: Mr Dandy To: freebsd-jail@freebsd.org Date: Mon, 30 Apr 2012 03:37:08 +0400 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <4F99AB0E.4090805@FreeBSD.org> <8AFDD50D-038D-4D71-A67A-7D9BE629DAFA@lists.zabbadoz.net> In-Reply-To: <8AFDD50D-038D-4D71-A67A-7D9BE629DAFA@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204300337.08712.subbsd@gmail.com> X-Gm-Message-State: ALoCoQmo+2r1jOyk1xHux/QOsisC9DqHT7dADGkvlKJZszTk7XnWmcsgZZ8iXuCxAXLlVjLKKxxC Cc: "Bjoern A. Zeeb" , Jamie Gritton Subject: Re: New jail(8) committed 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: Sun, 29 Apr 2012 23:36:14 -0000 Looks like the new functionality lost abilities of old /etc/rc.d/jail to carry out multiple quantity of prestart/stop instruction Old cool feature: jail_example_exec_afterstart0="" jail_example_exec_afterstart1="" .. In new style it doesn't work: exec.start0 = '/bin/date'; exec.start1 = '/bin/date'; .. also it would be great to have "include " for some other places (/etc/jail.d for example) that it was possible to have one config per jail. From owner-freebsd-jail@FreeBSD.ORG Mon Apr 30 01:44:59 2012 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 C6C1E106566B for ; Mon, 30 Apr 2012 01:44:59 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from m2.gritton.org (gritton.org [199.192.164.235]) by mx1.freebsd.org (Postfix) with ESMTP id 91FEF8FC0C for ; Mon, 30 Apr 2012 01:44:59 +0000 (UTC) Received: from glorfindel.gritton.org (c-174-52-130-208.hsd1.ut.comcast.net [174.52.130.208]) (authenticated bits=0) by m2.gritton.org (8.14.4/8.14.4) with ESMTP id q3U1irBZ021384; Sun, 29 Apr 2012 19:44:53 -0600 (MDT) (envelope-from jamie@FreeBSD.org) Message-ID: <4F9DEE93.4000602@FreeBSD.org> Date: Sun, 29 Apr 2012 19:44:51 -0600 From: Jamie Gritton User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.24) Gecko/20120129 Thunderbird/3.1.16 MIME-Version: 1.0 To: Mr Dandy References: <4F99AB0E.4090805@FreeBSD.org> <8AFDD50D-038D-4D71-A67A-7D9BE629DAFA@lists.zabbadoz.net> <201204300337.08712.subbsd@gmail.com> In-Reply-To: <201204300337.08712.subbsd@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , freebsd-jail@FreeBSD.org Subject: Re: New jail(8) committed 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: Mon, 30 Apr 2012 01:44:59 -0000 On 04/29/12 17:37, Mr Dandy wrote: > Looks like the new functionality lost abilities of old /etc/rc.d/jail to carry > out multiple quantity of prestart/stop instruction > > Old cool feature: > jail_example_exec_afterstart0="" > jail_example_exec_afterstart1="" > .. > > In new style it doesn't work: > exec.start0 = '/bin/date'; > exec.start1 = '/bin/date'; > .. I'll need to make sure I have the documentation in order for this. You can have: exec.start = '/bin/foo'; exec.start += '/bin/bar'; > also it would be great to have "include" for some other places > (/etc/jail.d for example) that it was possible to have one config per jail. Yes it would. This is one of the things on my to-do list. - Jamie From owner-freebsd-jail@FreeBSD.ORG Mon Apr 30 02:09:51 2012 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 21214106566C for ; Mon, 30 Apr 2012 02:09:51 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id C40A78FC12 for ; Mon, 30 Apr 2012 02:09:50 +0000 (UTC) Received: by iahk25 with SMTP id k25so4944259iah.13 for ; Sun, 29 Apr 2012 19:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=u8PGCUsj2u0Ep8xnmqORWKlFk5/VHkSoGVaTHZCgTxA=; b=fy+N1E954RPYMgTDXJJlaPfkGjnBnEDGNIqa8COSGSRBjppGl5aW9xQlT+taRSH+Vo qBoxNA3A7n99Xs+iFQsIU4cAwgybQY0NyfHeHOj3FUImaGPNkiZDZQFPD/eE9Kg6S33j nVCZUeGczUMNf9mCYuNg7ak3tmB5HwM5AsA4Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=u8PGCUsj2u0Ep8xnmqORWKlFk5/VHkSoGVaTHZCgTxA=; b=DGQj3I03EgM5OO9axvVf/MNK4tf+UhscbICNL33xAnIn1K9BxZG1iuYa7fugBjwMv1 lYh7gwAy2f7CV2V6glfItbNToaU6KD++o1YT0kc6YInPty6LyFAfOTOUe9aIabl8+WHW vllrfEKCZCR8R+e99+4qvBPXmHBtqZTZkLDXNPDYVdugtIr72SRtNuScS6jlqNTy+0Hm 6fdeBUp1uCzDlJrE0/mblXl5neOEk8LGOVF8jkiQmvSMzumoTI5A9ptKfSyq+Odm7ANd htNpNZJ+sR+gwzf5btj+HTFgraJdPQKW5A58wMeXc2lOgijr0AcMjJe/tQYgnN7SikMl tL3g== Received: by 10.42.97.194 with SMTP id p2mr14663637icn.36.1335751790200; Sun, 29 Apr 2012 19:09:50 -0700 (PDT) Received: from DataIX.net (adsl-99-181-146-133.dsl.klmzmi.sbcglobal.net. [99.181.146.133]) by mx.google.com with ESMTPS id k8sm28573217igz.4.2012.04.29.19.09.49 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Apr 2012 19:09:49 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q3U29lV7050900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Apr 2012 22:09:47 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q3U29ltv050899; Sun, 29 Apr 2012 22:09:47 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sun, 29 Apr 2012 22:09:47 -0400 From: Jason Hellenthal To: Jamie Gritton Message-ID: <20120430020947.GA29129@DataIX.net> References: <4F99AB0E.4090805@FreeBSD.org> <8AFDD50D-038D-4D71-A67A-7D9BE629DAFA@lists.zabbadoz.net> <201204300337.08712.subbsd@gmail.com> <4F9DEE93.4000602@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F9DEE93.4000602@FreeBSD.org> X-Gm-Message-State: ALoCoQmutv2IKWtcpyI6eeEM5jMn8BjGdzX2QnJlwVmCeccxWsE+vxfGBI4zhfzG/bkH4icw34nG Cc: Mr Dandy , freebsd-jail@freebsd.org, "Bjoern A. Zeeb" Subject: Re: New jail(8) committed 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: Mon, 30 Apr 2012 02:09:51 -0000 On Sun, Apr 29, 2012 at 07:44:51PM -0600, Jamie Gritton wrote: > On 04/29/12 17:37, Mr Dandy wrote: > > Looks like the new functionality lost abilities of old /etc/rc.d/jail to carry > > out multiple quantity of prestart/stop instruction > > > > Old cool feature: > > jail_example_exec_afterstart0="" > > jail_example_exec_afterstart1="" > > .. > > > > In new style it doesn't work: > > exec.start0 = '/bin/date'; > > exec.start1 = '/bin/date'; > > .. > > I'll need to make sure I have the documentation in order for this. You > can have: > > exec.start = '/bin/foo'; > exec.start += '/bin/bar'; Thank you.... no more renumbering > > > also it would be great to have "include" for some other places > > (/etc/jail.d for example) that it was possible to have one config per jail. > > Yes it would. This is one of the things on my to-do list. > > - Jamie > _______________________________________________ > 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" -- - (2^(N-1)) From owner-freebsd-jail@FreeBSD.ORG Mon Apr 30 11:07:34 2012 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A87A1065674 for ; Mon, 30 Apr 2012 11:07:34 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 541B28FC29 for ; Mon, 30 Apr 2012 11:07:34 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3UB7Yko053923 for ; Mon, 30 Apr 2012 11:07:34 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3UB7X5A053921 for freebsd-jail@FreeBSD.org; Mon, 30 Apr 2012 11:07:33 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Apr 2012 11:07:33 GMT Message-Id: <201204301107.q3UB7X5A053921@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org 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: Mon, 30 Apr 2012 11:07:34 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- p bin/165515 jail [jail][patch] "jail: unknown parameter: allow.nomount" p bin/161957 jail jls(8): jls -v doesn't show anything if system compile o kern/159918 jail [jail] inter-jail communication failure o kern/156111 jail [jail] procstat -b not supported in jail o misc/155765 jail [patch] `buildworld' does not honors WITHOUT_JAIL o conf/154246 jail [jail] [patch] Bad symlink created if devfs mount poin o conf/149050 jail [jail] rcorder ``nojail'' too coarse for Jail+VNET s conf/142972 jail [jail] [patch] Support JAILv2 and vnet in rc.d/jail o conf/141317 jail [patch] uncorrect jail stop in /etc/rc.d/jail o kern/133265 jail [jail] is there a solution how to run nfs client in ja o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with 13 problems total. From owner-freebsd-jail@FreeBSD.ORG Fri May 4 09:55:55 2012 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 96C5D106564A for ; Fri, 4 May 2012 09:55:55 +0000 (UTC) (envelope-from drl@void.my) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA708FC08 for ; Fri, 4 May 2012 09:55:54 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2531500vbm.13 for ; Fri, 04 May 2012 02:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=void.my; s=g; h=mime-version:reply-to:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type; bh=GWt/mEBGNI71pO3dwpgD3zfa0YtM9JWKLbJTaXSswNw=; b=ck9el6pinYc1+uXwFJPgWJSFoeqBUTBvampsr+3j+RlTe2IfJtqEnWgpOQKYVhLUh0 2ugib/0rulJoNAqNeSOjnmk1Of4wPGzzRwjqaIKT2MjExKUCD/E+Oy4gp3Gxpbm/YNcT vC17ao026B6htRQpnnXOoZK1iC2baulC0JOMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type:x-gm-message-state; bh=GWt/mEBGNI71pO3dwpgD3zfa0YtM9JWKLbJTaXSswNw=; b=YyL875q2GFiWIn/CaahLJ3UjS82cQZKqfzM0Ed9QeXvg1cUiAWe+mtamyo8vKbLfHA KWFKz6vv0rK3gzmt4pUCpnjZIwltmks6sQ9s8X3z4bBFyN+FV6yXaabJZD51URBVbmD4 4BXZYy+rt60JhkqlnCfhRYEhSL6FlAgPa8mrdPL+zMQZRvE688IKj61kfWByHFrJO7mN QX1LgRzy+nOu+rdpxcgtiubzWXnl95KCMKz6ZpWdONcEGwHUc33a/5he+oM2QPh31Eur UEfUDBD9Dc1bKzUMxyiby+8qOOE25IyRTErXkxX5aRM1NJZjlIFwqZmcu+j2darQYrzW lE1A== Received: by 10.52.65.69 with SMTP id v5mr2737431vds.14.1336125344341; Fri, 04 May 2012 02:55:44 -0700 (PDT) MIME-Version: 1.0 Sender: drl@void.my Received: by 10.52.168.2 with HTTP; Fri, 4 May 2012 02:55:24 -0700 (PDT) From: Darryl Yeoh Date: Fri, 4 May 2012 17:55:24 +0800 X-Google-Sender-Auth: dVub4R3N5ZWzpJAIs3PlaaFBdtI Message-ID: To: freebsd-jail@freebsd.org X-Gm-Message-State: ALoCoQlwb1fXUbDq+Ov9vKvIGC/BnxfPnMkPs8EjX+zmNAexsN9FUVZ5bMXd5SxY1WiX8OMnwFfv Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Modify jail IP without restarting X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: drl@bsd.my List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 09:55:55 -0000 Hi guys, I'm on FreeBSD 9-STABLE/amd64 at the moment and is there a way to add/modify a jail's existing IP address without restarting jail ? Initially the jail was configured with 5 IP addresses. And now we have clients requesting additional IP addresses. A bunch of users are in the jail at the moment and I don't want to restart the jail just cause of this. Thanks. -Darryl From owner-freebsd-jail@FreeBSD.ORG Fri May 4 10:05:23 2012 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 BF89E1065673 for ; Fri, 4 May 2012 10:05:23 +0000 (UTC) (envelope-from drl@void.my) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 656428FC12 for ; Fri, 4 May 2012 10:05:23 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2536706vbm.13 for ; Fri, 04 May 2012 03:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=void.my; s=g; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=PWof/eiuXs/7hRwgDc5/UMcJhbAGu9cD/raJwL1b3Hk=; b=aRorbzC4v8Jn19LxPbZkBsKzxc35A8Yl5c6pbhbtmfVBsKH1ANHVEpXgmW/nMdmViR R6JVNaz6t82BSeGgftjnw682px3BzxZHzlH7/jKLN/81rUEuYSz9SnE8dwc6yDg4b6CZ tjHsmsw99PTOh4IKWglJBjp/um9rQgRm17La8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=PWof/eiuXs/7hRwgDc5/UMcJhbAGu9cD/raJwL1b3Hk=; b=a9hj4Kb8qIiEulR+oL0yUAfciXmJBPkF0q8A6WZCeUiHoUmQg6yqZEXISuofywZbA0 jEI14MOiK8Nlk/18Zgo/10bCO8McXoQujbsylN5EANdZj9XuJpEkwud2jliV05EJ/QOS FErTbLwQNLmLgg1K8TUjGYXvwRU2fX9ZWHwBcdudRt8FIKAfnTmWuglF39BFbweA2zNM J7uJICpLz22gTjKp8ZjbgrdcKluBmX05dMMNs7eYhkeKRED6H/cLkVDX4e10IgZcQmqs ZPKfR3Uju5VTD2zPHEDJky5752xCN+L/b9rcmCo/oRvZzG4ea4656uWvZsV/v0H7TLtZ My3Q== Received: by 10.52.72.227 with SMTP id g3mr671972vdv.21.1336125459410; Fri, 04 May 2012 02:57:39 -0700 (PDT) MIME-Version: 1.0 Sender: drl@void.my Received: by 10.52.168.2 with HTTP; Fri, 4 May 2012 02:57:18 -0700 (PDT) In-Reply-To: References: From: Darryl Yeoh Date: Fri, 4 May 2012 17:57:18 +0800 X-Google-Sender-Auth: JGiSauRR-6oXRn9mxc7Oilne9rs Message-ID: To: freebsd-jail@freebsd.org X-Gm-Message-State: ALoCoQltdB1/Gk4rofrWrzkm9I+hphd8DtoHdF+xp+z4OvPCZfIzuEBd7XAFr6u70jB7gev1xVHG Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Modify jail IP without restarting X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: drl@bsd.my List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 10:05:23 -0000 On Fri, May 4, 2012 at 5:55 PM, Darryl Yeoh wrote: > Hi guys, > > I'm on FreeBSD 9-STABLE/amd64 at the moment and is there a way to > add/modify a jail's existing IP address without restarting jail ? > > Initially the jail was configured with 5 IP addresses. And now we have > clients requesting additional IP addresses. A bunch of users > are in the jail at the moment and I don't want to restart the jail just > cause of this. > > Thanks. > -Darryl > Forgo to mention I'm not on the list. Please reply me directly and CC freebsd-jail@ Thanks. -Darryl From owner-freebsd-jail@FreeBSD.ORG Fri May 4 10:31:01 2012 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 23D801065673 for ; Fri, 4 May 2012 10:31:01 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id CBF1C8FC0C for ; Fri, 4 May 2012 10:31:00 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 13F1328424; Fri, 4 May 2012 12:30:53 +0200 (CEST) Received: from [192.168.1.2] (static-84-242-120-26.net.upcbroadband.cz [84.242.120.26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 32E3128423; Fri, 4 May 2012 12:30:52 +0200 (CEST) Message-ID: <4FA3AFDB.30308@quip.cz> Date: Fri, 04 May 2012 12:30:51 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: drl@bsd.my References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: Modify jail IP without restarting 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: Fri, 04 May 2012 10:31:01 -0000 Darryl Yeoh wrote: > On Fri, May 4, 2012 at 5:55 PM, Darryl Yeoh wrote: > >> Hi guys, >> >> I'm on FreeBSD 9-STABLE/amd64 at the moment and is there a way to >> add/modify a jail's existing IP address without restarting jail ? >> >> Initially the jail was configured with 5 IP addresses. And now we have >> clients requesting additional IP addresses. A bunch of users >> are in the jail at the moment and I don't want to restart the jail just >> cause of this. Yes, you can add / change / remove IP addresses on running jails. You must use newer syntax of jail(8) command with param=value. short example: jail -m ip4.addr="192.168.1.87,192.168.1.88" jid=1 where ip4.addr is the list of IP addresses you want to assign to a jail and jid is the JID of the jail. If you are using named jails, you can use name=myjail instead of jid=n You can list all current parameters by jls -nqs (see man jls) Miroslav Lachman From owner-freebsd-jail@FreeBSD.ORG Fri May 4 11:52:31 2012 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 92319106566B for ; Fri, 4 May 2012 11:52:31 +0000 (UTC) (envelope-from drl@void.my) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3B2568FC1E for ; Fri, 4 May 2012 11:52:31 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2603265vbm.13 for ; Fri, 04 May 2012 04:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=void.my; s=g; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=NfbeS2/US4S+89Nx+cgtiPhi2QfI/ecrbVcHb1HlziA=; b=VxQzDzp2K9dXbf7SiH6n1GtsxBDOZb+6lLopsIyV9qsipFrc2pmW2TMjJeGHQuwU5g vJaDU+LTMJyFWgPgVmx5HPb4YqDySnEp5QnR8hStmJx6gckMOIOmMSeWM4QfK3TDalL9 D3Q/4TDTz/8bymNdaeq6i3CFByjSvzeW06eyM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=NfbeS2/US4S+89Nx+cgtiPhi2QfI/ecrbVcHb1HlziA=; b=i+tm8VOTXB3JmL0x7rJYnBXHp0ljsSdDzflTg/lDhVQexmzz0Sb6nF+0JskC3vp2YS ip4niKyxM6pzzu2OxE0WvGEbehmDw1mIU+XuijacBy1gYf5CCPMbm5m0eIAy5CpwSVdk IMZpp4Cyzx91pj51enaxnCm3+X4nGMIkvFjkoW+9abkVQpppVrl69Idb0ZHyI+fkW1ou CtKsOX2YgdrDjf9Mdit4g6WkOx+R32mhcdmCjWbrbYwOyzRCCde6YCVdC1Rs1l2rEYjL FC2EGfU5CPhQjRoYvGQ8Hvt6wWbze4nHN2jgI5GA3Q5kR/n7O82ydhqxV/pKnKNnAeWq qGLw== Received: by 10.220.230.67 with SMTP id jl3mr2028300vcb.50.1336130828965; Fri, 04 May 2012 04:27:08 -0700 (PDT) MIME-Version: 1.0 Sender: drl@void.my Received: by 10.52.168.2 with HTTP; Fri, 4 May 2012 04:26:48 -0700 (PDT) In-Reply-To: <4FA3AFDB.30308@quip.cz> References: <4FA3AFDB.30308@quip.cz> From: Darryl Yeoh Date: Fri, 4 May 2012 19:26:48 +0800 X-Google-Sender-Auth: j6D5VNiDf7VhdtE3vJor3LwL0oI Message-ID: To: Miroslav Lachman <000.fbsd@quip.cz> X-Gm-Message-State: ALoCoQkVAAnjRY1DoQJLQ5wCFdy3Rgq65pQQuHhliDT2A8Pdqz7Rv1jezaDv2/+n5O6hx9wUYCUN Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-jail@freebsd.org Subject: Re: Modify jail IP without restarting X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: drl@bsd.my List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 11:52:31 -0000 On Fri, May 4, 2012 at 6:30 PM, Miroslav Lachman <000.fbsd@quip.cz> wrote: > Darryl Yeoh wrote: > >> On Fri, May 4, 2012 at 5:55 PM, Darryl Yeoh wrote: >> >> Hi guys, >>> >>> I'm on FreeBSD 9-STABLE/amd64 at the moment and is there a way to >>> add/modify a jail's existing IP address without restarting jail ? >>> >>> Initially the jail was configured with 5 IP addresses. And now we have >>> clients requesting additional IP addresses. A bunch of users >>> are in the jail at the moment and I don't want to restart the jail just >>> cause of this. >>> >> > Yes, you can add / change / remove IP addresses on running jails. You must > use newer syntax of jail(8) command with param=value. > > short example: > > jail -m ip4.addr="192.168.1.87,192.**168.1.88" jid=1 > > where ip4.addr is the list of IP addresses you want to assign to a jail > and jid is the JID of the jail. If you are using named jails, you can use > name=myjail instead of jid=n > > You can list all current parameters by jls -nqs (see man jls) > > Miroslav Lachman > That did it. Cheers mate :> -Darryl From owner-freebsd-jail@FreeBSD.ORG Fri May 4 16:47:48 2012 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 D56251065672 for ; Fri, 4 May 2012 16:47:48 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7A8D88FC0A for ; Fri, 4 May 2012 16:47:48 +0000 (UTC) Received: by yhgm50 with SMTP id m50so3272151yhg.13 for ; Fri, 04 May 2012 09:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=eHhflMbzUwWl9u+t/8RI4hf7z9fPa3uSfqk3NyyMzUk=; b=Y32qmdRZ/jPIahcqe5flmeQcgn5VxbLHRYS4Xy0Sx2JaIyybKe9IXwlpDDyrtzj6nZ dzZlK5qSA0AQBA4J03P+TiCvSz/R4eTzlL6vAAYtUfLSxt0PvLSXLG2r0pPGiMni3bM+ N+WW4w99+O4ykkB7LHpu50VpieygpMpXzGYZk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=eHhflMbzUwWl9u+t/8RI4hf7z9fPa3uSfqk3NyyMzUk=; b=PHsNQq+JLZIcUVoxsCLiBO8YzGFhAI1So5N86gLCJhHIwVvCIKDboGrFjuQaUhdpym nGUnzClncp64pF5P9Ek02Q5aVbIvJJouufph/xCjRdjZGJbREqI21syzgnxJ32Sw8fNe yIkQ2cpD/OGj/Sp5uWR1lyQvjzuTZfl8plyjnfcmXsZ99AyiA/iTkjvWH0uX48TicRfW 7wEPdeiEr2vjLG7LiTYJCycr99tNPNtWpJsq+/biHy90Jzg/PlkU7z4Ig5k40g4vpSvo EQZU0tIj+qI304dE9Ftt8T3mVCUL2Te5lb/1SZTGUhQ4chZos+mPhVCmY5Q3C1DVFVqj ZFEQ== Received: by 10.50.91.225 with SMTP id ch1mr3359338igb.39.1336148517969; Fri, 04 May 2012 09:21:57 -0700 (PDT) Received: from DataIX.net (adsl-99-181-152-215.dsl.klmzmi.sbcglobal.net. [99.181.152.215]) by mx.google.com with ESMTPS id em4sm700251igc.16.2012.05.04.09.21.57 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 May 2012 09:21:57 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q44GLtOt000413 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 May 2012 12:21:55 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q44GLsst099634; Fri, 4 May 2012 12:21:54 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Fri, 4 May 2012 12:21:54 -0400 From: Jason Hellenthal To: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <20120504162154.GA11649@DataIX.net> References: <4FA3AFDB.30308@quip.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <4FA3AFDB.30308@quip.cz> X-Gm-Message-State: ALoCoQmLVMEs93KyqRB5G/zPZaO0MM25w8c6MSOc7YvYiLdxVQjbjfjEy7MuqXBvSMFVRI9upWBU Cc: freebsd-jail@freebsd.org, drl@bsd.my Subject: Re: Modify jail IP without restarting 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: Fri, 04 May 2012 16:47:49 -0000 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 04, 2012 at 12:30:51PM +0200, Miroslav Lachman wrote: > Darryl Yeoh wrote: > > On Fri, May 4, 2012 at 5:55 PM, Darryl Yeoh wrote: > > > >> Hi guys, > >> > >> I'm on FreeBSD 9-STABLE/amd64 at the moment and is there a way to > >> add/modify a jail's existing IP address without restarting jail ? > >> > >> Initially the jail was configured with 5 IP addresses. And now we have > >> clients requesting additional IP addresses. A bunch of users > >> are in the jail at the moment and I don't want to restart the jail just > >> cause of this. >=20 > Yes, you can add / change / remove IP addresses on running jails. You=20 > must use newer syntax of jail(8) command with param=3Dvalue. >=20 > short example: >=20 > jail -m ip4.addr=3D"192.168.1.87,192.168.1.88" jid=3D1 If you run this command on the jail (at least of stable/8 "now") it will replace the current IP address that is already associated with the jail. Be sure to add all current ip addresses to this list before running or your clients are going to be cut off mid connection. >=20 > where ip4.addr is the list of IP addresses you want to assign to a jail= =20 > and jid is the JID of the jail. If you are using named jails, you can=20 > use name=3Dmyjail instead of jid=3Dn >=20 > You can list all current parameters by jls -nqs (see man jls) >=20 > Miroslav Lachman > _______________________________________________ > 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" --=20 - (2^(N-1)) --T4sUOijqQbZv57TR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJPpAIhAAoJEBSh2Dr1DU7W7XEH/0WXpumS6S+F0TifdZ/Tc7Ea k9kjsv9qbcGfmMuB/XWCMHurBob5EITI5x9FKYwWyOQyUbWIJH7PXxOQJjJZa79c n2ARXQVBTie7PUTzODOSZIgyu7rf0hrFGIxOPE5EcFxK2llrvHfQUKjjthd+v20t c4GIeu5ZkB8rpD5CUSGfQOoxG0QS5A1YKGLpRt2dXS1hWQIEBFraqf0gCR2a1p0S XaeUNsbu1nJMnKyCSnBi1APAhb7yePWbdUOHv1aWsPWqy5cxuafcCo0CmR29FEMz deCJuWjZZs90WBp62NpRekBEibo66gWzVAz9Wf1MZ04Q1AHz2IlhqRQHeQTCQ0Y= =uwZo -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR-- From owner-freebsd-jail@FreeBSD.ORG Fri May 4 21:49:22 2012 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 4F9B91065672 for ; Fri, 4 May 2012 21:49:22 +0000 (UTC) (envelope-from drl@void.my) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id E4D998FC18 for ; Fri, 4 May 2012 21:49:21 +0000 (UTC) Received: by vbmv11 with SMTP id v11so3153435vbm.13 for ; Fri, 04 May 2012 14:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=void.my; s=g; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=fwvpvo1iVDOXSsU4PXRpz1Z+ZH3F10bOFEoMYie4IAk=; b=j+Bb8Qi+91QqVyhmdKElOMtz+WIHqS/oejTOoofShX7avt4smTY/IzDs+Qh3ZQY/dw CrNUIp7pMq+EAzdXjG97M3jYh4V/cH8IO4MBen840Nq94hFfKIcYlPKmhnSuHlEcMiFC rBdgQ/hYTDonpjrYPsR+Ho26XcBfbZxCLU+5U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=fwvpvo1iVDOXSsU4PXRpz1Z+ZH3F10bOFEoMYie4IAk=; b=fkjkC/rXcD6A3q4uqvoFV7MU9Ektr+do1vH8nd+DjgEH/jAQHKcWyzudXLjS5oA9iG nlDKRFTV+MCxSjWfWUvtusz7vrbcmGErANkOXJshn09GgkRthZI960PRIbuwi/qY3cSe 5/lk/dN9cHWKs1l2JxFdiq4592uwVdXUrczlOX4E7RQa58EVetpV0re4qQtItwSnU7bG 2j1AYRapf5I1yMRb/QzvxWCOyMuNSbxijQ2M/Rz+lrY0dlWYMitdFoSpXwEMrskjt9Q/ d/BbUyK0pXYsjfWbsxhQxaWcqR1JzBohVEKO6UF8iZi6F380HGR6QtaC8K1pRca32Eq+ siMg== Received: by 10.220.108.81 with SMTP id e17mr4939145vcp.32.1336168161214; Fri, 04 May 2012 14:49:21 -0700 (PDT) MIME-Version: 1.0 Sender: drl@void.my Received: by 10.52.168.2 with HTTP; Fri, 4 May 2012 14:48:59 -0700 (PDT) In-Reply-To: <20120504162154.GA11649@DataIX.net> References: <4FA3AFDB.30308@quip.cz> <20120504162154.GA11649@DataIX.net> From: Darryl Yeoh Date: Sat, 5 May 2012 05:48:59 +0800 X-Google-Sender-Auth: kKzQmaBdoz7vBkzZTWn9MObiryg Message-ID: To: Jason Hellenthal X-Gm-Message-State: ALoCoQkrEkXUYGixaQFiCKOjLSmMrua6NBHM/r7hafumwGHgjJO8HNOYm8+X9JAXTuigngGZgK7/ Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-jail@freebsd.org Subject: Re: Modify jail IP without restarting X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: drl@bsd.my List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 21:49:22 -0000 On Sat, May 5, 2012 at 12:21 AM, Jason Hellenthal wrote: > > > On Fri, May 04, 2012 at 12:30:51PM +0200, Miroslav Lachman wrote: > > Darryl Yeoh wrote: > > > On Fri, May 4, 2012 at 5:55 PM, Darryl Yeoh wrote: > > > > > >> Hi guys, > > >> > > >> I'm on FreeBSD 9-STABLE/amd64 at the moment and is there a way to > > >> add/modify a jail's existing IP address without restarting jail ? > > >> > > >> Initially the jail was configured with 5 IP addresses. And now we have > > >> clients requesting additional IP addresses. A bunch of users > > >> are in the jail at the moment and I don't want to restart the jail > just > > >> cause of this. > > > > Yes, you can add / change / remove IP addresses on running jails. You > > must use newer syntax of jail(8) command with param=value. > > > > short example: > > > > jail -m ip4.addr="192.168.1.87,192.168.1.88" jid=1 > > If you run this command on the jail (at least of stable/8 "now") it will > replace the current IP address that is already associated with the jail. > Be sure to add all current ip addresses to this list before running or > your clients are going to be cut off mid connection. > > Yep. Same applies to 9-STABLE as I experience that awhile ago. -Darryl From owner-freebsd-jail@FreeBSD.ORG Sat May 5 11:24:40 2012 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 71557106566B for ; Sat, 5 May 2012 11:24:40 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from melon.pingpong.net (melon.pingpong.net [79.136.116.200]) by mx1.freebsd.org (Postfix) with ESMTP id EC02A8FC12 for ; Sat, 5 May 2012 11:24:38 +0000 (UTC) Received: from girgBook.local (c-fb57e155.1521-1-64736c12.cust.bredbandsbolaget.se [85.225.87.251]) by melon.pingpong.net (Postfix) with ESMTPA id 203EE23535 for ; Sat, 5 May 2012 13:18:40 +0200 (CEST) Message-ID: <4FA50C8E.3020101@FreeBSD.org> Date: Sat, 05 May 2012 13:18:38 +0200 From: Palle Girgensohn User-Agent: Postbox 3.0.3 (Macintosh/20120304) MIME-Version: 1.0 To: freebsd-jail@freebsd.org X-Enigmail-Version: 1.2.2 Content-Type: multipart/mixed; boundary="------------020109000909020309070708" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: destroy epair can cause panic in 9.0-release 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, 05 May 2012 11:24:40 -0000 This is a multi-part message in MIME format. --------------020109000909020309070708 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! If I build a kernel with options VIMAGE device epair device if_bridge and start a jail jail -c vnet name=foo host.hostname=foo.example.com path=/ persist ifconfig epair create ifconfig bridge create ifconfig bridge0 up ifconfig epair0a up jexec foo ifconfig lo0 localhost ifconfig epair0b vnet foo jexec foo ifconfig epair0b inet 10.0.0.2 ifconfig bridge0 addm epair0a addm bce1 ifconfig bce1 inet 10.0.0.1 everything is fine and working as expected now I destroy the interface epair0a: ifconfig epair2a destroy jexec foo ifconfig and boom, kernel panics same thing seems to happen if I just jail -r 1 Palle -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPpQyOAAoJEIhV+7FrxBJDCEwIAL0fmbBwzPy7qQZyks6iIVz+ d6aFB8paGg1YX4afrancGoIRxwORGKOFF4gAj/15jsVN9Rqwgv+d58uIt4/zodJO ERj8+Sly5sVFziUi5TduRsjVtjDKRKqymKuzJXlDaizp+UaAGPe3dFSoskoogk44 KwZG5fRs2MFrg9MB0BvvdfXMBxyTgzIWw6q35TOaxWylqDQz9VcRgfeKO0AlvTwu uytXdxjM/MqhrMYVSSd/5PEUyJM9eBn4Eg627WD3ZIzH7GsC9/IN7D3Wm7lg7+RT 9aCtUKpd0TB2MWOR4lywwo7JMdSK6aNNRvWddZSQgtaKr1mJprCMg2HbxVao5vQ= =Cbc+ -----END PGP SIGNATURE----- --------------020109000909020309070708--