Am 8. Mai 2017 04:18:30 MESZ schrieb Eric Johnson <eri...@colossus.gruver.net>: > > >On Mon, 8 May 2017, Sterling Archer wrote: > >> On Mon, May 8, 2017 at 1:58 AM, Eric Johnson ><eri...@colossus.gruver.net> wrote: >> >> >> Has anyone else had problems with sshd and IPv6 after applying >the latest >> patches? It seems to me that the patches disabled the use of >IPv6 for >> ssh. >> >> When I try to set the IPv6 address I want it to listen to in >sshd_config, >> sshd fails with the following message: >> >> bad addr or host: 2001:1890:1263:a14:: (no address associated >with name) >> >> Using the default sshd_config, ssh is only listening on IPv4 >addresses. >> >> Eric Johnson >> >> >> It's working here, fully patched 6.1 system. >> To make sure it's not because of the :: inet6 address, I tested this, >where >> 2001:xxxx:xxxx is the /48 my ISP delegates to me: >> >> # doas ifconfig em1 inet6 2001:xxxx:xxxx:: >> # doas rcctl restart sshd >> sshd (ok) >> sshd (ok) >> # telnet 2001:xxxx:xxxx:: >> Trying 2001:xxxx:xxxx::... >> Connected to 2001:xxxx:xxxx::. >> Escape character is '^]'. >> SSH-2.0-OpenSSH_7.5 > >After playing around with it some more, if I use "AddressFamily inet6" >in >sshd_config, then it will do IPv6 okay, but not IPv4. The problem >occurs >when I don't specify an address family (and so "AddressFamily any" is >the >default) or I use "AddressFamily any". > >Eric Johnson
Have you tried putting the IPv6 address in brackets, i.e. [2001:xxxx:xxxx::]? Seems to me you manage to confuse the parser, maybe by trying to specify an IPv6 address with a port but omitting the then necessary brackets. And when setting an explicit IPv6 address to listen on you have to have an IPv4 ListenAdress, too, if you want your "AddressFamily any" to matter. HTH, Florian