Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Configure sshd to listen on specific interfaces?
Date: Thu, 27 Aug 2020 15:00:49
Message-Id: ri8hql$9hm$1@ciao.gmane.io
In Reply to: Re: [gentoo-user] Configure sshd to listen on specific interfaces? by Victor Ivanov
1 On 2020-08-27, Victor Ivanov <vic.m.ivanov@×××××.com> wrote:
2
3 >> I want it to listen on 127.0.0.1 and on whatever IP addresses are
4 >> assigned to two specified interfaces.
5
6 > As far as I'm aware, I don't think OpenSSH allows for listening on a
7 > specific interface.
8
9 I'm pretty sure that's the case.
10
11 > You can, however, work around this in a rather unusual way via
12 > ip/nftables and DNAT.
13
14 Thanks, I should have known that was a problem that could be solved
15 with netfilter. After all, netfilter is apparently turning-complete:
16
17 http://sgros.blogspot.com/2011/09/implementing-turing-machine-using.html
18
19 --
20 Grant