IPv4 and IPv6 support

Matt Johnston matt at ucc.asn.au
Tue Oct 21 21:58:43 WST 2014


Hi Michael,

I just checked now, it works for me on Linux 3.13 and OSX 10.10. What platform
are you running on? What do you see for the commands below?

Output from "strace" looking where it calls bind() might be informative too.

I can't really think of anything Dropbear would be doing
that would prevent it, given 2 instances work.
That's not to say it's not doing something wrong though.

Cheers,
Matt

# dropbear -F -E -p '[2405:3c00:5200:101::111]:9999' -p 130.95.13.111:5555 
[1981] Oct 21 21:50:30 Failed loading /etc/dropbear/dropbear_ecdsa_host_key
[1981] Oct 21 21:50:30 Not backgrounding

# lsof -p 1981
...
dropbear 1981 root    3u  IPv6 4449935      0t0     TCP evil.ucc.gu.uwa.edu.au:9999 (LISTEN)
dropbear 1981 root    4u  IPv4 4449936      0t0     TCP evil.ucc.gu.uwa.edu.au:5555 (LISTEN)

# netstat -antp|grep 2139
tcp        0      0 130.95.13.111:5555      0.0.0.0:*               LISTEN      1981/dropbear   
tcp6       0      0 2405:3c00:5200:101:9999 :::*                    LISTEN      1981/dropbear   


On Tue, Oct 21, 2014 at 01:00:56PM +0000, Michael Rapoport wrote:
> Hello.
> 
> We are using currently the dropbear for the IPv4 only:
> 
> /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 192.168.1.1:22 -p 192.168.14.30:22
> 
> 
> Now, we need to add the IPv6 support.
> I have a question:
> 
> Is it possible to use just one instance of dropbear for both protocols by just adding the IPv6 address and port like this:
>        /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 192.168.1.1:22 -p 192.168.14.30:22 -p [2003::100:17]:22
> 
> Or I need to run the second instance of the dropbear with the IPv6 address and port like this:
>        /usr/sbin/dropbear  -p [2003::100:17]:22
> 
> I'm running the latest release 2014.65 and the combined option doesn't work, while the second option with 2 instances works.
> 
> Thank you,
> Sincerely,
> Michael.
> 


More information about the Dropbear mailing list