More than a solution, I'm looking to understand why this is happening.
This is on a Belkin RT3200, running snapshot builds (I haven't looked at my other OpenWrt devices to see if they behave the same). Every time I reboot, dropbear only comes up listening on IPv4.
I've added a logger
line in /etc/rc.local
(after a sleep 5
), and also created /etc/hotplug.d/net/99-dropbear
and iface/99-dropbear
, both of the latter with just another logger
line so I can see sequence of events during startup. Results are as follows:
$ logread -e dropbear
Mon Jan 2 08:49:07 2023 user.notice dropbear: net action= add iface= wlan1
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= add iface= br-lan
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= add iface= SQM_IFB_b06a1
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= remove iface= SQM_IFB_b06a1
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= add iface= SQM_IFB_e1dc3
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= remove iface= SQM_IFB_e1dc3
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= add iface= SQM_IFB_2d9b1
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= remove iface= SQM_IFB_2d9b1
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= remove iface= wlan1
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= add iface= SQM_IFB_5ad3a
Mon Jan 2 08:49:10 2023 user.notice dropbear: net action= remove iface= SQM_IFB_5ad3a
Mon Jan 2 08:49:12 2023 user.notice dropbear: net action= add iface= SQM_IFB_abd1a
Mon Jan 2 08:49:12 2023 authpriv.warn dropbear[2418]: Failed listening on '22': Error listening: Address not available
Mon Jan 2 08:49:12 2023 authpriv.info dropbear[2418]: Not backgrounding
Mon Jan 2 08:49:12 2023 user.notice dropbear: net action= remove iface= SQM_IFB_abd1a
Mon Jan 2 08:49:12 2023 user.notice dropbear: net action= add iface= wl1-ap0
Mon Jan 2 08:49:13 2023 user.notice dropbear: iface action= ifup iface= lan device= br-lan
Mon Jan 2 08:49:13 2023 user.notice dropbear: iface action= ifup iface= loopback device= lo
Mon Jan 2 08:49:14 2023 user.notice dropbear: iface action= ifup iface= wan device= wan
Mon Jan 2 08:49:15 2023 user.notice dropbear: iface action= ifup iface= wan6 device= wan
Mon Jan 2 08:49:18 2023 user.notice dropbear: rc.local (after sleep 5)
Mon Jan 2 08:52:34 2023 authpriv.info dropbear[2418]: Early exit: Terminated by signal
Mon Jan 2 08:52:34 2023 authpriv.info dropbear[5089]: Not backgrounding
When I stick in /etc/init.d/dropbear restart
at any of the three log points, dropbear
still fails to see any IPv6 addresses. I was sort of expecting an iface ACTION=ifupdate
event to occur when the IPv6 address came to life, but nothing of the sort. I still need to get into LuCI (or ssh on IPv4, which always works) and restart dropbear to get it listening on :::22
.
Any ideas why dropbear can't see IPv6 when all of these things are going on?