Some more details. Here's a part of my sslh config:

listen:
(
    { host: "0.0.0.0"; port: "443"; },
    { host: "::"; port: "443"; }
);

And here's how it's working:

# ss -tlnp | grep sslh
LISTEN 0      50           0.0.0.0:443        0.0.0.0:*    
users:(("sslh-fork",pid=2557,fd=3),("sslh-fork",pid=2556,fd=3),("sslh-fork",pid=2551,fd=3))
LISTEN 0      50              [::]:443           [::]:*    
users:(("sslh-fork",pid=2557,fd=4),("sslh-fork",pid=2556,fd=4),("sslh-fork",pid=2551,fd=4))

You can see that it's listening on both 0.0.0.0 and [::] interfaces.

Now here's a piece of my sshd_config:

AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::

And here's how it's working:

# ss -tlnp | grep sshd
LISTEN 0      8192            [::]:22            [::]:*    
users:(("sshd",pid=843,fd=3),("systemd",pid=1,fd=69))


As you can see, it doesn't listen on IPv4 interface at all.

This is clearly a packaging bug because only precompiled binaries are
affected. My sslh binary compiled under Ubuntu 22.04 was doing the same
and was fixed once I compiled it under Ubuntu 24.04.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080216

Title:
  sshd cannot bind to IPv4 interfaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2080216/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to