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 1PuikS-00048t-By for garchives@archives.gentoo.org; Wed, 02 Mar 2011 09:53:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 13264E0592; Wed, 2 Mar 2011 09:53:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C0745E0592 for ; Wed, 2 Mar 2011 09:53:27 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B72271B4200 for ; Wed, 2 Mar 2011 09:53:26 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2104) id 70BD520054; Wed, 2 Mar 2011 09:53:25 +0000 (UTC) From: "Joshua Saddler (nightmorph)" To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en: ipv6.xml X-VCS-Repository: gentoo X-VCS-Files: ipv6.xml X-VCS-Directories: xml/htdocs/doc/en X-VCS-Committer: nightmorph X-VCS-Committer-Name: Joshua Saddler Content-Type: text/plain; charset=utf8 Message-Id: <20110302095325.70BD520054@flycatcher.gentoo.org> Date: Wed, 2 Mar 2011 09:53:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@lists.gentoo.org Reply-to: docs-team@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 3db8ab4528d00df23b7bf458b6e6d248 nightmorph 11/03/02 09:53:25 Modified: ipv6.xml Log: remove 6to4 chapter for now, given comment #9 and discussion on bug 326= 771. totd is maintainer-wanted and no-herd, and only available on 2 arche= s. if 6to4 is really a necessity, and/or there are better cross-platform = proxy tools, then maybe we can add a chapter on 6to4 back to the guide. Revision Changes Path 1.37 xml/htdocs/doc/en/ipv6.xml file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/ipv6= .xml?rev=3D1.37&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/ipv6= .xml?rev=3D1.37&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/ipv6= .xml?r1=3D1.36&r2=3D1.37 Index: ipv6.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/ipv6.xml,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- ipv6.xml 12 Aug 2010 06:20:16 -0000 1.36 +++ ipv6.xml 2 Mar 2011 09:53:25 -0000 1.37 @@ -1,6 +1,6 @@ - + =20 Gentoo IPv6 Router Guide @@ -34,8 +34,8 @@ =20 -3 -2010-08-11 +4 +2011-03-02 =20 Preliminaries @@ -742,166 +742,6 @@ =20 -Using 6to4 Conversion -
-Basic principles - - -

-6to4 conversion can be used if you want to have hosts that talk to IPv4 -hosts over a purely IPv6 connection. Thus you can have an entirely IPv6 -internal network, with one host dealing with connecting to the outside -IPv4/IPv6 world. -

- - -
- -
-DNS configuration - - -

-To get 6to4 conversion working, a DNS proxy, totd, needs to be -configured that will send you AAAA records for sites that really only ha= ve -A records. These AAAA records will point to IPv6 addresses which don't -actually exist, but which will get routed through a 6to4 proxy. -

- -

-First, install totd: -

- -
-# emerge totd
-
- -

-Next, we need to setup /etc/totd.conf with some basic -configuration information. -

- -
-(Points to a real DNS nameserver)
-forwarder 192.168.0.2 port 53
-(What prefix to put before faked AAAA records)
-prefix 3ffe:abcd:1234:9876::
-(What port to run totd on)
-port 5005
-(What PID file to use)
-pidfile /var/run/totd.pid
-(Actually do 6to4 stuff)
-stf
-
- - -totd must be set to use a port different than port 53 if another -nameserver is running on the same machine. - - - -
- -
-6to4 proxy - - -

-ptrtd will be used as a 6to4 proxy, enabling connections between -the internal IPv6 host and the outside IPv4 host. -

- -
-# emerge ptrtd
-
- -

-We now need to configure ptrtd, telling it what fake prefix -(the one we setup totd to use) to create proxy connections for. -Edit /etc/conf.d/ptrtd and set IPV6_PREFIX. This -should be the same prefix as was configured with totd. -

- -
-IPV6_PREFIX=3D"3ffe:abcd:1234:9876::"
-
- -

-You can now start totd, and enable it to start at boot. -

- -
-# /etc/init.d/totd start
-# rc-update add totd default
-
- - -
- -
-Client configuration and testing - - -

-Clients may now be configured to connect to both IPv4 and IPv6 hosts -through an IPv6 only connection. Assuming that the clients are already -receiving an IP address from radvd, we simply need to add a new DNS -resolver entry, and add a default route for those "fake addresses". -First, add an entry at the top of your /etc/resolv.conf -pointing to the machine running totd. -

- -
-nameserver 2001:470:1f00:296::1 (The server running totd)
-
- -

-To test name resolution, request an AAAA record for a known IPv4 -only site. -

- -
-# dig aaaa google.com
-;; ANSWER SECTION:
-google.com.             300     IN      AAAA     3ffe:abcd:1234:9876::d8=
ef:3364
-google.com.             300     IN      AAAA     3ffe:abcd:1234:9876::d8=
ef:3564
-
- -

-We will now add a default route for all addresses prefixed with our -chosen fake prefix. -

- -
-(Assuming your IPv6 interface is eth0)
-# ip route add 3ffe:abcd:1234:9876::/64 via 2001:470:1f00:296::1 dev =
eth0
-
- -

-Finally, use ping6 to ping google.com at it's fake IPv6 location. -

- -
-# ping6 -c 2 google.com
-PING 3ffe:abcd:1234:9876::d8ef:3364(3ffe:abcd:1234:9876::d8ef:3364) 56 d=
ata bytes
-64 bytes from 3ffe:abcd:1234:9876::d8ef:3364: icmp_seq=3D1 ttl=3D54 time=
=3D0.106 ms
-64 bytes from 3ffe:abcd:1234:9876::d8ef:3364: icmp_seq=3D2 ttl=3D54 time=
=3D0.090 ms
-
---- 3ffe:abcd:1234:9876::d8ef:3364 ping statistics ---
-2 packets transmitted, 2 received, 0% packet loss, time 1000ms
-rtt min/avg/max/mdev =3D 0.090/0.098/0.106/0.008 ms
-
- - -The router running ptrtd is actually replying, but this at least -tells us things are working. - - - -
-
- - Other Resources