From owner-freebsd-questions@freebsd.org Thu Oct 19 18:13:10 2017 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 8A11CE4360F for ; Thu, 19 Oct 2017 18:13:10 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com [IPv6:2607:f8b0:4001:c0b::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FAE175EC7 for ; Thu, 19 Oct 2017 18:13:10 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-it0-x22f.google.com with SMTP id 72so10771773itk.3 for ; Thu, 19 Oct 2017 11:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jNZQj1aJ7da0Ujvu4EtHEkQPPBsPq+EEq15FzNRm9os=; b=kbp29rwM4FxGAQZFuOBy/Vxty/Y/1SZ0kg+cJpE4TKGWovQkvRbGTGPNKGjcNxAYix csvBn2jduAitd6EJSBsptaZA6iYVuJvEmgxQ/UOvyWSDMewR6zu7YqAM84kQaLnXKp0q Mz9NEuZFK8lrURLBZfPMrxlC69R5sbZO+euu2EXb7K1u3kqwRCsLJl+ouuMVlkVKnXu3 YxQvkMbPiQODwt1ULrHTJqEegAJKNEz2CJm72yPyZuO2vnhNwV5xC/KrJ2GSUeefVTV/ 7N/zJEgBfYS2CYhHTBgFyYRXRN0/keGTY3y0ZBpzfplJvby3g3qeBigz25LqbT+FvFME qfGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jNZQj1aJ7da0Ujvu4EtHEkQPPBsPq+EEq15FzNRm9os=; b=js4/3VdsynEsVGLzSwv3b2nVwKcJ28Mizp48PNT62bXEONjzH7YtXwqfilBoo75g+d YgKRepu5aG69a6y5b5Jn6bRkNoI4ynVFtrwBqXeSx9eNsNomPXj6BFybTjaEAOXziIMT oTqVcsw8aGkFvPQiV/EFiKr12YQOJCko8h94/aTLakz539eGwvDc/akspnPFy2V/sPXw y9yQstfsH28o4ZRlark9lrS0N1rreqoiYkaYeegltniD8+XowPoo6YeH7hmN5ojHEatY cL78MN1ytq1wZtXldlVoIey9t38kAXQVncJotZdmfIsMGISYHGIobomTxXUAsBIVYUn+ 6/sA== X-Gm-Message-State: AMCzsaW9DUY+AiXevrKjzfy/iaVxsNfL4Xl44O/GBD1Gdugd9qpLJIVn enL29NYwm3kUyIthA2J9gPDm/yzWSes1mlDhOWZj7w== X-Google-Smtp-Source: ABhQp+QmUvV365sBXf8ra59r+nHrLZIz0Ff4xM2ovf/0geLlRx1GwoppGuqwTRSDjcgfLtUVVJcl0i8dLQ8fBOWDKz4= X-Received: by 10.36.51.212 with SMTP id k203mr3732046itk.74.1508436789681; Thu, 19 Oct 2017 11:13:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.176.201 with HTTP; Thu, 19 Oct 2017 11:13:09 -0700 (PDT) In-Reply-To: <20171019180038.GA32097@troutmask.apl.washington.edu> References: <20171019173224.GA31648@troutmask.apl.washington.edu> <20171019180038.GA32097@troutmask.apl.washington.edu> From: Adam Vande More Date: Thu, 19 Oct 2017 13:13:09 -0500 Message-ID: Subject: Re: Two jail questions To: Steve Kargl Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Thu, 19 Oct 2017 18:13:10 -0000 On Thu, Oct 19, 2017 at 1:00 PM, Steve Kargl < sgk@troutmask.apl.washington.edu> wrote: > > > sshd in the jail needs to run on a different port if you're using the > same > > ip, otherwise if you use an independent networking stack you would > > configure as normal. > > So, then this comes down to > > ssh normal@a.b.c.d <-- host system's sshd listening on default > port > ssh -p 1111 guest@a.b.c.d <-- jailed sshd listening on port 1111 > On a non-VNET/VIMAGE jail, this is the standard way. For a VNET/VIMAGE you could do a regular ssh guest@w.x.y.z since the jail would have it's own real ip. That is assuming you added the guest user to the jail and all the networking/routing is good. -- Adam