Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931892 - net-misc/sslh-2.1.1 inetd mode doesn't work
Summary: net-misc/sslh-2.1.1 inetd mode doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-05-14 00:55 UTC by gen2dev
Modified: 2024-05-16 20:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gen2dev 2024-05-14 00:55:31 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2024-05-16 20:12:02 UTC
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(+)