I recently updated from sslh-1.22c-r1 to sslh-2.1.1 when the new version was stabilized. The new version built okay but it didn't work for me. The problem is a bug in upstream that breaks inetd mode, which I use. It causes connections to the sslh server to silently fail and exit immediately. It doesn't affect daemon or systemd mode, so most people won't see it. The bug has been reported upstream, including a minimal patch, here: https://github.com/yrutschle/sslh/issues/399. Reproducible: Always Steps to Reproduce: 1. Configure xinetd to listen on a tcp port and spawn sslh to handle each connection. 2. Configure sslh.cfg to operate in inetd mode and serve ssh (or another tcp protocol of your choice). 3. Connect to that port from another host. The ssh client will send its client id string first thing. Actual Results: Sslh exits immediately after it receives the first data from the client, without trying to forward the connection. Expected Results: Without the bug (with the patch) sslh recognizes the protocol and forwards the connection to the ssh server.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c5e8d10625ecb6d7b360dfdcaeacd641e8b1167 commit 3c5e8d10625ecb6d7b360dfdcaeacd641e8b1167 Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2024-05-16 20:10:58 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2024-05-16 20:11:59 +0000 net-misc/sslh: add 2.1.2 Closes: https://bugs.gentoo.org/931892 Signed-off-by: Craig Andrews <candrews@gentoo.org> net-misc/sslh/Manifest | 1 + net-misc/sslh/sslh-2.1.2.ebuild | 84 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+)