From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RnuO8-0001EP-9z for garchives@archives.gentoo.org; Thu, 19 Jan 2012 15:58:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75A40E0829; Thu, 19 Jan 2012 15:58:42 +0000 (UTC) Received: from mail.desaster-games.net (dns1.desaster-games.net [188.40.122.227]) by pigeon.gentoo.org (Postfix) with ESMTP id 19E1AE07B2 for ; Thu, 19 Jan 2012 15:57:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.desaster-games.net (Postfix) with ESMTP id 4AE6010285A4 for ; Thu, 19 Jan 2012 17:00:27 +0100 (CET) X-Virus-Scanned: Amavis at mail.desaster-games.com Received: from mail.desaster-games.net ([127.0.0.1]) by localhost (mail.desaster-games.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ulw9E5M2MEE6 for ; Thu, 19 Jan 2012 17:00:17 +0100 (CET) Received: from [10.159.0.8] (main.felix.desaster-games.net [10.159.0.8]) by mail.desaster-games.net (Postfix) with ESMTPSA id 80E58102859E for ; Thu, 19 Jan 2012 17:00:17 +0100 (CET) Message-ID: <4F183D6B.9060009@desaster-games.com> Date: Thu, 19 Jan 2012 16:57:31 +0100 From: Felix Kuperjans Organization: Desaster Games e.V. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20120113 Thunderbird/9.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Link-local ipv6 address in /etc/hosts? in browsers? References: <4F1835F4.4040009@gmail.com> In-Reply-To: <4F1835F4.4040009@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: d3988e32-8a20-49af-ac2e-675c0811ca13 X-Archives-Hash: 41a54b93e8383308bef35f32a9a2b4b3 AFAIK, link-local addresses shall not be used for usual services like HTTP. They are only for neighbour discovery, local multicasts (all local NTP servers, all local DHCP servers, and so on) or pinging. It is possible (by specifying %interface) to access them, but this remains unimplemented in most programs, as it is not usual / advisable to use them this way. I think your intention was probably to do some local testing in a LAN, IPv6 offers two working possibilities: * Usage of site-local addresses: For simple local testing, you could assign (usually statically) site-local addresses. These are not routed to the internet, but are not local to a single interface, and therefore routed as usual IPv6 unicast traffic. However, this method has be declared as obsolete and should not be used any more, but it still works in all implementations I've seen. * The "real" way for addresses within a LAN is to assign globally unique addresses. In IPv6, this usually works this way: The ISP assigns a /64 subnet to your local router, who propagates this subnet via router advertisements as the local network prefix. All computers in the network choose their address within this subnet, either statically (default) or randomly (privacy extensions). It is then possible, that those addresses can be used world-wide, in order to isolate machines within your network, AFAIK the advised way is to set up a proper firewall on your router (or local machine), denying world wide access. However, the world of IPv6 changed a lot and many things got obsoleted / extended, it's sometimes hard to find documentation about the really advised newest way of doing things... In addition, there's of course lots of criticism, especially about privacy or security. I used to try out site-local addresses first btw, despite they were already obsoleted some time ago. Regards, Felix Am 19.01.2012 16:25, schrieb Michael Mol: > Grant Edwards wrote: >> How do you specify a link-local ipv6 address in /etc/hosts? >> >> For example, I can ping/telnet/ssh to fe80::02c0:4eff:fe07:0005%eth1, >> but I can't figure out how to put that address in /etc/hosts so I can >> access it by name. > Tried several different approaches, can't get any of them to work. I > don't know where the bug is, though. > > I did find that if I leave off the %iface in /etc/hosts, I get an > "invalid argument" error from ping6. I suspect there's a bug in ping6. > Working directly and extensively with link-local interfaces is *bound* > to reveal a bunch of bugs, because that's not intended SOP in IPv6, you > have to be more aware of which link scope you're talking to, and I doubt > most developers take it into account. > >> Similarly, how do you enter an ipv6 link-local address in Firefox or >> Opera? curl seems to accept such an address and return the proper web >> page, but I can't find any interactive browser (graphical or >> command-line) that will accept a link-local address. So far I've >> tried Firefox Opera w3m links. According to RFC2732 it looks like the >> format should be >> >> http://[fe80::02c0:4eff:fe07:0005%eth1]:80/ >> >> But none of the browsers accept that. > That's probably a bug in each browser. > >