I first noticed that I could not ssh to my host, was getting connection
refused error. Then I tried to connect over IPv6 address and it worked.
I checked with `ss -tlnp | grep 22` and found out that sshd was only
listening on [::]:22. Then I tried almost everything to bind it to
0.0.0.0 without any luck. Even when I only specified 0.0.0.0 as bind
interface, it was still binding to [::] instead.

I also noticed that my manually compiled sslh behaved the same way. Last
time it was compiled on Ubuntu 22.04, so I decided to rebuild it on
24.04 and it started to work properly.

I believe, there was some change in libc which either requires all
network related software recompiled from source. Because like I said,
almost every network related software behaves the same.

While net.ipv6.bindv6only=0 is the default, it doesn't explain why
net.ipv6.bindv6only=1 works incorrectly. It is not supposed to replace
0.0.0.0 with [::], it is supposed to stop applications to bind to IPv4
interfaces when they are configured to bind to [::] only explicitly.
Also, it doesn't explain why recompiling applications from source fixes
the issue.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to