Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2016 16:22:29 +0000
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        markham breitbach <markham@ssimicro.com>, freebsd-questions@freebsd.org
Subject:   Re: Closed port 22 in the jail redirects to the outer system
Message-ID:  <4af43340-9711-d303-e97c-ef6142395010@qeng-ho.org>
In-Reply-To: <e28ad23b-1a55-c23a-de30-8738302cd9ca@ssimicro.com>
References:  <20161207002440.GA26711@becker.bs.l> <e28ad23b-1a55-c23a-de30-8738302cd9ca@ssimicro.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/12/2016 15:52, markham breitbach wrote:
> On 2016-12-06 5:24 PM, Bertram Scharpf wrote:
>>
>> How can I make a port 22 request fail if an SSH server is
>> running on the outer machine but not inside the jail?
>>
>>
>>
> By default sshd on the jail host (outer machine) will bind to all
> available addresses.  You can just set the listenAddress for sshd to be
> the IP address that you want it to listen to in /etc/ssh/sshd_config and
> restart sshd.

This is all documented in the "Setting up the Host Environment" section
of the jail(8) man page. It's worth looking at that because other
daemons may be affected.

-- 
Schrödinger's cat had 18 half lives.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4af43340-9711-d303-e97c-ef6142395010>