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--