Closed port 22 in the jail redirects to the outer system

markham breitbach markham at
Wed Dec 7 16:04:55 UTC 2016

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.


More information about the freebsd-questions mailing list