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