From owner-freebsd-questions@freebsd.org Fri Dec 23 20:52:09 2016 Return-Path: Delivered-To: freebsd-questions@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 EDD6EC8EB06 for ; Fri, 23 Dec 2016 20:52:09 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA HLL ISSUER 01" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C0F511EB3 for ; Fri, 23 Dec 2016 20:52:09 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id D2C64621CD; Fri, 23 Dec 2016 08:43:44 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6GXeKUMIqiw5; Fri, 23 Dec 2016 08:43:43 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 4A9296212C; Fri, 23 Dec 2016 08:43:42 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1482500623; bh=1DVnlwW5m+vtHePPx128ZvjgyearJkb5Q1ze7inck9A=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=ZON32XGlstjlpD+OXxcwq64lJjA0c9Jc0ZTiD35rCt37IGA8eEZRlYKMR6X0J9YHr +P0afoP2grrVenEDvts4HWMI2t5xzJo/IJ/Sp/h0ruuEfddnz88BjogQy9DPS/Y/It V69FUWB0Xs87gNu+vx7yNY2lF2ne1Qcra50bXYqr1YvUoXWcqkojF9CcMJwokT3r4u vqBWvGFnlXC3wdhcpKgAJhZx37bRt7RSxbQtbLACol3868umh2vxzyqzvplXRtna04 RI3bTRaaMy2fufxYo43sDE8pHxEkL69theiQMIAWJX3ZSQj3EhsL8RBT4IdikzORZv mUPYeLAiiST0A== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Fri, 23 Dec 2016 08:43:43 -0500 Message-ID: <2390554002144fa9a925e1f8bed14466.squirrel@webmail.harte-lyne.ca> In-Reply-To: <585C993B.7040805@gmail.com> References: <585C993B.7040805@gmail.com> Date: Fri, 23 Dec 2016 08:43:43 -0500 Subject: Re: IP address assignments to jails using ezjail From: "James B. Byrne" To: "Ernie Luzar" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2016 20:52:10 -0000 On Thu, December 22, 2016 22:25, Ernie Luzar wrote: > > 3. Take ubound out of the mix by not starting that jail. Then use only > ip addresses in your host to jail ssh command. > > 4. What is output of issuing host ssh command to a jail? Does host > answer? > Inbound ssh to the jail works: $ ssh -vv 192.168.216.196 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.216.196 [192.168.216.196] port 22. debug1: Connection established. . . . Password for user1@hlldrupal: Outbound ssh from the jail does not: # ssh -vv 192.168.216.22 OpenSSH_7.2p2, OpenSSL 1.0.2j-freebsd 26 Sep 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug2: resolving "192.168.216.22" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to 192.168.216.22 [192.168.216.22] port 22. debug1: connect to address 192.168.216.22 port 22: Operation timed out ssh: connect to host 192.168.216.22 port 22: Operation timed out There is no firewall running on either the jail or the jail host. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3