"Allen Kistler" <(E-Mail Removed)> wrote in message
news

RIfl.14679$(E-Mail Removed)...
> I've got a couple Fedora and Red Hat boxes mostly moved to IPv6. I've
> noticed a quirk with transporting X over ssh over IPv6.
>
> /etc/hosts on Fedora and Red Hat defines localhost as 127.0.0.1 and
> localhost6 as ::1.
That's your problem. Such a definition is WRONG. Regardless, "/etc/hosts"
defines IP addresses as names, not names as IP addresses. Each line is one
address followed by one or more hostnames.
> "ssh -X" automatically defines DISPLAY as localhost:10.0 on the remote
> system.
>
> Unfortunately, the local port (6010) is on ::1 (localhost6), not
> 127.0.0.1 (localhost).
And why is that a problem? Linux IPv6 binding defaults to accepting IPv4
via IPv6 sockets. IPV6_ONLY is an option that defaults to off.
> I can manually change the definition of DISPLAY to localhost6:10.0 and
> everything works fine.
>
> What do other distros do to define ::1 symbolically? Is localhost6
> really the convention or is it RH/Fedora-specific? Have I found a bug
> in ssh dealing with IPv6?
>
> FWIW, I noticed that Fedora's bind package defines localhost as both
> 127.0.0.1 (A) and ::1 (AAAA) by default. It doesn't define localhost6
> at all.
That's because BIND does it correctly.