<para>A meta deste HOWTO de IPv6 em Linux é responder as questões básicas e avançadas sobre a versão 6 do protocolo IP em um sistema com Linux. Este HOWTO dará ao leitor informação suficiente para instalar, configurar e usar aplicações IPv6 em máquinas com o Linux. Versões intermediárias deste HOWTO estão disponíveis nos endereços <ulink url="http://mirrors.bieringer.de/Linux+IPv6-HOWTO/">mirrors.bieringer.de</ulink> ou <ulink url="http://mirrors.deepspace6.net/Linux+IPv6-HOWTO/">mirrors.deepspace6.net</ulink>. Veja também <link linkend="revision-history">revision history</link> para saber das mudanças.</para>
<para>As informações sobre as traduções disponíveis estão na seção<link linkend="general-translations">Translations</link>.</para><sect1 id='general-copright' >
<title><!-- anchor id="general-copright" -->Copyright, licença e outros</title>
<para>Este documento é um software livre; voce pode redistribui-lo e/ou modifica-lo sob os termos da licença GNU GPL, tal como está publicado pela Free Software Foundation; seja pela versão 2 da Licença, ou (em sua opinião) qualquer versão posterior.</para>
<para>Este programa é distribuído na esperança de que seja útil, mas SEM QUALQUER GARANTIA; nem mesmo qualquer garantia de COMERCIALIZAÇÃO ou ADEQUAÇÃO PARA UM PROPÓSITO PARTICULAR. Veja a GNU GPL para mais detalhes.</para>
<para>Se voce quiser uma cópia da licença GNU GPL, solicite através de carta para o endereço Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA.</para></sect2><sect2>
<title>Sobre o autor</title>
<sect3>
<title>História do autor com a Internet e IPv6</title>
<listitem><para>1993: Eu entrei em contato com a internet utilizando um cliente de email e news baseado em console há bastante tempo (procure por "e91abier" no grupo <ulink url="http://groups.google.com/">groups.google.com</ulink>, sou eu).</para></listitem><listitem><para>1996: Foi solicitado que eu produzisse um curso de IPv6, incluindo um workshop com o Sistema Operacional Linux.</para></listitem><listitem><para>1997: Comecei escrevendo um guia sobre como instalar, configurar e utilizar o IPv6 em Linux, chamado<ulink url="http://www.bieringer.de/linux/IPv6/">IPv6 & Linux - HowTo</ulink> (veja <ulink url="http://www.bieringer.de/linux/IPv6/IPv6-HOWTO/IPv6-HOWTO-0.html#history">IPv6 & Linux - HowTo/History</ulink> para mais informações).</para></listitem><listitem><para>2001: Comecei a escrever este novo Linux IPv6 HOWTO.</para></listitem></itemizedlist></sect3><sect3>
<para>O autor pode ser contactado através do endereço de email <pb at bieringer dot de> e também através de sua<ulink url="http://www.bieringer.de/pb/">homepage</ulink>.</para>
<para>Atualmente ele mora em Munique [parte nordeste de Schwabing] / Bavaria / Alemanha (sul) / Europa (centro) / Terra (superfície).</para></sect3></sect2></sect1><sect1 id='general-category' >
<para>Para outras versões ou traduções disponíveis, veja o site<ulink url="http://www.bieringer.de/linux/IPv6/">http://www.bieringer.de/linux/IPv6/</ulink>.</para></sect2><sect2>
<para>Veja <link linkend="revision-history">revision history</link> no final deste documento</para></sect3></sect2><sect2>
<title>To-Do</title>
<itemizedlist>
<listitem><para>Completar conteúdo que ainda falta</para></listitem><listitem><para>Finalizar a checagem gramatical</para></listitem></itemizedlist></sect2></sect1><sect1 id='general-translations' >
<para>As traduções devem sempre conter a URL, número da versão c copyright do documento original (e o seu também). Por favor não traduza o changelog original, pois isto não terá muita importancia. Também não traduza a seção sobre traduções disponíveis, pois elas podem estar desatualizadas. Ao invés disso, adicione uma URL para a seção em Ingles deste HOWTO.</para>
<para>Aparentemente a frequencia de mudança deste documento ocorre menos de uma vez por mes. Desde a versão 0.2.7 parece que a maioria do conteúdo que eu fiz foi escrito. As traduções devem sempre ter a versão em ingles como original..</para><sect2>
<para>Nota: uma olhada nesta URL pode ajudar<ulink url="http://www.bieringer.de/linux/IPv6/">http://www.bieringer.de/linux/IPv6/</ulink>.</para><sect3>
<para>A tradução para o Chines, feito por Burma Chen <expns at yahoo dot com> (informada a mim em 2002-10-31) e pode ser encontrada no TLDP:<ulink url="http://www.ibiblio.org/pub/Linux/docs/HOWTO/translations/zh/Linux-IPv6-HOWTO.txt.gz">http://www.ibiblio.org/pub/Linux/docs/HOWTO/translations/zh/Linux-IPv6-HOWTO.txt.gz (g'zipped txt)</ulink>. É uma foto da tradução, eu não sei se está atualizada.</para></sect3><sect3>
<para>Desde 2002-08-16 a tradução para o Polones foi iniciada e ainda está em progresso por Lukasz Jokiel <Lukasz dot Jokiel at klonex dot com dot pl>. Versão usada: CVS-version 1.29 do arquivo LyX, a qual foi a origem para a versão 0.2.7. O status é de ainda em progresso (2004-08-30).</para></sect3><sect3>
<para>Em 2002-11-10 a versão Alemã foi iniciada por Georg Käfer <gkaefer at gmx dot at> iniciou a tradução para o alemão, e a primeira publicação foi feita em 2003-02-10. Ela está originalmenmte disponível na Deep Space 6<ulink url="http://mirrors.deepspace6.net/Linux+IPv6-HOWTO-de/">http://mirrors.deepspace6.net/Linux+IPv6-HOWTO-de/</ulink> (e também em <ulink url="http://mirrors.bieringer.de/Linux+IPv6-HOWTO-de/">http://mirrors.bieringer.de/Linux+IPv6-HOWTO-de/</ulink>). Esta versão se manterá atualizada tanto quanto for possível.</para></sect3><sect3>
<para>Em 2003-04-09 foi iniciada a tradução da versão em Frances, por Michel Boucey <mboucey at free dot fr> e a primeira publicação foi em 2003-05-09. Ela está originalmente disponível na Deep Space 6<ulink url="http://mirrors.deepspace6.net/Linux+IPv6-HOWTO-fr/">http://mirrors.deepspace6.net/Linux+IPv6-HOWTO-fr/</ulink> (e também em <ulink url="http://mirrors.bieringer.de/Linux+IPv6-HOWTO-fr/">http://mirrors.bieringer.de/Linux+IPv6-HOWTO-fr/</ulink>).</para></sect3><sect3>
<para>Um membro do projeto MontevideoLibre, localizado no Uruguai (América do Sul) iniciou a tradução para espanhol no formato wiki:<ulink url="http://www.montevideolibre.org./manuales:libros:ipv6">http://www.montevideolibre.org./manuales:libros:ipv6</ulink></para></sect3><sect3>
<para>Em 2003-10-16 a tradução para uma versão em Italiano foi iniciada Michele Ferritto <m dot ferritto at virgilio dot it> para o<ulink url="http://ildp.pluto.linux.it/">ILDP</ulink> (Italian Linux Documentation Project) e a sua primeira publicação foi em 2004-03-12. Ela está originalmente disponível no ILDP em <ulink url="http://it.tldp.org/HOWTO/Linux+IPv6-HOWTO/">http://it.tldp.org/HOWTO/Linux+IPv6-HOWTO/</ulink>.</para></sect3><sect3>
<title>Japones</title>
<para>Em 2003-05-14 Shino Taketani <shino_1305 at hotmail dot com> me enviou uma nota dizendo que planejava traduzir o HOWTO para o japones.</para></sect3><sect3>
<title>Grego</title>
<para>Em 2004-06-18 Nikolaos Tsarmpopoulos <ntsarb at uth dot gr> me enviou uma nota dizendo que planejava traduzir o HOWTO para o Grego.</para></sect3><sect3>
<title>Turco</title>
<para>Em 2005-07-18 Necdet Yucel <nyucel at comu dot edu dot tr> me enviou uma nota dizendo que a tradução em Turco estava disponível. E uma fotografia da tradução (versão 0.61) pode ser encontrada na URL<ulink url="http://docs.comu.edu.tr/howto/ipv6-howto.html">http://docs.comu.edu.tr/howto/ipv6-howto.html</ulink>.</para></sect3><sect3>
<para>Em 2011-05-06 Gustavo Mendes de Carvalho <gmcarvalho at gmail dot com> iniciou a tradução deste HowTo para Portugues-Brazil. A primeira tentativa realizada em 2007 por Claudemir da Luz <claudemir dot daluz at virtuallink dot com dot br> nunca foi finalizada.</para></sect3></sect2></sect1><sect1>
<para>Este HOWTO foi escrito usando LyX versão 1.6.1 em um sistema Linux Fedora 10 com o template SGML/XML (DocBook). Ele está disponível em <ulink url="https://github.com/tLDP/LDP/tree/master/LDP/users/Peter-Bieringer/">github / tLDP / LDP / users / Peter-Bieringer</ulink> para contribuições.</para><sect3>
<para>Eu utilizei um utilitário divisor de linha de código (Code line wrapping - "lyxcodelinewrapper.pl") feito por mim mesmo, e ele está disponível para seu próprio uso em<ulink url="http://cvs.tldp.org/go.to/LDP/LDP/users/Peter-Bieringer/">TLDP-CVS / users / Peter-Bieringer</ulink></para></sect3><sect3>
<title>Geração de SGML</title>
<para>O SGML/XML é gerado usando a função de exportar do LyX</para></sect3></sect2><sect2>
<title>Referencias On-line para a versão em HTML deste HOWTO</title>
<sect3>
<title>Página principal</title>
<para>Como boa prática, uma referencia à página principal deste HOWTO é recomendada.</para></sect3><sect3>
<title>Páginas dedicadas</title>
<para>Como as páginas em HTML são geradas a partir dos arquivos SGML, os nomes dos arquivos em HTML podem ser bastante diferentes (randomicos). Entretanto, algumas páginas são etiquetadas em LyX, resultando em nomes estáticos. Estas etiquetas são úteis para referencias e não deveriam ser alteradas no futuro. Se voce acredita que eu esqueci qualquer etiqueta, por favor me avise, e eu colocarei.</para></sect3></sect2></sect1><sect1>
<title>Prefácio</title>
<para>Algumas coisas antes:</para><sect2>
<title>Quantas versões deste HOWTO existem por aí ?</title>
<para>O primeiro documento HOWTO relacionado a IPv6 foi escrito pelo Eric Osborne e era chamado<ulink url="http://www.linuxhq.com/IPv6/">Linux IPv6 FAQ/HOWTO</ulink> (por favor use-o somente para fins históricos). Sua última versão foi a 3.2.1, lançada em 14 de Julho de 1997.</para>
<para>Por favor ajude: Se alguém souber a data de nascimento deste HOWTO, por favor me envie um e-mail (estas informações são necessárias para o "histórico").</para></sect3><sect3>
<para>Esta segunda versão existe e se chama<ulink url="http://www.bieringer.de/linux/IPv6/">IPv6 & Linux - HowTo</ulink> escrita por mim (Peter Bieringer) em HTML puro. Ele nasceu em Abril de 1997 e sua primeira versão em ingles foi publicada em Junho de 1997. Eu vou continuar a manter esta versão, mas isto deve acontecer devagar e não será por completo, em favor da atualização da versão do Linux IPv6 HOWTO que voce está lendo agora.</para></sect3><sect3>
<para>Já que este<ulink url="http://www.bieringer.de/linux/IPv6/">IPv6 & Linux - HowTo</ulink> foi escrito em HTML puro, ele não é compatível com o <ulink url="http://www.tldp.org/">The Linux Documentation Project (TLDP)</ulink>. Eu recebi então um pedido no final de Novembro de 2001 para reescrever este HowTo <ulink url="http://www.bieringer.de/linux/IPv6/">IPv6 & Linux - HowTo</ulink> em SGML. Entretanto, por causa da descontinuidade do HOWTO (<ulink url="http://www.bieringer.de/linux/IPv6/IPv6-HOWTO/IPv6-HOWTO-0.html#history">Future of IPv6 & Linux - HowTo</ulink>), e como o IPv6 estava ficando mais e mais padronizado, eu decidi escrever um novo documento cobrindo os pontos básicos e um pouco avançados que permaneceram importantes ao longo destes anos. Algum conteúdo mais dinamico e avançado ainda pode ser encontrado neste segundo HOWTO (<ulink url="http://www.bieringer.de/linux/IPv6/">IPv6 & Linux - HowTo</ulink>).</para></sect3></sect2></sect1><sect1>
<varlistentry><term>Base 10</term><listitem><para>Sistema numérico muito bem conhecido e representa qualquer valor com os dígitos 0 a 9.</para></listitem></varlistentry><varlistentry><term>Base 16</term><listitem><para>Geralmente usado em linguagens de programação, também conhecido como sistema numérico hexadecimal, representa qualquer valor com os dígitos 0 a 9 e caracteres A a F (case insensitive).</para></listitem></varlistentry><varlistentry><term>Base 85</term><listitem><para>Representação de um valor com 85 dígitos/caracteres diferentes, ele pode levar a strings menores, mas nunca vi ser usado em campo.</para></listitem></varlistentry><varlistentry><term>Bit</term><listitem><para>A menor unidade de armazenamento, representa on/verdade/1 e off/falso/0.</para></listitem></varlistentry><varlistentry><term>Byte</term><listitem><para>Geralmente uma coleção de 8 bits (mas não é necessariamente uma verdade - veja outros sistemas computacionais)</para></listitem></varlistentry><varlistentry><term>Device</term><listitem><para>Aqui, o hardware para a conexão de rede, veja também NIC</para></listitem></varlistentry><varlistentry><term>Dual homed host</term><listitem><para>Um sistema dual homed é um nó com duas redes (física ou virtual) com interfaces em dois links diferentes, mas sem encaminhar qualquer pacote entre eles (não é um router).</para></listitem></varlistentry><varlistentry><term>Host</term><listitem><para>Geralmente um sistema single homed com somente uma interface de rede ativa, exemplo Ethernet ou (não e) PPP.</para></listitem></varlistentry><varlistentry><term>Interface</term><listitem><para>Quase sempre o mesmo que "device", veja também NIC</para></listitem></varlistentry><varlistentry><term>IP Header</term><listitem><para>Cabeçalho de um pacote IP (cada pacote de rede tem um cabeçalho e seu tipo depende do nível de rede)</para></listitem></varlistentry><varlistentry><term>Link</term><listitem><para>Um link é o nível 2 de rede, ou meio de transporte de pacotes. exemplos são Ethernet, Token Ring, PPP, SLIP, ATM, ISDN, Frame Relay,...</para></listitem></varlistentry><varlistentry><term>Node</term><listitem><para>Um nó é um host ou um router.</para></listitem></varlistentry><varlistentry><term>Octet</term><listitem><para>É uma coleção de 8 bits, hoje bem similar a "byte".</para></listitem></varlistentry><varlistentry><term>Port</term><listitem><para>Informação utilizada pelo TCP/UDP dispatcher (camada 4) para transportar informações para as camadas superiores</para></listitem></varlistentry><varlistentry><term>Protocolo</term><listitem><para>Cada camada de rede que contém a maioria dos campos e informações para tornar a vida mais fácil ao enviar a informação transportada para as camadas superiores, veja camada 2 (MAC) e 3 (IP)</para></listitem></varlistentry><varlistentry><term>Router</term><listitem><para>Um router é um nó com 2 ou mais redes interfaces de rede (física ou virtual), capaz de encaminhar os pacotes entre as suas interfaces.</para></listitem></varlistentry><varlistentry><term>Socket</term><listitem><para>Um socket IP é definido pelo endereço de origem e destino, e suas portas</para></listitem></varlistentry><varlistentry><term>Stack</term><listitem><para>Relacionado às várias camadas de rede</para></listitem></varlistentry><varlistentry><term>Subnetmask</term><listitem><para>Redes IP usam bits de máscara para separar redes locais de redes remotas</para></listitem></varlistentry><varlistentry><term>Tunnel</term><listitem><para>Um túnel é tipicamente uma conexão ponto-a-ponto sobre a qual pacotes são trocados, e que carregam dados de outro protocolo. Exemplo túnel IPv6-in-IPv4.</para></listitem></varlistentry></variablelist><sect3 id='Glossar' >
<varlistentry><term>ACL</term><listitem><para>Access Control List - Lista de controle de acesso</para></listitem></varlistentry><varlistentry><term>API</term><listitem><para>Application Programming Interface - Interface de programação de aplicação</para></listitem></varlistentry><varlistentry><term>ASIC</term><listitem><para>Application Specified Integrated Circuit</para></listitem></varlistentry><varlistentry><term>BSD</term><listitem><para>Berkeley Software Distribution</para></listitem></varlistentry><varlistentry><term>CAN-Bus</term><listitem><para>Controller Area Network Bus (physical bus system)</para></listitem></varlistentry><varlistentry><term>ISP</term><listitem><para>Internet Service Provider - Provedor de serviços Internet</para></listitem></varlistentry><varlistentry><term>KAME</term><listitem><para>Projeto - um esforço conjunto de seis companhias no Japão para fornecer grátis uma pilha IPv6 e IPsec (para ambos IPv4 e IPv6) para as variantes BSD existentes no mundo <ulink url="http://www.kame.net/">www.kame.net</ulink></para></listitem></varlistentry><varlistentry><term>LIR</term><listitem><para>Local Internet Registry - No Brasil, o registro.br</para></listitem></varlistentry><varlistentry><term>NIC</term><listitem><para>Network Interface Card</para></listitem></varlistentry><varlistentry><term>RFC</term><listitem><para>Request For Comments - conjunto de notas técnicas organizacionais sobre a Internet</para></listitem></varlistentry><varlistentry><term>USAGI</term><listitem><para>UniverSAl playGround for Ipv6 Project - trabalho para entregar uma pilha IPv6 de qualidade para os sistemas Linux.</para></listitem></varlistentry></variablelist></sect3></sect2><sect2>
<para>O caractere especial "¬" é usado para sinalizar que esta linha de código foi dividida para se obter uma melhor visualização em arquivos PFG e PS.</para></sect3><sect3>
<para>Nos exemplos genéricos voce encontrará as seguintes marcações:</para><screen>
<![CDATA[<myipaddress>
]]></screen><para>Para o uso real em seu sistema de linha de comando ou em scripts, isto deve ser substituído pelo conteúdo correto (removendo os sinais < e >). Desta forma o resultado seria</para><screen>
<![CDATA[1.2.3.4
]]></screen></sect3><sect3>
<title>Comandos no shell</title>
<para>Comandos executados no shell por usuários normais (não root) começam com $</para><screen>
<![CDATA[$ whoami
]]></screen><para>Comandos executados pelo usuário root começam com #</para><screen>
<![CDATA[# whoami
]]></screen></sect3></sect2></sect1><sect1>
<title>Necessidades para usar este HOWTO</title>
<sect2>
<title>Prerequisitos pessoais</title>
<sect3>
<title>Experiencia com ferramentas Unix</title>
<para>Voce deve estar familiarizado com a maioria das ferramentas Unix, como grep, awk, find, etc. , e saber sobre a maioria das opções mais usadas de cada um deles.</para></sect3><sect3>
<title>Experiencia com teoria de rede</title>
<para>Voce deve estar famliarizado com camadas, protocolos, endereços, cabos, conectores, etc. Se voce é novo nesta área, este é um bom local para voce iniciar seus estudos<ulink url="http://www.rigacci.org/docs/biblio/online/intro_to_networking/book1.htm">http://www.rigacci.org/docs/biblio/online/intro_to_networking/book1.htm</ulink></para></sect3><sect3>
<title>Experiencia com configuração IPv4</title>
<para>Voce deve definitivamente ter alguma experiencia em configuração de redes IPv4, caso contrário será difícil para voce entender o que realmente está acontecendo.</para></sect3><sect3>
<title>Experiencia com Domain Name System (DNS)</title>
<para>Permitirá a voce entender o que é um Domain Name System (DNS), que serviço ele fornece e como usa-lo.</para></sect3><sect3>
<title>Experiencia com estratégias de debug de rede</title>
<para>Voce deve pelo menos entender como usar o tcpdump e o que ele pode te mostrar. Caso contrário a depuração de problemas de rede será muito difícil para voce.</para></sect3></sect2><sect2>
<title>Hardware compatível com o sistema Linux</title>
<para>É claro que voce vai precisar usar algum hardware (pode ser uma maquina virtual), e não somente ler este HOWTO para dormir. ;-7)</para></sect2></sect1></chapter><chapter id='chapter-basics' >
<para>O IPv6 é um novo protocolo de camada 3 que tem a função de substituir o IPv4 (também conhecido apenas por IP). O IPv4 foi projetado a muito tempo atrás(<ulink url="http://www.faqs.org/rfcs/rfc760.html">RFC 760 / Internet Protocol</ulink> de Janeiro de 1980) e desde o começo tem havido muitos pedidos de atender mais capacidades e funcionalidades. A última RFC é <ulink url="http://www.faqs.org/rfcs/rfc2460.html">RFC 2460 / Internet Protocol Version 6 Specification</ulink>.As grandes mudanças no IPv6 foram o novo formato do cabeçalho, incluindo o tamanho da capacidade de endereços, de 32 para 128 bits. Já que a camada 3 é a responsável por transporte de pacotes fim a fim usando o roteamento baseado em endereços, ele deveria incluir os endereços IPv6 de origem e destino tal como o IPv4.</para>
<para>Para mais informações sobre a história do IPv6, de uma olhada nas RFC's mais antigas do IPv6 listadas aqui<ulink url="http://www.switch.ch/lan/ipv6/references.html">SWITCH IPv6 Pilot / References</ulink>.</para></sect1><sect1 id='basic-history-IPv6-Linux' >
<title><!-- anchor id="basic-history-IPv6-Linux" -->História do IPv6 no Linux</title>
<para>Os anos de 1992, 1993 e 1994 do IPv6 no Linux (linhas gerais) são cobertos pelo seguinte documento:<ulink url="http://www.laynetworks.com/IPv6.htm#CH3">IPv6 or IPng (IP next generation)</ulink>.</para>
<para>To-do: melhorar a linha do tempo, adicionar conteúdo...</para><sect2>
<para>O primeiro trecho de código de rede relacionado com o IPv6 foi adicionado ao kernel 2.1.8 do Linux em novembro de 1996 por Pedro Roque. Ele foi baseado na API do BSD:</para><screen>
<para>Por conta do buraco da manpower, a implementação do IPv6 no kernel foi incapaz de seguir os rascunhos propostos pelos novos RFC's publicados. Em outubro de 2000, um projeto foi iniciado no Japão, chamado<ulink url="http://www.linux-ipv6.org/">USAGI</ulink>, cujo objetivo foi implantar todo o restante, ou desatualizado, suporte ao IPv6 para o Linux. Ele utiliza a implementação IPv6 atual para o FreeBSD feita pelo <ulink url="http://www.kame.net/">KAME project</ulink>. De tempos em tempos, eles criavam fotos da versão vanilla do código do kernel do Linux.</para>
<para>Até a implementação do desenvolvimento na série 2.5 do kernel ter sido iniciado, os patches do<ulink url="http://www.linux-ipv6.org/">USAGI</ulink> eram tão grandes, que os mantenedores de rede do Linux eram incapazes de inclui-lo completamente no código final do kernel do Linux série 2.4.x.</para>
<para>Durante o desenvolvimento da serie 2.5, o tentou inserir todas as suas extensões usadas nesta série.</para></sect2><sect2>
<title>Atualmente</title>
<para>Muito do desenvolvimento feito para o IPv6 e patches do<ulink url="http://www.linux-ipv6.org/">USAGI</ulink> e outros estão integrados na série vanilla do kernel 2.6.x.</para></sect2><sect2>
<title>O futuro</title>
<para>O <ulink url="http://www.linux-ipv6.org/">USAGI</ulink> e outros ainda mantém o trabalho na implementação de novas características e funcionalidades, como a mobilidade e outros. De tempos em tempos, novos patches com extensões são lançados e também integrados à série vanilla do kernel.</para></sect2></sect1><sect1>
<para>Como já mencionado antes, os endereços IPv6 possuem 128 bits de tamanho. Este número de bits gera um número decimal extremamente grande, com 39 dígitos de tamanho:</para><screen>
]]></screen><para>Tais números não são endereços fáceis de serem memorizados. Os endereços IPv6 também tem um esquema orientado a bits (assim como o IPv4, mas não tão facilmente reconhecido). Assim a melhor notação de números tão grandes é em formato hexadecimal. Em hexadecimal, 4 bits (também conhecidos como "nibble") são representados por um dígito ou caractere, de 0-9 e A-F. Desta forma, o tamanho do endereço é reduzido para 32 caracteres.</para><screen>
]]></screen><para>Esta representação ainda não é muito conveniente (com a possível mistura ou perda de um único dígito hexadecimal), então os desenvolvedores do IPv6 escolheram um formato hexadecimal com um ":" separando cada bloco de 16 bits. Com isso, o sinal inicial 0x (um prefixo para valores hexadecimais em linguagens de programação) foi removido:</para><screen>
]]></screen><para>Um bloco de 16 bits contendo somente zeros também pode ser omitida, sendo representada por "::", mas não mais de uma única vez no endereço. Caso contrário poderia haver duplicação de endereços.</para><screen>
]]></screen><para>Há também um outro representação em modo compacto (Código base 85) baseado na<ulink url="http://www.faqs.org/rfcs/rfc1924.html">RFC 1924 / A Compact Representation of IPv6 Addresses</ulink>(publicada em 1º Abril 1996), nunca vista em campo. Provavelmente é uma pegadinha ou mentirinha da data. Mas aqui está um exemplo:</para><screen>
<para>Info: ipv6calc é uma calculadora de formato de endereços IPv6 que também faz conversões, e pode ser encontrada aqui: <ulink url="http://www.deepspace6.net/projects/ipv6calc.html">ipv6calc homepage</ulink> (<ulink url="http://mirrors.bieringer.de/www.deepspace6.net/projects/ipv6calc.html">Mirror</ulink>)</para>
<title>Porque o nome do sucessor do IPv4 é IPv6 e não IPv5 ?</title>
<para>No cabeçalho IP, os primeiros 4 bits são reservados para a versão do protocolo. Então em teoria qualquer número entre 0 e 15 seria possível.</para><itemizedlist>
<listitem><para>4: já em uso pelo IPv4</para></listitem><listitem><para>5: está reservado para o Stream Protocol (STP,<ulink url="http://www.faqs.org/rfcs/rfc1819.html">RFC 1819 / Internet Stream Protocol Version 2</ulink>) (o qual nunca foi realmente feito para o público)</para></listitem></itemizedlist><para>O próximo número disponível era 6. Portando, assim nasceu o IPv6!</para></sect2><sect2>
<title>Endereços IPv6: porque um número tão grande de bits ?</title>
<para>Durante o desenvolvimento do IPv4, as pessoas pensaram que 32 bits seriam suficientes para o mundo. Olhando de volta, realmente 32 bits foram suficientes por bastante tempo. entretanto 32 bits não foram suficientes para prover endereços globais para todos os dispositivos de rede no futuro (ou será já no presente ?). Pense em telefones celulares, tablets, computadores virtuais, carros, GPS's, geladeiras, TV's, etc.</para>
<para>Assim, os desenvolvedores escolheram 128 bits, 4 vezes maior (no campo do tamanho do endereço) do que o IPv4.</para>
<para>Mas o tamanho utilizável é menor do que parece. Isto se deve por causa do esquema utilizado na definição do endereçamento: 64 bits são usados para identificar a interface. Os outros 64 bits são usados para o roteamento. Assumindo os níveis de agregação (/48, /32, ...), é possível que os endereços também se esgotem, mas esperamos que não em futuro próximo.</para>
<para>Para mais informações veja também<ulink url="http://www.faqs.org/rfcs/rfc1715.html">RFC 1715 / The H Ratio for Address Assignment Efficiency</ulink> e <ulink url="http://www.faqs.org/rfcs/rfc3194.html">RFC 3194 / The Host-Density Ratio for Address Assignment Efficiency</ulink>.</para></sect2><sect2>
<title>Endereços IPv6: porque um número tão pequeno de bits em um nova versão ?</title>
<para>Enquanto existam (possivelmente) algumas pessoas (só sei do Jim Fleming...) na internet que estejam pensando sobre o IPv8 ou IPv16, estes projetos estão muito longe de serem aceitos e implementados. Enquanto isso, 128 bits foi a melhor escolha levando em consideração o overhead do cabeçalho e o transporte de dados. Considere o MTU mínimo no IPv4 (576 octetos) e no IPv6 (1280 octetos), o tamanho do cabeçalho em iIPv4 é de 20 octetos (mínimo, e pode aumentar até 60 octetos com outras opções usadas) e no IPv6 é de 40 octetos (fixo). Isto representa 3,4% de overhead no IPv4 (com o tamanho mínimo) e 3,1 % do menor MTU em IPv6. O overhead é praticamente igual. Mais bits para endereço necessitariam cabeçalhos maiores e consequentemente mais overhead. Além disso, considere o tamanho máximo de uma MTU em links normais (como em Ethernet hoje): são 1500 octetos (em alguns casos especiais 9.000 octetos usando jumbo frames). Assim, não seria um projeto apropriado se 10% a 20% dos dados transportados para a camada 3 fosse usado para endereçamento e não para dados propriamente ditos.</para></sect2></sect1></chapter><chapter id='chapter-addresstypes' >
<para>O IPv4 tem mostrado que algumas vezes é bom, se mais de um endereço IP puder ser configurado em uma interface, cada um deles com um propósito bem diferente (aliases, multicast). Então para continuar extensível, o IPv6 também suporta esta característica e permite que mais de 1 endereço seja configurado na mesma interface. Atualmente não existe qualquer limitação definida pela RFC, a não ser na implementação da pilha IPv6 (para evitar ataques DoS).</para>
<para>Ao usar este grande número de bits para endereço, o IPv6 define tipos de endereços baseado nos bits iniciais, os quais são, espera-se, não sejam quebrados no futuro, como acontece hoje com o IPv4 e as suas classes A, B e C.</para>
<para>Estes números de bits são separados para endereçar redes (os primeiros 64 bits) e para endereços de host (os últimos 64 bits), para facilitar a auto-configuração.</para><sect1>
<para>Um endereço IPv4-único para compatibilidade IPv6 é às vezes usado ou mostrado para sockets criados por um daemon IPv6, mas que só recebe conexões de endereços IPv4.</para>
<title>por exemplo, o endereço IP 1.2.3.4 seria assim:</title>
<para>Usado para tunelamento automático(<ulink url="http://www.faqs.org/rfcs/rfc2893.html">RFC 2893 / Transition Mechanisms for IPv6 Hosts and Routers</ulink>), o qual é substituído pelo <link linkend="tunneling-6to4.">6to4 tunneling</link>.</para><screen>
<title>Parte da rede, também conhecido como prefixo</title>
<para>Os designers definiram alguns tipos de endereços e deixaram muito disto para futuras definições quando novas necessidades surgirem. A <ulink url="http://www.faqs.org/rfcs/rfc4291.html">RFC 4291 / IP Version 6 Addressing Architecture</ulink> define o esquema utilizado no endereçamento atual.</para>
<para>Vamos agora dar uma olhada nos diferentes tipos de prefixos (e também em tipos de endereços):</para><sect2>
<title>Endereço tipo "link local"</title>
<para>Estes são endereços epeciais que são válidos somente no link de uma interface. Usando este endereço como destino, os pacotes nunca serão encaminhados a um router. Isto é usado para links de comunicação, tais como:</para><itemizedlist>
<listitem><para>Há alguém está aqui neste link ?</para></listitem><listitem><para>Há alguém aqui com endereços especiais (ex. procurando por um router) ?</para></listitem></itemizedlist><para>Eles começam com (onde "x" é qualquer caractere hexadecimal, normalmente "0")</para><screen>
]]></screen><para>Um endereço com este prefixo é encontrado em cada interface com IPv6 habilitado após a auto-configuração stateless (a qual é normalmente sempre o caso).</para></sect2><sect2>
<para>Estes endereços são similares aos da<ulink url="http://www.faqs.org/rfcs/rfc1918.html">RFC 1918 / Address Allocation for Private Internets</ulink> em uso atualmente em IPv4, com a vantagem adicional de que qualquer pessoa que usar este tipo de endereço tem a capacidade de usar até 16 bits para a definição máxima de 65535 subredes. Comparável com o 10.0.0.0/8 do IPv4.</para>
<para>Outra vantagem: como é possível colocar mais de 1 endereço em uma interface com IPv6, voce pode configurar um endereço de "site local" junto com um endereço global.</para>
<para>Este tipo de endereço não deveria mais ser usado, <ulink url="http://www.faqs.org/rfcs/rfc3879.html">RFC 3879 / Deprecating Site Local Addresses</ulink>, mas para um teste em laboratório, estes endereços ainda continuam sendo uma boa escolha (IMHO - em minha humilde opinião).</para></sect2><sect2>
<para>Por causa da definição original de endereços de site local não serem únicos, pode haver algum problema se duas redes já configuradas forem se conectar em um futuro próximo (overlap de subredes). Este e outros problemas foram os motivos para um novo tipo de endereço definido na<ulink url="http://www.faqs.org/rfcs/rfc4193.html">RFC 4193 / Unique Local IPv6 Unicast Addresses</ulink>.
]]></screen><para>Uma parte do prefixo (40 bits) é gerada usando um algoritmo pseudo-randomico e é improvável que dois resultados gerados por este algoritmo sejam iguais.</para>
<para>Exemplo de um prefixo gerado por este algoritmo (veja em: <ulink url="http://www.goebel-consult.de/ipv6/createLULA">Goebel Consult / createLULA</ulink>):</para><screen>
<para>Atualmente, existe um tipo de endereço definido globalmente (o primeiro design, chamado "provider based") que foi jogado fora a alguns anos atrás<ulink url="http://www.faqs.org/rfcs/rfc1884.html">RFC 1884 / IP Version 6 Addressing Architecture [obsolete]</ulink>, e voce consegue encontrar em algumas versões do kernel do Linux.</para>
]]></screen><para>Nota: o prefixo "aggregatable" foi descartado nos atuais drafts. Há ainda alguns outros subtipos definidos. Veja abaixo:</para><sect3>
]]></screen><para>e a maioria deles é mostrado em exemplos antigos. A razão para isso é, se endereços reais são mostrados, seria possível alguém copiar e colar estes endereços de arquivos de configuração antigos, o que inadvertidamente causaria um erro de duplicação de endereço de um endereço global único. Isto poderia causar sérios problemas para o host original (como nunca receber as respostas de requisições feitas). </para>
<para>Como o IPv6 agora já está em produção, este prefixo não é mais delegado e ele foi removido do processo de roteamento (veja<ulink url="http://www.faqs.org/rfcs/rfc3701.html">RFC 3701 / 6bone Phaseout</ulink> para mais detalhes).</para></sect3><sect3>
<title>Endereços 6to4</title>
<para>Estes endereços, feitos para um mecanismo de túnel especial [<ulink url="http://www.faqs.org/rfcs/rfc3056.html">RFC 3056 / Connection of IPv6 Domains via IPv4 Clouds</ulink> e <ulink url="http://www.faqs.org/rfcs/rfc2893.html">RFC 2893 / Transition Mechanisms for IPv6 Hosts and Routers</ulink>],utilizam um endereço IPv4 já fornecido e a sua possível subnet, e começam com</para><screen>
]]></screen><para>Veja também <link linkend="tunneling-6to4.">tunneling using 6to4</link> e <link linkend="information-joinipv6-6to4-tunneling">information about 6to4 relay routers</link>.</para></sect3><sect3>
<title>Designado pelo provedor para roteamento hierárquico</title>
<para>Este endereço é delegado pelo ISP e começa com</para><screen>
]]></screen><para>Prefixos de ISP's maiores (ou AS's) são delegados pelos <link linkend="information-majorregionregistries">local registries</link> e tem atualmente um tamanho de prefixo /32.</para>
<para>Qualquer outro ISP/empresa pode solicitar um prefixo de tamanho /48, mas isto depende da política de distribuição de endereços dos registros locais de cada país ou região.</para></sect3><sect3>
<title>Endereços reservados para exemplos e documentação</title>
<para>Atualmente, dois blocos de endereço estão reservados para exemplos e documentação. Veja a<ulink url="http://www.faqs.org/rfcs/rfc3849.html">RFC 3849 / IPv6 Address Prefix Reserved for Documentation</ulink>:</para><screen>
]]></screen><para>Estes endereços devem ser filtrados baseados no endereço de origem e NÃO devem ser roteados em roteadores de borda em direção à internet, se possível.</para></sect3></sect2><sect2>
<title>Endereços Multicast</title>
<para>Endereços Multicast são usados por serviços específicos.</para>
<para>Eles sempre começam com (xx é o valor de escopo)</para><screen>
<listitem><para>ffx1: nó local, os pacotes nunca deixam o nó.</para></listitem><listitem><para>ffx2: link-local, os pacotes nunca são encaminhados pelos routers, assim eles nunca deixam o link especificado.</para></listitem><listitem><para>ffx5: site-local, os pacotes nunca deixam o site.</para></listitem><listitem><para>ffx8: organization-local, os pacotes nunca deixam a organização (não é tão fácil de implementar, mas deve ser coberto pelo protocolo de roteamento).</para></listitem><listitem><para>ffxe: escopo global.</para></listitem><listitem><para>outros são reservados</para></listitem></itemizedlist></sect3><sect3>
<para>Já existem muitos tipos definidos/reservados (veja<ulink url="http://www.faqs.org/rfcs/rfc4291.html">RFC 4291 / IP Version 6 Addressing Architecture</ulink> para mais detalhes). Alguns exemplos são:</para><itemizedlist>
<listitem><para>Endereço All Nodes: ID = 1h, endereça todos os host no nó local (ff01:0:0:0:0:0:0:1) ou no link conectado (ff02:0:0:0:0:0:0:1).</para></listitem><listitem><para>Endereço All Routers: ID = 2h, endereça tosos os routers no nó local (ff01:0:0:0:0:0:0:2), no link conectado (ff02:0:0:0:0:0:0:2), ou no site local (ff05:0:0:0:0:0:0:2)</para></listitem></itemizedlist></sect3><sect3>
<title>Endereço multicast solicitado nó link-local</title>
<para>Um endereço de multicast especial que é usado como endereço de destino para a descoberta da vizinhança , uma vez que no IPv6 não há ARP, como existe no IPv4.</para>
<para>Um exemplo deste endereço se parece com</para><screen>
]]></screen><para>Os prefixos usados mostram que este é um endereço multicast link-local. O sufixo é gerado a partir do endereço de destino. Neste exemplo, um pacote deveria ser enviado ao endereço "fe80::1234", mas a parte de rede não conhece o MAC atual deste destino. Ele então substitui os 104 bits mais altos com "ff02:0:0:0:0:1:ff00::/104" e deixa os menores 24 bits intocados. Este endereço então é agora usado no link para achar o nó correspondente que tem que enviar uma resposta contendo o endereço MAC usado na camada 2.</para></sect3></sect2><sect2>
<para>Endereços Anycast são endereços especiais e eles são usados para muitas coisas, como o servidor DNS ou DHCP mais próximo, e outras coisas. Estes endereços são obtidos do espaço de endereçamento Unicast (aggregatable global ou site-local). O mecanismo anycast (do ponto de vista do cliente) será tratado pelos protocolos de roteamento dinamico.</para>
<para>Nota: Endereços anycast não podem ser usados como endereços de origem, pois eles se aplicam somente a endereços de destino.</para><sect3>
<title>Endereços Anycast Subnet-router</title>
<para>Um exemplo simples para um endereço unicast é o anycast subnet-router. Assumindo que um nó tem os seguintes endereços globais IPv6 configurados:</para><screen>
<para>Para a auto-configuração e questões de mobilidade, foi decidido usar os 64 bits de menor significado como a parte de host do endereço na maioria dos tipos de endereços atuais. Desta forma, cada subnet pode suportar uma grande quantidade de endereços.</para>
<para>Com a auto-configuração, a parte host do endereço é feita através da conversão do endereço MAC da interface (se disponível), através do método EUI-64, para um único endereço IPv6. Se nenhum MAC estiver disponível para este dispositivo (isto acontece bastante em dispositivos virtuais), outra coisa (como o endereço IPv4 ou o MAC da interface física) é usada no lugar.</para>
]]></screen><para>Isto poderia ser expandido de acordo com o tutorial do IEEE -<ulink url="http://standards.ieee.org/regauth/oui/tutorials/EUI64.html">IEEE-Tutorial EUI-64</ulink> resultando no endereço abaixo:</para><screen>
<para>Por causa da parte host do endereço "automaticamente computado" ser único, (exceto quando um fabricante de placas de rede usa o mesmo MAC em mais de um NIC), o rastreamento de um cliente é possível quando não há um proxy de qualquer tipo.</para>
<para>Este é um problema já conhecido, e a sua solução foi definida através da extensão de privacidade, definida na<ulink url="http://www.faqs.org/rfcs/rfc3041.html">RFC 3041 / Privacy Extensions for Stateless Address Autoconfiguration in IPv6</ulink> (já existe também um novo draft disponível: <ulink url="http://www.ietf.org/ids.by.wg/ipv6.html">draft-ietf-ipv6-privacy-addrs-v2-*</ulink>). Usando um valor estático e um valor randomico, um novo sufixo é gerado de tempos em tempos.</para>
<para>Nota: isto é somente interessante em conexões finais de clientes, e não é realmente útil para servidores já conhecidos.</para></sect3></sect2><sect2>
<para>Para servidores, provavelmente é mais fácil se lembrar de endereços mais simples, mas isto também pode ser resolvido. Em IPv6, é possível configurar um endereço adicional para uma interface. Veja o exemplo:</para><screen>
]]></screen><para>Para sufixos manuais como o ::1 mostrado acima, é necessário que o sétimo bit mais significativo seja definido como 0 (o bit universal/local do identificador gerado automaticamente). Existe também uma outra combinação de bits (não utilizada) que é reservada para endereços unicast.</para></sect2></sect1><sect1>
<para>Na fase inicial de projeto e design do IPv6, foi planejada a utilização hierárquica de roteamento para reduzir o tamanho das tabelas de roteamento ao menor valor possível. As razões por trás desta abordagem foram o grande número de rotas nos grandes roteadores de borda (cerca de 300.000 em janeiro de 2011), reduzindo a necessidade de memória nos routers e a capacidade de se utilizar chips ASIC (Application Specified Integrated Circuit) para manipular esta tabela, aumentando a velocidade (uma tabela menor aumenta a velocidade).
<para>A visão de hoje é que o roteamento será mais hierárquico para redes com somente 1 ISP. Em redes com mais de 1 conexão, isto não é possível, e está sujeita a sistemas multi-homed (informações de multi-homing:<ulink url="http://www.ietf.org/ids.by.wg/multi6.html">drafts-ietf-multi6-*</ulink>,<ulink url="http://arneill-py.sacramento.ca.us/ipv6mh/">IPv6 Multihoming Solutions</ulink>).</para><sect2>
<para>Semelhante ao IPv4, a rede roteável entra em cena. Por causa da notação do padrão de máscara de rede (128 bits) não parecer bom, os designers utilizaram o mesmo método utilizado no IPv4, chamado Classless Inter Domain Routing (CIDR,<ulink url="http://www.faqs.org/rfcs/rfc1519.html">RFC 1519 / Classless Inter-Domain Routing</ulink>)o qual especifica o número de bits do endereço IP que será usado para o roteamento. E ele também é chamado notação "slash".</para>
<para>Em circunstancias normais, (sem QoS), a procura em uma tabela de roteamento resulta na rota mais adequada com o número mais significante de bits do endereço. Em outras palavras, a rota com o maior prefixo tem a preferencia.</para>
<para>Por exemplo, se uma tabela de rotas mostra as seguintes entradas (a lista é parcial):</para><screen>
<title><!-- anchor id="chapter-systemcheck" -->Verificação do sistema para IPv6</title>
<para>Antes de voce começar a utilizar o IPv6 em uma máquina com Linux, é necessário testar para saber se seu sistema tem o suporte ao protocolo. Talvez voce tenha que fazer algum ajuste para prepara-lo antes de começar a usar.</para><sect1 id='systemcheck-kernel' >
<title><!-- anchor id="systemcheck-kernel" -->Kernel com IPv6</title>
<para>As distribuições mais novas de Linux já tem o kernel com suporte ao IPv6, e este suporte geralmente acontece com a compilação em módulos, mas é possível que estes módulos sejam carregados no momento do boot.</para>
<para>Nota: voce não deve usar o kernel da série 2.2, porque ele já não é mais atualizado. A série 2.4 também já não tem todas as atualizações de acordo com as últimas RFC's, então recomendamos utilizar um kernel da série 2.6.</para><sect2>
<title>Verificação do suporte a IPv6 no kernel utilizado</title>
<para>Para verificar se o seu kernel já está com o suporte a IPv6 habilitado, de uma olhada nos arquivos do diretório /proc. A seguinte entrada deve existir:</para><screen>
<para>É possível automatizar a carga do módulo IPv6 conforme seja necessário. Para isto, basta adicionar a seguinte entrada no arquivo de configuração (/etc/modules.conf ou /etc/conf.modules):</para><screen>
]]></screen><para>Nota: no kernel da série 2.6, o mecanismo carregador de módulos mudou, e o novo arquivo de configuração é o /etc/modprobe.conf.</para></sect3></sect2><sect2>
<title>Compilando o kernel 2.6 para suportar o IPv6</title>
<para>Se os dois resultados acima foram negativos, e o seu kernel não tem suporte para o IPv6, então voce tem algumas coisas a fazer:</para><itemizedlist>
<listitem><para>Atualizar a sua distribuição para uma que suporte o IPv6 (recomendado para os novatos)</para></listitem><listitem><para>Compilar um novo kernel (fácil, se voce souber quais opções são necessárias)</para></listitem><listitem><para>Recompilar os fontes do kernel dado pela sua distribuição (nem sempre tão fácil)</para></listitem><listitem><para>Compilar um kernel com as extensões USAGI</para></listitem></itemizedlist><para>Se voce decidir compilar um kernel, voce precisa ter alguma experiencia nisso e também ler o<ulink url="http://www.tldp.org/HOWTO/Kernel-HOWTO.html">Linux Kernel HOWTO</ulink>.</para>
<para>Uma comparação entre o kernel vanilla e as extensões USAGI está disponível aqui<ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-kernel.html">IPv6+Linux-Status-Kernel</ulink>.</para><sect3>
<para>Mais detalhes e dicas sobre a compilação de um kernel com suporte a IPv6 pode ser encontrado em<ulink url="http://www.bieringer.de/linux/IPv6/IPv6-HOWTO/IPv6-HOWTO-2.html#kernel">IPv6-HOWTO-2#kernel</ulink>.</para>
<para>Nota: voce deve usar, sempre que possível, um kernel da séria 2.6, uma vez que o suporte ao IPv6 na série 2.4 já não teve as últimas atualizações definidas nas RFC's, e a série 2.2 não tem mais o suporte atualizado ou mesmo mantido por alguém.</para></sect3><sect3>
<title>Compilando um kernel com as extensões USAGI</title>
<para>Para a família vanilla de kernel, recomendado somente para usuários avançados, os quais já estão familiarizados com o IPv6 e com compilação de kernel. Veja também<ulink url="http://www.linux-ipv6.org/faq.html">USAGI project / FAQ</ulink> e <ulink url="http://www.deepspace6.net/docs/best_ipv6_support.html">Obtaining the best IPv6 support with Linux (Article)</ulink> (<ulink url="http://mirrors.bieringer.de/www.deepspace6.net/docs/best_ipv6_support.html">Mirror</ulink>).</para></sect3></sect2><sect2>
<title>Dispositivos de rede com suporte a IPv6</title>
<para>Nem todos os dispositivos de rede tem suporte (ou terão) para transportar pacotes IPv6. Um status atualizado pode ser encontrado em<ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-kernel.html#transport">IPv6+Linux-status-kernel.html#transport</ulink>.</para>
<para>O maior problema disso é causado na implementação da camada de rede, já que o pacote IPv6 não é reconhecido pelo cabeçalho IP (6 ao invés de 4). Ele é reconhecido pelo protocolo da camada 2 (transporte). Da mesma maneira, qualquer protocolo da camada 2 que não usa numeração de protocolo não conseguirá encaminhar os pacotes IPv6.</para>
<para>Nota: mesmo assim o pacote ainda é transportado pelo link, mas no lado receptor, o encaminhamento não ocorrerá (voce pode verificar isso com a utilização do tcpdump).</para><sect3>
<listitem><para>Serial Line IP (SLIP, <ulink url="http://www.faqs.org/rfcs/rfc1055.html">RFC 1055 / SLIP</ulink>), deveria ser chamado de SLIPv4, nome do dispositivo: slX</para></listitem><listitem><para>Parallel Line IP (PLIP), que nem o SLIP, nome do dispositivo: plipX</para></listitem><listitem><para>ISDN com encapsulamento rawip, nome do dispositivo: isdnX</para></listitem></itemizedlist></sect3><sect3>
<title>Este link atualmente não suporta IPv6</title>
<listitem><para>ISDN com encapsulamento syncppp, nome do dispositivo: ipppX (problema de projeto do ipppd, que deveria ter sido resolvido com um PPP mais generalista na série de kernel 2.5)</para></listitem></itemizedlist></sect3></sect2></sect1><sect1>
<title>Ferramentas de configuração de rede que suportam IPv6</title>
<para>Voce não irá muito longe, se voce estiver rodando um kernel com suporte a IPv6, mas não tiver ferramentas que o ajudem a configurar o IPv6. Existem vários pacotes para ajudá-lo neste trabalho.</para><sect2>
<title>Pacote net-tools</title>
<para>O pacote net-tools inclui algumas ferramentas como ifconfig e route, que ajudam a configurar uma interface em IPv6. Veja a saída dos comandos ifconfig -? ou route -?, se eles mostrarem algo parecido com IPv6 ou inet6, então a ferramenta tem suporte a IPv6.</para>
<para>Novamente, para quem gosta de scripts:</para><screen>
<para>Alexey N. Kuznetsov (atual mantenedor do código de rede no Linux) criou um grupo de ferramentas que configuram redes através do dispositivo netlink. O uso destas ferramentas dá mais funcionalidades do que as do pacote net-tools, mas elas não estão muito bem documentadas e não são para os fracos de coração.</para><screen>
]]></screen><para>Se o programa /sbin/ip não for encontrado em seu sistema, então eu recomendo que voce instale o pacote iproute.</para><itemizedlist>
<listitem><para>Voce pode pega-lo através de sua distribuição (se houver)</para></listitem><listitem><para>Voce pode procurar o pacote RPM em<ulink url="http://rpmfind.net/linux/rpm2html/search.php?query=iproute">RPMfind/iproute</ulink> (em alguns casos é recomendada a reconstrução do SRPMS)</para></listitem></itemizedlist></sect2></sect1><sect1>
<title>Programas de teste e debug IPv6</title>
<para>Após a preparação do seu sistema para o IPv6, está na hora de usar este protocolo para a sua comunicação com outros sistemas. Primeiro voce deve aprender como analisar os pacotes através de um sniffer. Isto é altamente recomendável para que qualquer debug ou troubleshooting seja feito de maneira rápida.</para><sect2 id='program-ping6.' >
<para>Este programa está incluído no pacote iputils. Seu objetivo é enviar e testar o transporte de pacotes ICMPv6 echo-request packets e aguardar pelos pacotes ICMPv6 echo-reply.</para>
]]></screen><para>Dica: o comando ping6 precisa de acesso direto ao socket e por isso precisa de permissão de root. Então se usuários comuns (não-root) tentarem usar o ping6 e não obtiverem sucesso, podem ser um dos dois problemas:</para><orderedlist>
<listitem><para>ping6 não está na variável PATH deste usuário (provavelmente porque o ping6 é geralmente localizado em /usr/sbin, e adicionar este diretório ao path do usuário comum não é muito recomendado)</para></listitem><listitem><para>ping6 não executa corretamente, geralmente porque faltam permissões de root. A sugestão neste caso é executar o comando chmod u+s /usr/sbin/ping6 para permitir o uso do programa.</para></listitem></orderedlist><sect3>
<title>Especificando a interface para o ping em IPv6</title>
<para>Ao usar um endereço link-local para pingar alguém em IPv6 o kernel pode não reconhecer ou saber através de qual interface (física ou virtual) o pacote deve ser enviado. Por causa disso, a seguinte mensagem de erro deve aparecer:</para><screen>
]]></screen><para>Diferente do IPv4, onde as respostas ao ping para endereços de broadcast podem ser desabilitadas, em IPv6 este comportamento não pode ser desabilitado, exceto pela utilização de um firewall IPv6 local.</para></sect3></sect2><sect2 id='program-traceroute6.' >
]]></screen><para>Nota: diferente das versões mais atuais co traceroute do IPv4, que usa pacotes ICMPv4 echo-request e pacotes UDP (default), o traceroute do IPv6 só é capaz de enviar pacotes UDP. Como voce já deve saber, pacotes ICMP echo-request são mais aceitos pelos firewalls e listas de acesso (ACL) de routers do que pacotes UDP.</para></sect2><sect2 id='program-tracepath6.' >
<para>Este programa costuma estar incluído no pacote iputils. É um programa similar ao traceroute6 e ele traça o caminho para um endereço dado, descobrindo o MTU ao longo deste caminho. Veja o exemplo abaixo:</para><screen>
<para>No Linux, o tcpdump é a maior ferramenta para a captura de pacotes. Abaixo estão alguns exemplos. O suporte ao IPv6 já está adicionado nas versões 3.6 ou superiores deste programa. </para>
<para>O tcpdump usa diversas expressões e argumentos para realizar a filtragem de pacotes para minimizar o volume de informações apresentado:</para><itemizedlist>
<listitem><para>icmp6: filtra o tráfego ICMPv6 nativo</para></listitem><listitem><para>ip6: filtra o tráfego nativo IPv6 (incluindo ICMPv6)</para></listitem><listitem><para>proto ipv6: filtra o tráfego IPv6 tunelado em IPv4 (IPv6-in-IPv4)</para></listitem><listitem><para>not port ssh: para evitar mostrar os pacotes se voce estiver usando uma conexão SSH</para></listitem></itemizedlist><para>Além disso, algumas opções são muito úteis para obter mais informações de cada pacote, bem interessantes para pacotes ICMPv6:</para><itemizedlist>
<listitem><para>"-s 512": aumenta o tamanho do pacote capturado para 512 bytes. Se for usada a opção "-s 0" o pacote é capturado por inteiro</para></listitem><listitem><para>"-s 512": aumenta o tamanho do pacote capturado para 512 bytes. Se for usada a opção "-s 0" o pacote é capturado por inteiro</para></listitem><listitem><para>"-n": não resolve os endereços para nomes, muito útil quando o DNS reverso não está funcionando corretamente</para></listitem></itemizedlist><sect3>
<title>Ping IPv6 para 2001:0db8:100:f101::1 nativo sobre um link local</title>
<para>As distribuições Linux atuais já contém a maioria dos serviços Cliente e Servidor em IPv6. Veja aqui em<ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-distributions.html">IPv6+Linux-Status-Distribution</ulink>. Se ainda não estiver incluído, voce pode verificar em <ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-apps.html">IPv6 & Linux - Current Status - Applications</ulink> se o programa já está portado para o IPv6 e pronto para o Linux. Para os programas mais comuns existem dicas disponíveis em<ulink url="http://www.bieringer.de/linux/IPv6/IPv6-HOWTO/IPv6-HOWTO-3.html">IPv6 & Linux - HowTo - Part 3</ulink> e <ulink url="http://www.bieringer.de/linux/IPv6/IPv6-HOWTO/IPv6-HOWTO-4.html">IPv6 & Linux - HowTo - Part 4</ulink>.</para></sect1><sect1>
<title>Programas cliente com suporte a IPv6</title>
<para>Para executar os testes abaixo, é necessário que seu sistema seja um host IPv6 e os exemplos mostrados podem ser feitos se voce tiver acesso ao 6bone.</para><sect2>
<para>Por causa dos updates de segurança aplicados nos últimos anos, o Servidor DNS que roda a versão mais atual já tem a capacidade de entender os endereços IPv6 tipo AAAA (o named A6 mais novo ainda não é usado porque só no BIND9 o suporte aos root domais ARPA IP6 está em uso). Um teste bem simples para ver o sistema resolver endereços IPv6 é:</para><screen>
<para>As versões atuais do openssh já suportam IPv6. Dependendo da configuração utilizada, ele tem dois comportamentos:</para><itemizedlist>
<listitem><para>--without-ipv4-default: o cliente tenta se conectar primeiro em IPv6, e ele usa IPv4 se a conexão em IPv6 não for estabelecida</para></listitem><listitem><para>--with-ipv4-default: a conexão é feita primeiro em IPv4 e para usar algum endereço IPv6, deve-se forçar a sua utilização. Veja o exemplo</para></listitem></itemizedlist><screen>
]]></screen><para>Se seu cliente ssh não entende a opção "-6" então o suporte a IPv6 não está habilitado, como muitos pacotes de ssh na versão 1.</para></sect3><sect3>
<para>O software cliente e servidor SSH da SSH.com já suporta o IPv6 e agora ele é grátis para todos os Linux e FreeBSD, independente se o seu uso é pessoal ou comercial.</para></sect3></sect2><sect2>
<para>O status atual dos browsers com suporte a IPv6 pode ser encontrado aqui<ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-apps.html#HTTP">IPv6+Linux-status-apps.html#HTTP</ulink>.</para>
<para>A maioria deles ainda tem problemas pendentes, tais como:</para><orderedlist>
<listitem><para>Se a configuração de proxy usa somente endereços IPv4, os pedidos em IPv6 também serão enviados a este proxy, emas como o proxy não saberá resolver o endereço, o pedido não vai funcionar. A única solução é verificar se o seu software de proxy tem alguma atualização para resolver este problema.</para></listitem><listitem><para>Configuração automática de proxy (*.pac) não pode ser utilizada para manipular pedidos em IPv6 de maneira diferenciada (exemplo: não usar o proxy para o IPv6) por causa da sua natureza (escritos em Javascript e muito encrustado no código fonte, como é visto no Mozilla).</para></listitem></orderedlist><para>As versões anteriores de browsers também não entenderiam uma URL com o endereço IPv6, como no exemplo <ulink url="http://[2001:4dd0:f838:a006::6]/">http://[2001:4dd0:f838:a006::6]/</ulink> (isto funciona somente se a URL for usada em um browser que suporte IPv6).</para>
<para>Um pequeno teste é tentar este endereço em um browser sem o proxy configurado.</para><sect3>
<title>URLs para teste</title>
<para>Um bom ponto de partida para browsers que usam IPv6 é o site<ulink url="http://www.kame.net/">http://www.kame.net/</ulink>.Se a tartaruga da página estiver animada, a sua conexão é em IPv6. caso contrário, a tartaruga ficará parada.</para></sect3></sect2></sect1><sect1>
<title>Programas servidores com suporte a IPv6</title>
<para>Nesta parte deste HowTo, outros softwares cliente IPv6 são mencionados, assim como dicas para servidores com suporte a IPv6, como sshd, httpd, telnetd, etc, assim como outras dicas em<link linkend="chapter-hints-daemons">Hints for IPv6-enabled daemons</link>.</para></sect1><sect1 id='faq-ipv6-ready-system-check' >
<title><!-- anchor id="faq-ipv6-ready-system-check" -->FAQ (checagem de sistema com suporte a IPv6)</title>
<title>Q: Não consigo pingar (ping6) o endereço link-local</title>
<para>Mensagem de erro: "connect: Invalid argument"</para>
<para>O kernel não conhece qual interface física ou virtual voce quer utilizar para enviar o pacote ICMPv6. Assim, a solução poderia aparecer assim.</para>
<para>Menagem de erro: "icmp socket: Operation not permitted"</para>
<para>Estes utilitários criam pacotes especiais ICMPv6 e então os enviam. Isto é feito usando conexões brutas no kernel. Mas estas conexões somente podem ser usadas pelo usuário "root". Desta forma, esta mensagem vai aparecer para os usuários normais.</para>
<para>Solução: Se for realmente necessário que todos os usuários utilizem estas ferramentas, voce pode adicionar o "suid" bit usando o comando "chmod u+s /caminho/para/o/programa", e veja também este link<link linkend="program-ping6.">program ping6 usage</link>Se nem todos os usuários necessitam usá-lo, voce pode mudar o grupo do programa, para "wheel" por exemplo, e todos os usuários pertencentes a este grupo poderão executar estes programas sem problema. Voce também pode configurar o "sudo" para isto também.</para></sect3></sect2></sect1></chapter><chapter id='chapter-configuration-interface' >
<para>Em um nó, podem haver diferentes tipos de interfaces. Elas podem estar agrupadas em classes</para><itemizedlist>
<listitem><para>Físicas, como eth0, tr0</para></listitem><listitem><para>Virtuais, como ppp0, tun0, tap0, sit0, isdn0, ippp0</para></listitem></itemizedlist><sect2>
<title>Físicas</title>
<para>As interfaces físicas, como Ethernet ou Token Ring são exemplos de interfaces comuns que não precisam de qualquer tipo de tratamento especial.</para></sect2><sect2>
<title>Virtuais</title>
<para>As interfaces virtuais sempre precisam de algum tratamento especial</para><sect3>
<title>Interfaces Túnel IPv6-in-IPv4</title>
<para>Estas interfaces normalmente recebem o nome sit<emphasis>x</emphasis>. O nome sit é uma atalho para Simple Internet Transition. Esta interface tem a capacidade de encapsular os pacotes IPv6 em pacotes IPv4 e tunelar estes pacotes para um endpoint remoto.</para>
<para>A interface ISDN PPP (ippp) não tem o suporte ao IPv6 no kernel. E também não há qualquer plano para suportar, porque o kernel da série 2.5 ele será substituído por uma camada de interface PPP mais genérica.</para></sect3><sect3>
<para>Como mencionado anteriormente neste documento, esta interface não suporta o IPv6 (no envio até que funciona, mas a recepção não funciona).</para></sect3><sect3>
<para>Dispositivos Ether-tap já possuem o IPv6 habilitado e o stateless configurado. Para usá-lo, o módulo "ethertap" deve ter sido carregado antes.</para></sect3><sect3>
<title>Dispositivos tun</title>
<para>Atualmente não foi testado por mim</para></sect3><sect3>
<para>Antes de mais nada, voce precisa checar se já existe algum endereço IPv6 configurado e qual é o seu tipo (talvez atribuído durante uma auto-configuração stateless).</para><sect2>
]]></screen><para>Exemplo (a saída foi filtrada com o grep para mostrar somente os endereços IPv6). Aqui voce pode ver diferentes endereços IPv6 com diferentes escopos.</para><screen>
<para>Como esta ação não é tão necessária, tenha cuidado ao remover endereços IPv6 que não existem, pois ao realizar esta ação em kernels mais antigos, voce pode causar um grande estrago no sistema.</para><sect2>
<para>Se voce quer deixar seu link e quer enviar pacotes a todo o mundo que está só aguardando a sua conexão em IPv6, voce vai precisar de uma rota. Se já houver um router com IPv6 habilitado (e uma rota para ele), estes passos abaixo vão te ensinar como adicionar mais rotas em IPv6.</para><sect1>
<para>Antes de mais nada, é interessante verificar quais são as rotas IPv6 já configuradas (talvez atribuído durante uma auto-configuração).</para><sect2>
]]></screen><para>Exemplo (a saída foi filtrada para a interface eth0). Aqui voce pode ver rotas IPv6 para diferentes endereços em uma única interface.</para><screen>
]]></screen><para>A métrica "1" é usada aqui para se manter compatível com as métricas usadas pelo comando route, já que a métrica default ao se usar "ip" é "1024".</para></sect2><sect2>
<para>Um cliente pode configurar uma rota default prefixo "::/0", mas eles também aprendem uma rota no processo de auto configuração, ex.: uso do radvd no link abaixo mostra:</para><screen>
<para>Os linux mais velhos (pelo menos inferiores ao kernel 2.4.17) não suportam rotas default. Voce pode configura-las, mas a pesquisa na tabela vai retornar uma falha quando deveria ser encaminhado (intenção normal do roteador). Se voce ainda está usando uma versão antiga de kernel, as "rotas default" podem ser configuradas usando o prefixo de endereço global "2000::/3".</para>
<para>Nota: tome cuidado com as rotas default sem filtragem de endereços em roteadores de borda, pois o tráfego multicast ou site-local pode sair para o mundo.</para></sect3></sect2></sect1></chapter><chapter id='chapter-Neighbor-Discovery' >
<title><!-- anchor id="chapter-Neighbor-Discovery" -->Descoberta de vizinhos</title>
<para>A descoberta de vizinhos funciona como um sucessor do ARP (Address Resolution Protocol) em IPv4, no mundo IPv6. Voce pode obter estas informações sobre os vizinhos atuais, e adicionalmente voce pode configurar e excluir entradas. O kernel mantém o rastreamento das descobertas bem sucedidas (como no ARP em IPv4). Voce pode pesquisar as entradas nesta tabela usando o comando "ip".</para><sect1>
<title>Mostrando os vizinhos usando "ip"</title>
<para>Com o comando abaixo voce pode verificar a tabela de vizinhos aprendida ou configurada</para><screen>
]]></screen><para>Aparentemente algumas opções são somente para o IPv4... e se voce quiser contribuir com mais informações sobre outras opções da ferramenta e usos avançados, por favor, me envie.</para></sect2></sect1></chapter><chapter id='chapter-configuring-ipv6-in-ipv4-tunnels' >
<title><!-- anchor id="chapter-configuring-ipv6-in-ipv4-tunnels" -->Configurando um túnel IPv6-in-IPv4</title>
<para>Se voce quer deixar seu link e ter uma rede IPv6 à sua volta, voce vai precisar de um túnel IPv6-in-IPv4 para acessar a web em modo IPv6.</para>
<para>Existem alguns tipos de mecanismo e também algumas possibilidades da configuração deste túnel.</para><sect1>
<title>Tipos de túneis</title>
<para>Existe mais de uma possibilidade de transportar pacotes IPvb6 em links IPv4.</para><sect2>
<title>Túnel estático ponto a ponto: 6bone</title>
<para>Um túnel ponto a ponto é um túnel dedicado em direção a um ponto final., o qual sabe informações sobre uma rede IPv6A (para rotas de volta) e os endereços IPv4 deste túnel estão definidos na <ulink url="http://www.faqs.org/rfcs/rfc2893.html">RFC 2893 / Transition Mechanisms for IPv6 Hosts and Routers</ulink>. Necessidades:</para><itemizedlist>
<listitem><para>O endereço IPv4 local do túnel precisa ser estático, global, único e acessível a partir da outra ponta</para></listitem><listitem><para>Um prefixo global IPv6 deve ser designado a voce (veja o registro 6bone)</para></listitem><listitem><para>Um ponto final remoto do túnel deve ser capaz de rotear seu prefixo IPv6para seu ponto final local (uma configuração manual pode ser necessária)</para></listitem></itemizedlist></sect2><sect2>
<title>Túnel automático</title>
<para>Um túnel automático acontece quando um nó diretamente conectado a outro nó obtém um IPv4 do outro nó anterior.</para></sect2><sect2 id='tunneling-6to4.' >
<para>O túnel 6to4 (<ulink url="http://www.faqs.org/rfcs/rfc3056.html">RFC 3056 / Connection of IPv6 Domains via IPv4 Clouds</ulink>) utiliza um mecanismo simples para criar túneis automáticos. Cada nó com um endereço global único é capaz de ser uma ponta final de um túnel 6to4 (se nenhum firewall no meio do caminho bloquear este tipo de tráfego). Túneis 6to4 não costumam ser túneis um a um. Este tipo de túnel pode ser dividido em Upstream e Downstream. Além disso, um endereço especial IPv6 indica que este nó vai usar o tunelamento 6to4 para se conectar a redes IPv6 mundiais.</para><sect3>
<title>Geração de prefixo 6to4</title>
<para>O endereço 6to4 está definido abaixo (o esquema foi pego da <ulink url="http://www.faqs.org/rfcs/rfc3056.html">RFC 3056 / Connection of IPv6 Domains via IPv4 Clouds</ulink>):</para><screen>
]]></screen><para>FP e TLA juntos (16 bits) tem o valor 0x2002. V4ADDR é o endereço único IPv4 (em notação hexadecimal). SLA é o identificador de rede (65536 redes locais possíveis) e são usados para representar a sua estrutura de rede local.</para>
<para>Para os gateways, tal prefixo é gerado normalmente usando o SLA “0000” e o sufixo "::1" (não é uma exigencia, pode ser arbitrário com um escopo local) e então assinalado a uma interface de túnel 6to4. Veja que a Microsoft também utiliza V4ADDR para o sufixo.</para></sect3><sect3>
<title>Tunelamento Upstream 6to4</title>
<para>O nó tem que saber para qual ponta remota de túnel os pacotes IPv4 com pacotes IPv6 devem ser encaminhados. No início dos tempos de tunelamento 6to4, upstreams dedicados aceitavam que os routers fizessem isso. Veja <ulink url="http://www.kfu.com/~nsayer/6to4/">NSayer's 6to4 information</ulink> para uma lista de routers.</para>
<para>Hoje em dia, os routers upstream 6to4 podem ser encontrados automaticamente, usando o endereço de unicast 192.88.99.1. Os protocolos de roteamento se incumbem desta função, veja <ulink url="http://www.faqs.org/rfcs/rfc3068.html">RFC 3068 / An Anycast Prefix for 6to4 Relay Routers</ulink> para mais detalhes. </para></sect3><sect3>
<title>Tunelamento Downstream 6to4</title>
<para>O downstream (6bone -> seu nó com 6to4 habilitado) não é realmente correto e pode variar de um host remoto estranho que originou os pacotes que foram enviados a voce. Existem duas possibilidades:</para><itemizedlist>
<listitem><para>Estes hosts remotos usam endereços 6to4 e enviam os pacotes de volta diretamente a seu nó (veja abaixo)</para></listitem><listitem><para>Estes hosts remotos enviam os pacotes de volta à rede IPv6 e dependendo do roteamento, um router no meio do caminho cria um túnel automaticamente em direção ao seu nó.</para></listitem></itemizedlist></sect3><sect3>
<listitem><para>6to4 para 6to4: normalmente é um túnel direto entre as duas pontas, ambos habilitados em 6to4</para></listitem><listitem><para>6to4 para não-6to4: é enviado via um túnel upstream</para></listitem><listitem><para>não-6to4 para 6to4: é enviado via um túnel downstream</para></listitem></itemizedlist></sect3></sect2></sect1><sect1>
<title><!-- anchor id="conf-ipv6-in-ipv4-point-to-point-tunnels" -->Configuração de um túnel ponto a ponto</title>
<para>Existem possibilidades para adicionar ou remover um túnel ponto a ponto.</para>
<para>Uma boa informação adicional sobre a configuração de túneis fornecida através do comando “ip” está aqui <ulink url="http://www.deepspace6.net/docs/iproute2tunnel-en.html">Configuring tunnels with iproute2 (article)</ulink> (<ulink url="http://mirrors.bieringer.de/www.deepspace6.net/docs/iproute2tunnel-en.html">Mirror</ulink>).</para><sect2>
<title>Usando "ifconfig" e "route" (obsoleto)</title>
<para>Esta não é uma maneira muito recomendada de se criar um túnel porque ele é um pouco estranho. Não há qualquer problema se voce adicionar somente um, mas se voce for configurar mais de um, voce não poderá desfazer os primeiros túneis criados e deixar os últimos em funcionamento.</para>
<para>Uso (exemplo genérico para 3 túneis):</para><screen>
]]></screen><para>Importante: NÃO USE ISSO, porque esta configuração habilita implicitamente um “tunelamento automático” de qualquer lugar na internet, e isto é um risco, então não o utilize.</para></sect3><sect3>
<title>Usando somente "route"</title>
<para>Também é possível configurar túneis no modo Non Broadcast Multiple Access (NBMA), pois é uma maneira fácil de adicionar muitos túneis de uma vez. Mas nenhum dos túneis pode ser numerado (o que não é uma característica).</para>
<para>Uso (exemplo genérico para 3 túneis):</para><screen>
]]></screen><para>Importante: NÃO USE ISSO, porque esta configuração habilita implicitamente um “tunelamento automático” de qualquer lugar na internet, e isto é um risco, então não o utilize.</para></sect3></sect2><sect2>
<title>Removendo os túneis ponto a ponto</title>
<para>Nem sempre é necessário fazer isso manualmente, mas pode ser usado em scripts para uma limpeza ou restart de uma configuração IPv6.</para><sect3>
<title>Usando "ip"</title>
<para>Uso para remover um dispositivo túnel:</para><screen>
<para>Às vezes é necessário configurar túneis ponto a ponto com endereços IPv6 como em IPv4. Isto somente é possível utilizando o primeiro (ifconfig+route - obsoleto) e o terceiro (ip+route) modo de configuração. Em tais casos, voce pode adicionar os endereços IPv6 na interface de túnel conforme é mostrado na configuração de uma interface. </para></sect2></sect1><sect1 id='configuring-ipv6to4-tunnels' >
<title><!-- anchor id="configuring-ipv6to4-tunnels" -->Configuração de túneis 6to4</title>
<para>Preste atenção pois o suporte aos túneis 6to4 atualmente não está implementado completamente no kernel vanilla da série 2.2.x (veja <link linkend="systemcheck-kernel">systemcheck/kernel</link> para mais detalhes). Veja também que o tamanho do prefixo para um endereço 6to4 é 16, uma vez que do ponto de vista da rede, todos os outros hosts habilitados para 6to4 estão na mesma camada 2.</para><sect2>
<title>Adição de um túnel 6to4</title>
<para>Antes de tudo, voce precisa calcular o seu prefixo 6to4 usando o seu endereço público IPv4 (se seu host não tem este endereço, é possível utilizar um NAT no router de borda em alguns casos especiais):</para>
<para>Assumindo que o seu endereço IPv4 seja este </para><screen>
]]></screen><para>Gateways locais 6to4 deveriam (mas não é uma regra fixa, pois voce pode escolher um sufixo arbitrário, se voce preferir) sempre assinalar o sufixo "::1", desta forma seu endereço local 6to4 será este</para><screen>
]]></screen><para>É sabido que algumas versões do comando "ip" (exemplo SuSE Linux 9.0) não suportam endereços IPv6 no formato compatível IPv4 para seus gateways, e neste caso o endereço IPv6 relativo a ele deve ser usado:</para><screen>
<para>A <ulink url="http://www.faqs.org/rfcs/rfc2473.html">RFC 2473 / Generic Packet Tunneling in IPv6 Specification</ulink> especifica o mecanismo para tunelar diferentes tipos de pacotes em IPv6 incluindo IPv4.</para>
<para>NOTAE: O suporte para túneis IPv4-in-IPv6 está disponível somente a partir da versão de kernel 2.6.22.</para><sect1>
<title><!-- anchor id="chapter-kernel-settings" -->Configuraçoes de Kernel nos arquivos do /proc</title>
<para id='proc-filesystem' ><!-- anchor id="proc-filesystem" -->Nota: a fonte desta seção é em sua maioria o arquivo "ip-sysctl.txt", o qual está incluído no diretório "Documentation/networking" do código fonte do kernel usado. Crédito para Pekka Savola pela manutençao da parte IPv6 neste arquivo. Além disso, muito do que está escrito abaixo é um Copy & Paste deste arquivo mencionado.</para><sect1>
<para>Usar os comandos "cat" e "echo" é a maneira mais simples de acessar os arquivos deste diretório, mas alguns pontos devem ser observados:</para><itemizedlist>
<listitem><para>O sistema de arquivos /proc deve estar habilitado no kernel , ou seja, a seguinte chave deve estar configurada</para></listitem></itemizedlist><screen>
<listitem><para>Voce pode ler e também escrever (geralmente como root) nos arquivos contidos aqui (/proc)</para></listitem></itemizedlist><para>Normalmente, somente as entradas localizadas em /proc/sys/* podem ser alteradas, as demais são somentepara leitura e para obtenção de informações.</para><sect3>
<title>Obtendo um valor</title>
<para>O valor de uma entrada pode ser obtido com o comando "cat":</para><screen>
<para>O uso do programa "syysctl" para acessar as chaves do kernel é uma maneira moderna utilizada hoje em dia. Voce também pode usar se o sistema de arquivos /proc não estiver montado. Mas voce só terá acesso às entradas /proc/sys/*!</para>
<para>O programa "sysctl" está incluído no pacote "procps" (em sistemas Red Hat Linux).</para><itemizedlist>
<listitem><para>A interface do sysctl deve estar habilitada no kernel, então a seguinte chave deve estar habilitada</para></listitem></itemizedlist><screen>
]]></screen><para>Nota: Não use espaços entre o sinal = para definir os valores. Se forem possíveis diversos valores, coloque-os entre aspas</para><screen>
<para>Nota: Existem versões em campo que mostram "/" ao invés de "."</para>
<para>Para mais detalhes, de uma olhada na manpage do sysctl.</para>
<para>Dica: para achar mais rapidamente as definiçoes, use a opçao "-a" (mostra todas as entradas) junto com o comando "grep".</para></sect3></sect2><sect2>
<title>Valores encontrados nas entradas /proc</title>
<para>Existem vários formatos vistos no sistema de arquivos /proc:</para><itemizedlist>
<listitem><para>BOOLEANO: simplesmente um "0" (falso) ou um "1" (verdadeiro)</para></listitem><listitem><para>INTEIRO: um valor inteiro, também pode ser sem sinal</para></listitem><listitem><para>linhas mais sofisticadas com muitos valores: às vezes uma linha de cabeçalho também é mostrada, senão, uma olhada no código fonte do kernel pode ser necessário para entender o significado dos valores apresentados...</para></listitem></itemizedlist></sect2></sect1><sect1 id='proc-sys-net-ipv6.' >
<title><!-- anchor id="proc-sys-net-ipv6." -->Entradas em /proc/sys/net/ipv6/</title>
<listitem><para>Tipo: BOOLEANO</para></listitem></itemizedlist><para>Isto habilita o encaminhamento de pacotes IPv6 entre todas as interfaces.</para>
<para>Em IPv6 voce não pode controlar o envio de pacotes por dispositivo. este encaminhamento deve ser feito através de regras do IPv6-netfilter (controlado com ip6tables) e especificando os dispositivos de entrada e saída (veja <link linkend="firewalling-netfilter6.">Firewalling/Netfilter6</link> para mais detalhes). Isto é diferente no IPv4, onde é possível controlar o encaminhamento por dispositivo (a decisão é feita na interface onde o pacote entra).</para>
<para>Isto também define todas as interfaces do host e/ou router para o valor especificado. Veja os detalhes abaixo. Esta definição refere-se ao encaminhamento global.</para>
<para>Se este valor é 0, nenhum pacote IPv6 é encaminhado, os pacotes nunca deixarão outra interface, seja ela física ou lógica, como os túneis.</para></sect3></sect2><sect2>
<listitem><para>Tipo: BOOLEAN</para></listitem><listitem><para>Ajuste default: habilitado se o encaminhamento local está desabilitado, e desabilitado se o encaminhamento local está habilitado.</para></listitem></itemizedlist><para>Aceita Router Advertisements, e configura automaticamente esta interface com os dados recebidos.</para></sect3><sect3>
<listitem><para>Tipi: BOOLEAN</para></listitem><listitem><para>Ajuste default: habilitado se o encaminhamento local está desabilitado, e desabilitado se o encaminhamento local está habilitado.</para></listitem></itemizedlist><para>Aceita os Redirects enviados por um router IPv6.</para></sect3><sect3>
<listitem><para>Tipo: BOOLEAN</para></listitem><listitem><para>Ajuste default: habilitado se o accept_ra_pinfo está babilitado, e desabilitado se o accept_ra_pinfo estiver desabilitado.</para></listitem></itemizedlist><para>Os endereços e prefixos usados na configuração automática proveem de anúncios dos routers.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 1</para></listitem></itemizedlist><para>Quantidade de probes de detecção de endereços duplicados enviados.</para></sect3><sect3>
<listitem><para>Tipo: BOOLEAN</para></listitem><listitem><para>Default: FALSE se o encaminhamento global estiver desabilitado (default), caso contrário TRUE</para></listitem></itemizedlist><para>Comportamento Host/Router específico.</para>
<para>Nota: É recomendado ter a mesma configuração em todas as interfaces; cenários diferentes são bem incomuns.</para><itemizedlist>
<listitem><para>Valor FALSE: Por default, o comportamento do Host é assumido. Isto significa:</para></listitem></itemizedlist><orderedlist>
<listitem><para>O flag IsRouter não está definido em aúncios de vizinhança.</para></listitem><listitem><para>Solicitaçoes Router são enviados quando necessário.</para></listitem><listitem><para>Se accept_ra é TRUE (default), aceita anúncios router (e fazem auti configuração).</para></listitem><listitem><para>Se accept_redirects é TRUE (default), aceita Redirects.</para></listitem></orderedlist><itemizedlist>
<listitem><para>Valor TRUE: se o encaminhamento local está habilitado, o comportamento Router é assumido. Isto significa que o contrário da lista acima pode acontecer:</para></listitem></itemizedlist><orderedlist>
<listitem><para>O flag IsRouter é definido nos anúncios de vizinhança.</para></listitem><listitem><para>Solicitaçoes Router não são enviadas.</para></listitem><listitem><para>Anúncios Router são ignorados.</para></listitem><listitem><para>Redirects são ignorados.</para></listitem></orderedlist></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 1280 (mínimo necessário no IPv6)</para></listitem></itemizedlist><para>Default Maximum Transfer Unit</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 1</para></listitem></itemizedlist><para>Número de segundos a esperar após a interface ser ativada antes de enviar solicitaçoes Router.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 4</para></listitem></itemizedlist><para>Número de segundos a esperar entre solicitaçoes Router. </para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 3</para></listitem></itemizedlist><para>Número de solicitaçoes Router a enviar até assumir que não há um router presente.</para></sect3></sect2><sect2>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 128</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 512</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 1024</para></listitem></itemizedlist><para>Parametro para o tamanho da tabela de vizinhança.</para>
<para>Aumente este valor se voce tem muitas interfaces e os routers começam a apresentar problemas misteriosos de funcionamento e falhas. Ou se uma mensagem dessas aparecer <ulink url="http://www.zebra.org/">Zebra (routing daemon)</ulink>:</para><screen>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 30</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3></sect2><sect2>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 100</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 60</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 64</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 3</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 0</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 0</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 100</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 30</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 3</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 3</para></listitem></itemizedlist><para>Precisa ser preenchido</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 5</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 80</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3></sect2><sect2>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 30</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 1024</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 600</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 0</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 5</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 60</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 12</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3><sect3>
<listitem><para>Tipo: INTEGER</para></listitem><listitem><para>Default: 4096</para></listitem></itemizedlist><para>Precisa ser preenchido.</para></sect3></sect2></sect1><sect1 id='proc-sys-net-ipv4.' >
<title><!-- anchor id="proc-sys-net-ipv4." -->Entradas relacionadas a IPv6 em /proc/sys/net/ipv4/</title>
<para>Neste momento (e será até que o IPv6 seja completamente convertido para um módulo independente do kernel) algumas chaves para IPv6 são usadas aqui.</para><sect2>
<para>Esta definição não é usada para o IPv6. Para habilitar o limite ICMPv6 (o que é muito recomendado) regras netfilter-v6 devem ser usadas.</para></sect2><sect2>
<para>Desconhecido, mas provavelmente não usado pelo IPv6.</para></sect2></sect1><sect1 id='proc-net' >
<title><!-- anchor id="proc-net" -->Entradas em /proc/net relacionadas com IPv6</title>
<para>No /proc/net existem diversas variáveis disponíveis, somente para leitura, Não é possível obter informaçoes através do "sysctl", então utilize "cat".</para><sect2>
<listitem><para>Tipo: Uma linha por endereço contendo vários valores</para></listitem></itemizedlist><para>Aqui todos os endereços IPv6 cpnfigurados são mostrados em um formato especial. O exemplo mostra somente a interface de loopback. O significado é mostrado abaixo (veja "net/ipv6/addrconf.c" para mais informações).</para><screen>
<listitem><para>Endereço IPv6 mostrado em hexadecimal (32 caracteres) sem os dois pontos ":" como separadores</para></listitem><listitem><para>Número do dispositivo netlink (índice da interface) em hexadecimal (veja “ip addr” , também)</para></listitem><listitem><para>tamanho do prefixo, em hexadecimal</para></listitem><listitem><para>Valor do escopo (veja o fonte do kernel " include/net/ipv6.h" e "net/ipv6/addrconf.c" para mais informações)</para></listitem><listitem><para>Flags da interface (veja "include/linux/rtnetlink.h" e"net/ipv6/addrconf.c" para mais informações)</para></listitem><listitem><para>Nome do disppositivo</para></listitem></orderedlist></sect2><sect2>
<listitem><para>Tipo: Uma linha por rota contém várias valores</para></listitem></itemizedlist><para>Aqui toda a configuração de rotas em IPv6 é mostrada em um formato especialt. O exemplo mostra informações somente para a interface de loopback O significado é mostrado abaixo (veja "net/ipv6/route.c" para mais informações).</para><screen>
<listitem><para>Rede de destino IPv6 mostrada em hexadecimal (32 caracteres) som dois pontos ":" como separador</para></listitem><listitem><para>Tamanho do prefixo de destino, em hexadecimal</para></listitem><listitem><para>Rede de origem IPv6 mostrada em hexadecimal (32 caracteres) som dois pontos ":" como separador</para></listitem><listitem><para>Tamanho do prefixo de origem, em hexadecimal</para></listitem><listitem><para>Próximo salto IPv6 mostrado em hexadecimal (32 caracteres) som dois pontos ":" como separador</para></listitem><listitem><para>Métrica em hexadecimal</para></listitem><listitem><para>Contador de referencia</para></listitem><listitem><para>Contadoer de uso</para></listitem><listitem><para>Flags</para></listitem><listitem><para>Nome do dispositivo</para></listitem></orderedlist></sect2><sect2>
<listitem><para>Tipo: Uma linha por protocolo, com descrição e valor</para></listitem></itemizedlist><para>Estatísticas sobre o uso de sockets IPv6. Exemplo:</para><screen>
<listitem><para>Tipo: Uma linha por descrição SNMP e valor</para></listitem></itemizedlist><para>Estatísticas SNMP podem ser obtidas via um servidor SNMP e suas MIB's relacionadas, através um software de gerencia de rede.</para></sect2><sect2>
<para>Name to IPv4 or IPv6 address resolving is usually done using a libc resolver library. There are some issues known using the function <emphasis>getaddrinfo</emphasis>.</para>
<para>More info can be found at <ulink url="http://www.bieringer.de/linux/IPv6/getaddrinfo/">Linux & IPv6: getaddrinfo and search domains - Research</ulink> and <ulink url="http://people.redhat.com/drepper/linux-rfc3484.html">RFC 3484 on Linux</ulink>.</para>
<para>
More to be filled later...</para></chapter><chapter id='network-debugging' >
<title>Using “netstat” for server socket binding check</title>
<para>It's always interesting which server sockets are currently active on a node. Using “netstat” is a short way to get such information: </para>
<para>Used options: -nlptu</para>
<para>Example:</para><screen>
<![CDATA[# netstat -nlptu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
]]></screen><para>Router with link-local address “fe80::212:34ff:fe12:3450” send an advertisement to the all-node-on-link multicast address “ff02::1” containing two prefixes “2002:0102:0304:1::/64” (lifetime 30 s) and “2001:0db8:0:1::/64” (lifetime 2592000 s) including its own layer 2 MAC address “0:12:34:12:34:50”.</para></sect3><sect3>
]]></screen><para>Node with link-local address “fe80::212:34ff:fe12:3456” and layer 2 MAC address “0:12:34:12:34:56” is looking for a router on-link, therefore sending this solicitation to the all-router-on-link multicast address “ff02::2”.</para></sect3></sect2><sect2>
<title>Neighbor discovery</title>
<sect3>
<title>Neighbor discovery solicitation for duplicate address detection</title>
<para>Following packets are sent by a node with layer 2 MAC address “0:12:34:12:34:56” during autoconfiguration to check whether a potential address is already used by another node on the link sending this to the solicited-node link-local multicast address.</para><itemizedlist>
<listitem><para>Node wants to configure its link-local address “fe80::212:34ff:fe12:3456”, checks for duplicate now</para></listitem></itemizedlist><screen>
<![CDATA[15:44:17.712338 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
<listitem><para>Node wants to configure its global address “2002:0102:0304:1:212:34ff:fe12:3456” (after receiving advertisement shown above), checks for duplicate now</para></listitem></itemizedlist><screen>
<![CDATA[15:44:21.905596 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
<listitem><para>Node wants to configure its global address “2001:0db8:0:1:212:34ff:fe12:3456” (after receiving advertisement shown above), checks for duplicate now</para></listitem></itemizedlist><screen>
<![CDATA[15:44:22.304028 :: > ff02::1:ff12:3456: icmp6: neighbor sol: who has
<title>Neighbor discovery solicitation for looking for host or gateway</title>
<itemizedlist>
<listitem><para>Node wants to send packages to “2001:0db8:0:1::10” but has no layer 2 MAC address to send packet, so send solicitation now</para></listitem></itemizedlist><screen>
<title><!-- anchor id="chapter-support-persistent-configuration" -->Support for persistent IPv6 configuration in Linux distributions</title>
<para>Some Linux distribution contain already support of a persistent IPv6 configuration using existing or new configuration and script files and some hook in the IPv4 script files.</para><sect1>
<title>Red Hat Linux and “clones”</title>
<para>Since starting writing the <ulink url="http://www.bieringer.de/linux/IPv6/">IPv6 & Linux - HowTo</ulink> it was my intention to enable a persistent IPv6 configuration which catch most of the wished cases like host-only, router-only, dual-homed-host, router with second stub network, normal tunnels, 6to4 tunnels, and so on. Nowadays there exists a set of configuration and script files which do the job very well (never heard about real problems, but I don't know how many use the set). Because this configuration and script files are extended from time to time, they got their own homepage: <ulink url="http://www.deepspace6.net/projects/initscripts-ipv6.html">initscripts-ipv6 homepage</ulink> (<ulink url="http://mirrors.bieringer.de/www.deepspace6.net/projects/initscripts-ipv6.html">Mirror</ulink>). Because I began my IPv6 experience using a Red Hat Linux 5.0 clone, my IPv6 development systems are mostly Red Hat Linux based now, it's kind a logic that the scripts are developed for this kind of distribution (so called <emphasis>historic issue</emphasis>). Also it was very easy to extend some configuration files, create new ones and create some simple hook for calling IPv6 setup during IPv4 setup.</para>
<para>Fortunately, in Red Hat Linux since 7.1 a snapshot of my IPv6 scripts is included, this was and is still further on assisted by Pekka Savola.</para>
<para>Mandrake since version 8.0 also includes an IPv6-enabled initscript package, but a minor bug still prevents usage (“ifconfig” misses “inet6” before “add”).</para><sect2>
<title>Test for IPv6 support of network configuration scripts</title>
<para>You can test, whether your Linux distribution contain support for persistent IPv6 configuration using my set. Following script library should exist:</para><screen>
<![CDATA[# test -f /etc/sysconfig/network-scripts/network-functions-ipv6 && echo "Main
¬ IPv6 script library exists"
]]></screen><para>The version of the library is important if you miss some features. You can get it executing following (or easier look at the top of the file):</para><screen>
]]></screen><para>In shown example, the used version is 20011124. Check this against latest information on <ulink url="http://www.deepspace6.net/projects/initscripts-ipv6.html">initscripts-ipv6 homepage</ulink> (<ulink url="http://mirrors.bieringer.de/www.deepspace6.net/projects/initscripts-ipv6.html">Mirror</ulink>) to see what has been changed. You will find there also a change-log.</para></sect2><sect2>
<title>Short hint for enabling IPv6 on current RHL 7.1, 7.2, 7.3, ...</title>
<itemizedlist>
<listitem><para>Check whether running system has already IPv6 module loaded</para></listitem></itemizedlist><screen>
<![CDATA[# modprobe -c | grep net-pf-10
alias net-pf-10 off
]]></screen><itemizedlist>
<listitem><para>If result is “off”, then enable IPv6 networking by editing /etc/sysconfig/network, add following new line</para></listitem></itemizedlist><screen>
<![CDATA[NETWORKING_IPV6=yes
]]></screen><itemizedlist>
<listitem><para>Reboot or restart networking using</para></listitem></itemizedlist><screen>
<![CDATA[# service network restart
]]></screen><itemizedlist>
<listitem><para>Now IPv6 module should be loaded</para></listitem></itemizedlist><screen>
<![CDATA[# modprobe -c | grep ipv6
alias net-pf-10 ipv6
]]></screen><para>If your system is on a link which provides router advertisement, autoconfiguration will be done automatically. For more information which settings are supported see /usr/share/doc/initscripts-$version/sysconfig.txt.</para></sect2></sect1><sect1>
<title>SuSE Linux</title>
<para>In newer 7.x versions there is a really rudimentary support available, see /etc/rc.config for details.</para>
<para>Because of the really different configuration and script file structure it is hard (or impossible) to use the set for Red Hat Linux and clones with this distribution.
In versions 8.x they completly change their configuration setup. </para><sect2>
<title>SuSE Linux 7.3</title>
<itemizedlist>
<listitem><para><ulink url="http://www.feyrer.de/IPv6/SuSE73-IPv6+6to4-setup.html">How to setup 6to4 IPv6 with SuSE 7.3</ulink></para></listitem></itemizedlist></sect2><sect2>
<title>SuSE Linux 8.0</title>
<sect3>
<title>IPv6 address configuration</title>
<para>Edit file /etc/sysconfig/network/ifcfg-<Interface-Name> and setup following value</para><screen>
<para>Following information was contributed by Stephane Bortzmeyer <bortzmeyer at nic dot fr></para><orderedlist>
<listitem><para>Be sure that IPv6 is loaded, either because it is compiled into the kernel or because the module is loaded. For the latest, three solutions, adding it to /etc/modules, using the pre-up trick shown later or using kmod (not detailed here).</para></listitem><listitem><para>Configure your interface. Here we assume eth0 and address (2001:0db8:1234:5::1:1). Edit /etc/network/interfaces:</para></listitem></orderedlist><screen>
<![CDATA[iface eth0 inet6 static
pre-up modprobe ipv6
address 2001:0db8:1234:5::1:1
# To suppress completely autoconfiguration:
# up echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
netmask 64
# The router is autoconfigured and has no fixed address.
<para>After a long time discussing issues, finally <ulink url="http://www.faqs.org/rfcs/rfc3315.html">RFC 3315 / Dynamic Host Configuration Protocol for IPv6 (DHCPv6)</ulink> was finished. At time updating this part (10/2005) currently two implementations are available:</para><itemizedlist>
<listitem><para><ulink url="http://klub.com.pl/dhcpv6/">Dibbler</ulink> by Tomasz Mrugalski <thomson at klub dot com dot pl> (<link linkend="hints-daemons-dibbler">Hints for configuration</link>)</para></listitem><listitem><para><ulink url="http://dhcpv6.sourceforge.net/">DHCPv6 on Sourceforge</ulink> (<link linkend="hints-daemons-dhcpv6.">Hints for configuration</link>)</para></listitem><listitem><para><ulink url="http://www.isc.org/software/dhcp">ISC DHCP</ulink> (<link linkend="hints-daemons-isc-dhcp">Hints for configuration</link>)</para></listitem></itemizedlist></sect1></chapter><chapter id='chapter-mobility' >
<para>Support for IPv6 mobility can be enabled in Linux by installing the MIPL2 implementation found at: <ulink url="http://www.mobile-ipv6.org/">http://www.mobile-ipv6.org/</ulink></para>
<para>This implementation is compliant with RFC 3775. It is composed of a kernel patch and a mobility daemon called mip6d. Version 2.0.1 applies on Linux kernel 2.6.15.</para>
<para>Installation and setup are described in the <ulink url="http://tldp.org/HOWTO/Mobile-IPv6-HOWTO/">Linux Mobile IPv6 HOWTO</ulink>.</para></sect2><sect2>
<title>Network Mobility</title>
<para>There also exists an implementation of network mobility for Linux, it is called NEPL and is based on MIPL. It can also be downloaded from: <ulink url="http://www.mobile-ipv6.org/">http://www.mobile-ipv6.org/</ulink>.</para>
<para>The HOWTO document describing setup and configuration is available at: <ulink url="http://www.nautilus6.org/doc/nepl-howto/">http://www.nautilus6.org/doc/nepl-howto/</ulink>.</para></sect2><sect2>
<title>Links</title>
<itemizedlist>
<listitem><para>Mobile IPv6 for Linux (MIPL) project: <ulink url="http://www.mobile-ipv6.org/">http://www.mobile-ipv6.org/</ulink></para></listitem><listitem><para>Nautilus6 working group: <ulink url="http://nautilus6.org/">http://nautilus6.org/</ulink></para></listitem><listitem><para>Fast Handovers for Mobile IPv6 for Linux project: <ulink url="http://www.fmipv6.org/">http://www.fmipv6.org/</ulink></para></listitem><listitem><para>USAGI-patched Mobile IPv6 for Linux (UMIP):<ulink url="http://umip.linux-ipv6.org/">http://umip.linux-ipv6.org/</ulink></para></listitem><listitem><para>Deploying IPsec/IKE-protected MIPv6 under Linux:<ulink url="http://natisbad.org/MIPv6/">http://natisbad.org/MIPv6/</ulink></para></listitem><listitem><para><ulink url="http://www.faqs.org/rfcs/rfc3775.html">RFC 3775 / Mobility Support in IPv6</ulink></para></listitem><listitem><para><ulink url="http://www.faqs.org/rfcs/rfc3776.html">RFC 3776 / Using IPsec to Protect Mobile IPv6 Signaling Between Mobile Nodes and Home Agents</ulink></para></listitem><listitem><para><ulink url="http://www.faqs.org/rfcs/rfc3963.html">RFC 3963 / Network Mobility (NEMO)</ulink></para></listitem><listitem><para><ulink url="http://www.faqs.org/rfcs/rfc4068.html">RFC 4068 / Fast Handovers for Mobile IPv6</ulink></para></listitem><listitem><para><ulink url="http://www.faqs.org/rfcs/rfc4423.html">RFC 4423 / Host Identity Protocol (HIP) Architecture</ulink></para></listitem><listitem><para><ulink url="http://www.faqs.org/rfcs/rfc5201.html">RFC 5201 / Host Identity Protocol</ulink></para></listitem><listitem><para>HIP implementations: <ulink url="http://infrahip.hiit.fi/">http://infrahip.hiit.fi/</ulink>, <ulink url="http://hip4inter.net/">http://hip4inter.net/</ulink>, <ulink url="http://www.openhip.org/">http://www.openhip.org/</ulink></para></listitem></itemizedlist></sect2></sect1></chapter><chapter id='chapter-firewalling-security' >
<para>IPv6 firewalling is important, especially if using IPv6 on internal networks with global IPv6 addresses. Because unlike at IPv4 networks where in common internal hosts are protected automatically using private IPv4 addresses like <ulink url="http://www.faqs.org/rfcs/rfc1918.html">RFC 1918 / Address Allocation for Private Internets</ulink> or Automatic Private IP Addressing (APIPA)<ulink url="http://www.google.com/search?q=apipa+microsoft">Google search for Microsoft + APIPA</ulink>, in IPv6 normally global addresses are used and someone with IPv6 connectivity can reach all internal IPv6 enabled nodes.</para><sect1 id='firewalling-netfilter6.' >
<title><!-- anchor id="firewalling-netfilter6." -->Firewalling using netfilter6 </title>
<para>Native IPv6 firewalling is only supported in kernel versions 2.4+. In older 2.2- you can only filter IPv6-in-IPv4 by protocol 41. </para>
<para>Attention: no warranty that described rules or examples can really protect your system! </para>
<para>Audit your ruleset after installation, see <xref linkend="IPv6-security-auditing"> for more.</para>
<para>Since kernel version 2.6.20 IPv6 connection tracking is fully working (and does not break IPv4 NAT anymore like versions before)</para><sect2>
<title>More information</title>
<itemizedlist>
<listitem><para><ulink url="http://www.netfilter.org/">Netfilter project</ulink></para></listitem><listitem><para><ulink url="https://lists.netfilter.org/mailman/listinfo/netfilter">maillist archive of netfilter users</ulink></para></listitem><listitem><para><ulink url="https://lists.netfilter.org/mailman/listinfo/netfilter-devel">maillist archive of netfilter developers</ulink></para></listitem><listitem><para><ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-kernel.html#netfilter6 ">Unofficial status informations</ulink></para></listitem></itemizedlist></sect2></sect1><sect1>
<title>Preparation</title>
<para>This step is only needed if distributed kernel and netfilter doesn't fit your requirements and new features are available but still not built-in.</para><sect2>
<title>Get sources</title>
<para>Get the latest kernel source: <ulink url="http://www.kernel.org/">http://www.kernel.org/</ulink></para>
<para>Get the latest iptables package: </para><itemizedlist>
<![CDATA[# make pending-patches KERNEL_DIR=/path/to/src/linux-version-iptables-version/
]]></screen><para>Apply additional IPv6 related patches (still not in the vanilla kernel included) </para><screen>
<![CDATA[# make patch-o-matic KERNEL_DIR=/path/to/src/linux-version-iptables-version/
]]></screen><para>Say yes at following options (iptables-1.2.2) </para><itemizedlist>
<listitem><para>ah-esp.patch </para></listitem><listitem><para>masq-dynaddr.patch (only needed for systems with dynamic IP assigned WAN connections like PPP or PPPoE) </para></listitem><listitem><para>ipv6-agr.patch.ipv6 </para></listitem><listitem><para>ipv6-ports.patch.ipv6 </para></listitem><listitem><para>LOG.patch.ipv6 </para></listitem><listitem><para>REJECT.patch.ipv6 </para></listitem></itemizedlist><para>Check IPv6 extensions </para><screen>
<listitem><para>On RH 6.2 systems, normally, no kernel 2.4.x is installed, therefore the requirements don't fit. Use "--nodeps" to install it </para></listitem></itemizedlist><screen>
<para>Since kernel version 2.6.20 IPv6 connection tracking is well supported and should be used instead of using stateless filter rules.</para><screen>
<![CDATA[# ip6tables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
]]></screen></sect3><sect3>
<title>Allow ICMPv6</title>
<para>Using older kernels (unpatched kernel 2.4.5 and iptables-1.2.2) no type can be specified</para><itemizedlist>
<listitem><para>Accept incoming ICMPv6 through tunnels </para></listitem></itemizedlist><screen>
<![CDATA[# ip6tables -A INPUT -i sit+ -p icmpv6 -j ACCEPT
]]></screen><itemizedlist>
<listitem><para>Allow outgoing ICMPv6 through tunnels </para></listitem></itemizedlist><screen>
<![CDATA[# ip6tables -A OUTPUT -o sit+ -p icmpv6 -j ACCEPT
]]></screen><para>Newer kernels allow specifying of ICMPv6 types:</para><screen>
<![CDATA[# ip6tables -A INPUT -p icmpv6 --icmpv6-type echo-request -j ACCEPT
]]></screen></sect3><sect3>
<title>Rate-limiting</title>
<para>Because it can happen (author already saw it to times) that an ICMPv6 storm will raise up, you should use available rate limiting for at least ICMPv6 ruleset. In addition logging rules should also get rate limiting to prevent DoS attacks against syslog and storage of log file partition. An example for a rate limited ICMPv6 looks like:</para><screen>
<![CDATA[# ip6tables -A INPUT --protocol icmpv6 --icmpv6-type echo-request
¬ -j ACCEPT --match limit --limit 30/minute
]]></screen></sect3><sect3>
<title>Allow incoming SSH</title>
<para>Here an example is shown for a ruleset which allows incoming SSH connection from a specified IPv6 address </para><itemizedlist>
<listitem><para>Allow incoming SSH from 2001:0db8:100::1/128 </para></listitem></itemizedlist><screen>
<para>To accept tunneled IPv6-in-IPv4 packets, you have to insert rules in your IPv4 firewall setup relating to such packets, for example </para><itemizedlist>
<listitem><para>Accept incoming IPv6-in-IPv4 on interface ppp0 </para></listitem></itemizedlist><screen>
<![CDATA[# iptables -A INPUT -i ppp0 -p ipv6 -j ACCEPT
]]></screen><itemizedlist>
<listitem><para>Allow outgoing IPv6-in-IPv4 to interface ppp0 </para></listitem></itemizedlist><screen>
<![CDATA[# iptables -A OUTPUT -o ppp0 -p ipv6 -j ACCEPT
]]></screen><para>If you have only a static tunnel, you can specify the IPv4 addresses, too, like </para><itemizedlist>
<listitem><para>Accept incoming IPv6-in-IPv4 on interface ppp0 from tunnel endpoint 192.0.2.2</para></listitem></itemizedlist><screen>
<title>Protection against incoming TCP connection requests</title>
<para>VERY RECOMMENDED! For security issues you should really insert a rule which blocks incoming TCP connection requests. Adapt "-i" option, if other interface names are in use! </para><itemizedlist>
<listitem><para>Block incoming TCP connection requests to this host </para></listitem></itemizedlist><screen>
]]></screen><para>Perhaps the rules have to be placed below others, but that is work you have to think about it. Best way is to create a script and execute rules in a specified way. </para></sect3><sect3>
<title>Protection against incoming UDP connection requests</title>
<para>ALSO RECOMMENDED! Like mentioned on my firewall information it's possible to control the ports on outgoing UDP/TCP sessions. So if all of your local IPv6 systems are using local ports e.g. from 32768 to 60999 you are able to filter UDP connections also (until connection tracking works) like: </para><itemizedlist>
<listitem><para>Block incoming UDP packets which cannot be responses of outgoing requests of this host </para></listitem></itemizedlist><screen>
<listitem><para>Block incoming UDP packets which cannot be responses of forwarded requests of hosts behind this router </para></listitem></itemizedlist><screen>
<para>Following lines show a simple firewall configuration for Fedora 6 (since kernel version 2.6.20). It was modfied from the default one (generated by system-config-firewall) for supporting connection tracking and return the proper ICMPv6 code for rejects. Incoming SSH (port 22) connections are allowed.</para><screen>
<![CDATA[File: /etc/sysconfig/ip6tables
*filter :INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmpv6 -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d ff02::fb -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp6-adm-prohibited
COMMIT
]]></screen><para>For completeness also the IPv4 configuration is shown here:</para><screen>
<![CDATA[File: /etc/sysconfig/iptables
*filter :INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
]]></screen><para>Usage:</para><itemizedlist>
<listitem><para>Create/modify the configuration files</para></listitem><listitem><para>Activate IPv4 & IPv6 firewalling</para></listitem></itemizedlist><screen>
<![CDATA[# service iptables start
# service ip6tables start
]]></screen><itemizedlist>
<listitem><para>Enable automatic start after reboot</para></listitem></itemizedlist><screen>
<![CDATA[# chkconfig iptables on
# chkconfig ip6tables on
]]></screen></sect3><sect3>
<title>Sophisticated example</title>
<para>Following lines show a more sophisticated but still stateless filter setup as an example. Happy netfilter6 ruleset creation.... </para><screen>
<![CDATA[# ip6tables -n -v -L
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 extIN all sit+ * ::/0 ::/0
4 384 intIN all eth0 * ::/0 ::/0
0 0 ACCEPT all * * ::1/128 ::1/128
0 0 ACCEPT all lo * ::/0 ::/0
0 0 LOG all * * ::/0 ::/0
¬ LOG flags 0 level 7 prefix `INPUT-default:'
0 0 DROP all * * ::/0 ::/0
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
¬
0 0 int2ext all eth0 sit+ ::/0 ::/0
0 0 ext2int all sit+ eth0 ::/0 ::/0
0 0 LOG all * * ::/0 ::/0
¬ LOG flags 0 level 7 prefix `FORWARD-default:'
0 0 DROP all * * ::/0 ::/0
Chain OUTPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
¬
0 0 extOUT all * sit+ ::/0 ::/0
4 384 intOUT all * eth0 ::/0 ::/0
0 0 ACCEPT all * * ::1/128 ::1/128
0 0 ACCEPT all * lo ::/0 ::/0
0 0 LOG all * * ::/0 ::/0
¬ LOG flags 0 level 7 prefix `OUTPUT-default:'
0 0 DROP all * * ::/0 ::/0
Chain ext2int (1 references)
pkts bytes target prot opt in out source destination
<para>It's very recommended to apply all available patches and disable all not necessary services. Also bind services to the needed IPv4/IPv6 addresses only and install local firewalling.</para>
<para>More to be filled...</para></sect1><sect1>
<title>Access limitations</title>
<para>Many services uses the tcp_wrapper library for access control. Below is described the <link linkend="hints-daemons-tcpwrapper">use of tcp_wrapper</link>.</para>
<para>More to be filled...</para></sect1><sect1 id='IPv6-security-auditing' >
<para>Currently there are no comfortable tools out which are able to check a system over network for IPv6 security issues. Neither <ulink url="http://www.nessus.org/">Nessus</ulink> nor any commercial security scanner is as far as I know able to scan IPv6 addresses.</para><sect2>
<title>Legal issues</title>
<para>ATTENTION: always take care that you only scan your own systems or after receiving a written order, otherwise legal issues are able to come up to you.
CHECK destination IPv6 addresses TWICE before starting a scan.</para></sect2><sect2>
<title>Security auditing using IPv6-enabled netcat</title>
<para>With the IPv6-enabled netcat (see <ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-apps.html#security-auditing">IPv6+Linux-status-apps/security-auditing</ulink> for more) you can run a portscan by wrapping a script around which run through a port range, grab banners and so on. Usage example:</para><screen>
<![CDATA[# nc6 ::1 daytime
13 JUL 2002 11:22:22 CEST
]]></screen></sect2><sect2>
<title>Security auditing using IPv6-enabled nmap</title>
<para><ulink url="http://www.insecure.org/nmap/">NMap</ulink>, one of the best portscaner around the world, supports IPv6 since version 3.10ALPHA1. Usage example:</para><screen>
<![CDATA[# nmap -6 -sT ::1
Starting nmap V. 3.10ALPHA3 ( www.insecure.org/nmap/ )
Interesting ports on localhost6 (::1):
(The 1600 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
53/tcp open domain
515/tcp open printer
2401/tcp open cvspserver
Nmap run completed -- 1 IP address (1 host up) scanned in 0.525 seconds
]]></screen></sect2><sect2>
<title>Security auditing using IPv6-enabled strobe</title>
<para>Strobe is a (compared to NMap) more a low budget portscanner, but there is an IPv6-enabling patch available (see <ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-apps.html#security-auditing">IPv6+Linux-status-apps/security-auditing</ulink> for more). Usage example:</para><screen>
]]></screen><para>Note: strobe isn't really developed further on, the shown version number isn't the right one.</para></sect2><sect2>
<title>Audit results</title>
<para>If the result of an audit mismatch your IPv6 security policy, use IPv6 firewalling to close the holes, e.g. using netfilter6 (see <link linkend="firewalling-netfilter6.">Firewalling/Netfilter6</link> for more).</para>
<para>Info: More detailed information concerning IPv6 Security can be found here: </para><itemizedlist>
<title><!-- anchor id="chapter-encryption-authentication" -->Encryption and Authentication</title>
<para>Unlike in IPv4, encryption and authentication is a mandatory feature of IPv6. Those features are normally implemented using IPsec (which can be also used by IPv4).</para><sect1>
<title>Modes of using encryption and authentication</title>
<para>Two modes of encryption and authentication of a connection are possible:</para><sect2>
<title>Transport mode</title>
<para>Transport mode is a real end-to-end connection mode. Here, only the payload (usually ICMP, TCP or UDP) is encrypted with their particular header, while the IP header is not encrypted (but usually included in authentication).</para>
<para>Using AES-128 for encryption and SHA1 for authentication, this mode decreases the MTU by 42 octets.</para></sect2><sect2>
<title>Tunnel mode</title>
<para>Tunnel mode can be used either for end-to-end or for gateway-to-gateway connection modes. Here, the complete IP packet is being encrypted and gets a new IP header prepended, all together constituing a new IP packet (this mechanism is also known as "encapsulation")</para>
<para>This mode usually decreases the MTU by 40 octets from the MTU of transport mode. I.e. using AES-128 for encryption and SHA1 for authentication 82 octets less than the normal MTU.</para></sect2></sect1><sect1>
<title>Support in kernel (ESP and AH)</title>
<sect2>
<title>Support in vanilla Linux kernel 2.4.x</title>
<para>At the time of writing missing in vanilla up to 2.4.28. There was an issue about keeping the Linux kernel source free of export/import-control-laws regarding encryption code. This is also one case why <ulink url="http://www.freeswan.org/">FreeS/WAN project</ulink> wasn't included in vanilla source. Perhaps a backport from 2.6.x will be done in the future.</para></sect2><sect2>
<title>Support in vanilla Linux kernel 2.6.x</title>
<para>Current versions (as time of writing 2.6.9 and upper) support native IPsec for IPv4 and IPv6.</para>
<para>Implementation was helped by the USAGI project.</para></sect2></sect1><sect1>
<title>Automatic key exchange (IKE)</title>
<para>IPsec requires a key exchange of a secret. This is mostly done automatically by so called IKE daemons. They also handle the authentication of the peers, either by a common known secret (so called “pre-shared secret”) or by RSA keys (which can also be used from X.509 certificates).</para>
<para>Currently, two different IKE daemons are available for Linux, which totally differ in configuration and usage.</para>
<para>I prefer “pluto” from the *S/WAN implementation because of the easier and one-config-only setup.</para><sect2>
<title>IKE daemon “racoon”</title>
<para>The IKE daemon “racoon” is taken from the KAME project and ported to Linux. Modern Linux distributions contain this daemon in the package “ipsec-tools”. Two executables are required for a proper IPsec setup. Take a look on <ulink url="http://lartc.org/howto/lartc.ipsec.html">Linux Advanced Routing & Traffic Control HOWTO / IPSEC</ulink>, too.</para><sect3>
<title>Manipulation of the IPsec SA/SP database with the tool “setkey”</title>
<para>“setkey” is important to define the security policy (SP) for the kernel.</para>
]]></screen><para>For the other peer, you have to replace “in” with “out”.</para></sect3><sect3>
<title>Configuration of the IKE daemon “racoon”</title>
<para>“racoon” requires a configuration file for proper execution. It includes the related settings to the security policy, which should be set up previously using “setkey”.</para>
# See 'man racoon.conf' for a description of the format and entries.
path include "/etc/racoon";
path pre_shared_key "/etc/racoon/psk.txt";
listen
{
isakmp 2001:db8:1:1::1;
}
remote 2001:db8:2:2::2
{
exchange_mode main;
lifetime time 24 hour;
proposal
{
encryption_algorithm 3des;
hash_algorithm md5;
authentication_method pre_shared_key;
dh_group 2;
}
}
# gateway-to-gateway
sainfo address 2001:db8:1:1::1 any address 2001:db8:2:2::2 any
{
lifetime time 1 hour;
encryption_algorithm 3des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
}
sainfo address 2001:db8:2:2::2 any address 2001:db8:1:1::1 any
{
lifetime time 1 hour;
encryption_algorithm 3des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
}
]]></screen><para>Also set up the pre-shared secret:</para>
<para>File: /etc/racoon/psk.txt</para><screen>
<![CDATA[# file for pre-shared keys used for IKE authentication
# format is: 'identifier' 'key'
2001:db8:2:2::2 verysecret
]]></screen></sect3><sect3>
<title>Running IPsec with IKE daemon “racoon”</title>
<para>At least the daemon needs to be started. For the first time, use debug and foreground mode. The following example shows a successful IKE phase 1 (ISAKMP-SA) and 2 (IPsec-SA) negotiation:</para><screen>
]]></screen><para>Each direction got its own IPsec-SA (like defined in the IPsec standard). With “tcpdump” on the related interface, you will see as result of an IPv6 ping:</para><screen>
created: Jan 1 20:31:10 2005 current: Jan 1 20:40:47 2005
diff: 577(s) hard: 3600(s) soft: 2880(s)
last: Jan 1 20:35:05 2005 hard: 0(s) soft: 0(s)
current: 312(bytes) hard: 0(bytes) soft: 0(bytes)
allocated: 3 hard: 0 soft: 0
sadb_seq=0 pid=22358 refcnt=0
]]></screen></sect3></sect2><sect2>
<title>IKE daemon “pluto”</title>
<para>The IKE daemon “pluto” is included in distributions of the *S/WAN projects. *S/WAN project starts at the beginning as <ulink url="http://www.freeswan.org/">FreeS/WAN</ulink>. Unfortunately, the FreeS/WAN project stopped further development in 2004. Because of the slow pace of development in the past, two spin-offs started: <ulink url="http://www.strongswan.org/">strongSwan</ulink> and <ulink url="http://www.openswan.org/">Openswan</ulink>. Today, readily installable packages are available for at least Openswan (included in Fedora Core 3).</para>
<para>A major difference to “racoon”, only one configuration file is required. Also, an initscript exists for automatic setup after booting.</para><sect3>
<title>Configuration of the IKE daemon “pluto”</title>
<para>The configuration is very similar to the IPv4 one, only one important option is necessary.</para>
<title>Running IPsec with IKE daemon “pluto”</title>
<para>If installation of Openswan was successfully, an initscript should exist for starting IPsec, simply run (on each peer):</para><screen>
<![CDATA[# /etc/rc.d/init.d/ipsec start
]]></screen><para>Afterwards, start this connection on one peer. If you saw the line “IPsec SA established”, all worked fine.</para><screen>
<![CDATA[# ipsec auto --up ipv6-peer1-peer2
104 "ipv6-p1-p2" #1: STATE_MAIN_I1: initiate
106 "ipv6-p1-p2" #1: STATE_MAIN_I2: sent MI2, expecting MR2
108 "ipv6-p1-p2" #1: STATE_MAIN_I3: sent MI3, expecting MR3
004 "ipv6-p1-p2" #1: STATE_MAIN_I4: ISAKMP SA established
112 "ipv6-p1-p2" #2: STATE_QUICK_I1: initiate
004 "ipv6-p1-p2" #2: STATE_QUICK_I2: sent QI2,
¬ IPsec SA established {ESP=>0xa98b7710 <0xa51e1f22}
]]></screen><para>Because *S/WAN and setkey/racoon do use the same IPsec implementation in Linux 2.6.x kernel, “setkey” can be used here too to show current active parameters:</para><screen>
<para>Proper working QoS is only possible on the outgoing interface of a router or host, where the bottleneck begins. Everything else is a hickup and not subject to work as expected or has a successful result.</para><screen>
<para>Linux is using “tc” from the “iproute2” package to configure traffic shaping, generally described in the <ulink url="http://lartc.org/">Linux Advanced Routing & Traffic Control HOWTO</ulink>.</para><sect2>
<title>Example for a constant bitrate queuing</title>
<para>With the “cbq” scheduler, pipes with constant bit rates can be defined.</para><sect3>
<title>Root qdisc definition</title>
<para>Define root qdisc with a bandwidth of 1000 MBit/s on eth1</para><screen>
<para>Define a class 1:1 with 1 MBit/s</para><screen>
<![CDATA[# tc class add dev eth1 parent 1: classid 1:1 cbq rate 1Mbit allot 1500 bounded
]]></screen><para>Define a class 1:2 with 50 MBit/s</para><screen>
<![CDATA[# tc class add dev eth1 parent 1: classid 1:2 cbq rate 50Mbit allot 1500 bounded
]]></screen><para>Define a class 1:3 with 10 MBit/s</para><screen>
<![CDATA[# tc class add dev eth1 parent 1: classid 1:3 cbq rate 10Mbit allot 1500 bounded
]]></screen><para>Define a class 1:4 with 200 kBit/s</para><screen>
<![CDATA[# tc class add dev eth1 parent 1: classid 1:4 cbq rate 200kbit allot 1500 bounded
]]></screen></sect3><sect3>
<title>QoS filter definition</title>
<para>Define a filter for IPv4 (<emphasis>protocol ip</emphasis>), TCP (<emphasis>match ip protocol 6 0xff</emphasis>) destination port 5001 (<emphasis>match ip dport 5001 0xffff</emphasis>) using class 1:2 from above</para><screen>
<![CDATA[# tc filter add dev eth1 parent 1: protocol ip u32 match ip protocol 6 0xff match ip dport 5001 0xffff flowid 1:1
]]></screen><para>Define a filter for IPv6 (<emphasis>protocol ip</emphasis>), TCP (<emphasis>match ip6 protocol 6 0xff</emphasis>) destination port 5001 using class 1:2 from above</para><screen>
<![CDATA[# tc filter add dev eth1 parent 1: protocol ipv6 u32 match ip6 protocol 6 0xff match ip6 dport 5001 0xffff flowid 1:2
]]></screen><para>Define a filter for IPv6 for packets having flow label 12345 (<emphasis>match ip6 flowlabel 12345 0x3ffff</emphasis>) using class 1:3 from above</para><screen>
<![CDATA[# tc filter add dev eth1 parent 1: protocol ipv6 u32 match ip6 flowlabel 12345 0x3ffff flowid 1:3
]]></screen><para>Define a filter for IPv6 for packets having Linux iptables mark 32 (<emphasis>handle 32 fw</emphasis>) specified using class 1:4 from above</para><screen>
]]></screen><para>The rate result should be as defined in the classes (see above), the results on port 5002 should be very similar independend from used IP version.</para></sect3></sect2></sect1></chapter><chapter id='chapter-hints-daemons' >
<title><!-- anchor id="chapter-hints-daemons" -->Hints for IPv6-enabled daemons</title>
<para>Here some hints are shown for IPv6-enabled daemons.</para><sect1 id='hints-daemons-bind' >
<title><!-- anchor id="hints-daemons-bind" -->Berkeley Internet Name Domain (BIND) daemon “named”</title>
<para>IPv6 is supported since version 9. Always use newest available version. At least version 9.1.3 must be used, older versions can contain remote exploitable security holes.</para><sect2>
<title>Listening on IPv6 addresses</title>
<para>Note: unlike in IPv4 current versions doesn't allow to bind a server socket to dedicated IPv6 addresses, so only <emphasis>any</emphasis> or <emphasis>none</emphasis> are valid. Because this can be a security issue, check the Access Control List (ACL) section below, too!</para><sect3>
<title>Enable BIND named for listening on IPv6 address</title>
<para>To enable IPv6 for listening, following options are requested to change</para><screen>
<![CDATA[options {
# sure other options here, too
listen-on-v6 { any; };
};
]]></screen><para>This should result after restart in e.g.</para><screen>
<![CDATA[# netstat -lnptu |grep "named\W*$"
tcp 0 0 :::53 :::* LISTEN 1234/named
¬ # incoming TCP requests
udp 0 0 1.2.3.4:53 0.0.0.0:* 1234/named
¬ # incoming UDP requests to IPv4 1.2.3.4
udp 0 0 127.0.0.1:53 0.0.0.0:* 1234/named
¬ # incoming UDP requests to IPv4 localhost
udp 0 0 0.0.0.0:32868 0.0.0.0:* 1234/named
¬ # dynamic chosen port for outgoing queries
udp 0 0 :::53 :::* 1234/named
¬ # incoming UDP request to any IPv6
]]></screen><para>And a simple test looks like</para><screen>
<![CDATA[# dig localhost @::1
]]></screen><para>and should show you a result.</para></sect3><sect3>
<title>Disable BIND named for listening on IPv6 address</title>
<para>To disable IPv6 for listening, following options are requested to change</para><screen>
<![CDATA[options {
# sure other options here, too
listen-on-v6 { none; };
};
]]></screen></sect3></sect2><sect2>
<title>IPv6 enabled Access Control Lists (ACL)</title>
<para>IPv6 enabled ACLs are possible and should be used whenever it's possible. An example looks like following:</para><screen>
<![CDATA[acl internal-net {
127.0.0.1;
1.2.3.0/24;
2001:0db8:100::/56;
::1/128;
::ffff:1.2.3.4/128;
};
acl ns-internal-net {
1.2.3.4;
1.2.3.5;
2001:0db8:100::4/128;
2001:0db8:100::5/128;
};
]]></screen><para>This ACLs can be used e.g. for queries of clients and transfer zones to secondary name-servers. This prevents also your caching name-server to be used from outside using IPv6.</para><screen>
<![CDATA[options {
# sure other options here, too
listen-on-v6 { none; };
allow-query { internal-net; };
allow-transfer { ns-internal-net; };
};
]]></screen><para>It's also possible to set the <emphasis>allow-query </emphasis>and <emphasis>allow-transfer</emphasis> option for most of single zone definitions, too.</para></sect2><sect2>
<title>Sending queries with dedicated IPv6 address</title>
<para>This option is not required, but perhaps needed:</para><screen>
<![CDATA[query-source-v6 address <ipv6address|*> port <port|*>;
]]></screen></sect2><sect2>
<title>Per zone defined dedicated IPv6 addresses</title>
<para>It's also possible to define per zone some IPv6 addresses.</para><sect3>
<title>Transfer source address </title>
<para>Transfer source address is used for outgoing zone transfers:</para><screen>
<para>Some information can be also found at <ulink url="http://www.isi.edu/~bmanning/v6DNS.html">IPv6 DNS Setup Information (article)</ulink>. Perhaps also helpful is the <ulink url="http://tools.fpsn.net/ipv6-inaddr/">IPv6 Reverse DNS zone builder for BIND 8/9 (webtool)</ulink>.</para></sect2><sect2>
<title>Serving IPv6 related DNS data</title>
<para>For IPv6 new types and root zones for reverse lookups are defined:</para><itemizedlist>
<listitem><para>AAAA and reverse IP6.INT: specified in <ulink url="http://www.faqs.org/rfcs/rfc1886.html">RFC 1886 / DNS Extensions to support IP version 6</ulink>, usable since BIND version 4.9.6</para></listitem><listitem><para>A6, DNAME (DEPRECATED NOW!) and reverse IP6.ARPA: specified in <ulink url="http://www.faqs.org/rfcs/rfc2874.html">RFC 2874 / DNS Extensions to Support IPv6 Address Aggregation and Renumbering</ulink>, usable since BIND 9, but see also an information about the current state at <ulink url="http://www.ietf.org/ids.by.wg/dnsext.html">Domain Name System Extension (dnsext)</ulink></para></listitem></itemizedlist><para>Perhaps filled later more content, for the meantime take a look at given RFCs and</para><itemizedlist>
<listitem><para>AAAA and reverse IP6.INT: <ulink url="http://www.isi.edu/~bmanning/v6DNS.html">IPv6 DNS Setup Information</ulink></para></listitem><listitem><para>A6, DNAME (DEPRECATED NOW!) and reverse IP6.ARPA: take a look into chapter 4 and 6 of the BIND 9 Administrator Reference Manual (ARM) distributed with the bind-package or get this here: <ulink url="http://www.isc.org/sw/bind/arm93/">BIND manual version 9.3</ulink></para></listitem></itemizedlist><para>Because IP6.INT is deprecated (but still in use), a DNS server which will support IPv6 information has to serve both reverse zones.</para><sect3>
<title>Current best practice</title>
<para>Because there are some troubles around using the new formats, current best practice is:</para>
<listitem><para>Reverse nibble format for zone ip6.int (FOR BACKWARD COMPATIBILITY)</para></listitem><listitem><para>Reverse nibble format for zone ip6.arpa (RECOMMENDED)</para></listitem></itemizedlist></sect3></sect2><sect2>
<title>Checking IPv6-enabled connect</title>
<para>To check, whether BIND named is listening on an IPv6 socket and serving data see following examples.</para><sect3>
<title>IPv6 connect, but denied by ACL</title>
<para>Specifying a dedicated server for the query, an IPv6 connect can be forced:</para><screen>
]]></screen><para>Related log entry looks like following:</para><screen>
<![CDATA[Jan 3 12:43:32 gate named[12347]: client
¬ 2001:0db8:200:f101:212:34ff:fe12:3456#32770:
query denied
]]></screen><para>If you see such entries in the log, check whether requests from this client should be allowed and perhaps review your ACL configuration.</para></sect3><sect3>
<title>Successful IPv6 connect</title>
<para>A successful IPv6 connect looks like following:</para><screen>
<title><!-- anchor id="hints-daemons-xinetd" -->Internet super daemon (xinetd)</title>
<para>IPv6 is supported since <ulink url="http://www.xinetd.org/">xinetd</ulink> version around 1.8.9. Always use newest available version. At least version 2.3.3 must be used, older versions can contain remote exploitable security holes.</para>
<para>Some Linux distribution contain an extra package for the IPv6 enabled xinetd, some others start the IPv6-enabled xinetd if following variable is set: NETWORKING_IPV6="yes", mostly done by /etc/sysconfig/network (only valid for Red Hat like distributions). In newer releases, one binary supports IPv4 and IPv6.</para>
<para>If you enable a built-in service like e.g. daytime by modifying the configuration file in /etc/xinetd.d/daytime like</para><screen>
]]></screen><para>Shown example also displays an IMAP and IMAP-SSL IPv4-only listening xinetd.</para>
<para>Note: earlier versions had a problem that an IPv4-only xinetd won't start on an IPv6-enabled node and also the IPv6-enabled xinetd won't start on an IPv4-only node. This is known to be fixed in later versions, at least version 2.3.11.</para></sect1><sect1 id='hints-daemons-apache2.' >
<para>Apache web server supports IPv6 native by maintainers since 2.0.14. Available patches for the older 1.3.x series are not current and shouldn't be used in public environment, but available at <ulink url="ftp://ftp.kame.net/pub/kame/misc/">KAME / Misc</ulink>.</para><sect2>
<title>Listening on IPv6 addresses</title>
<para>Note: virtual hosts on IPv6 addresses are broken in versions until 2.0.28 (a patch is available for 2.0.28). But always try latest available version first because earlier versions had some security issues.</para><sect3>
<title>Virtual host listen on an IPv6 address only</title>
<screen>
<![CDATA[Listen [2001:0db8:100::1]:80
<VirtualHost [2001:0db8:100::1]:80>
ServerName ipv6only.yourdomain.yourtopleveldomain
# ...sure more config lines
</VirtualHost>
]]></screen></sect3><sect3>
<title>Virtual host listen on an IPv6 and on an IPv4 address</title>
]]></screen><para>For simple tests use the telnet example already shown.</para></sect3><sect3>
<title>Additional notes</title>
<itemizedlist>
<listitem><para>Apache2 supports a method called “sendfile” to speedup serving data. Some NIC drivers also support offline checksumming. In some cases, this can lead to connection problems and invalid TCP checksums. In this cases, disable “sendfile” either by recompiling using configure option “--without-sendfile” or by using the "EnableSendfile off" directive in configuration file.</para></listitem></itemizedlist></sect3></sect2></sect1><sect1 id='hints-daemons-radvd' >
<para>The router advertisement daemon is very useful on a LAN, if clients should be auto-configured. The daemon itself should run on the Linux default IPv6 gateway router (it's not required that this is also the default IPv4 gateway, so pay attention who on your LAN is sending router advertisements). </para>
<para>You can specify some information and flags which should be contained in the advertisement. Common used are</para><itemizedlist>
<listitem><para>Prefix (needed)</para></listitem><listitem><para>Lifetime of the prefix</para></listitem><listitem><para>Frequency of sending advertisements (optional)</para></listitem></itemizedlist><para>After a proper configuration, the daemon sends advertisements through specified interfaces and clients are hopefully receive them and auto-magically configure addresses with received prefix and the default route.</para><sect2>
<title>Configuring radvd</title>
<sect3>
<title>Simple configuration</title>
<para>Radvd's config file is normally /etc/radvd.conf. An simple example looks like following:</para><screen>
<![CDATA[interface eth0 {
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
prefix 2001:0db8:0100:f101::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
]]></screen><para>This results on client side in</para><screen>
<![CDATA[# ip -6 addr show eth0
3: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
inet6 2001:0db8:100:f101:2e0:12ff:fe34:1234/64 scope global dynamic
valid_lft 2591992sec preferred_lft 604792sec
inet6 fe80::2e0:12ff:fe34:1234/10 scope link
]]></screen><para>Because no lifetime was defined, a very high value was used.</para></sect3><sect3>
<title>Special 6to4 configuration</title>
<para>Version since 0.6.2pl3 support the automatic (re)-generation of the prefix depending on an IPv4 address of a specified interface. This can be used to distribute advertisements in a LAN after the 6to4 tunneling has changed. Mostly used behind a dynamic dial-on-demand Linux router. Because of the sure shorter lifetime of such prefix (after each dial-up, another prefix is valid), the lifetime configured to minimal values:</para><screen>
<![CDATA[interface eth0 {
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
prefix 0:0:0:f101::/64 {
AdvOnLink off;
AdvAutonomous on;
AdvRouterAddr on;
Base6to4Interface ppp0;
AdvPreferredLifetime 20;
AdvValidLifetime 30;
};
};
]]></screen><para>This results on client side in (assuming, ppp0 has currently 1.2.3.4 as local IPv4 address):</para><screen>
<![CDATA[# /sbin/ip -6 addr show eth0
3: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
]]></screen><para>Because a small lifetime was defined, such prefix will be thrown away quickly, if no related advertisement was received.</para>
<para>Additional note: if you do not used special 6to4 support in initscripts, you have to setup a special route on the internal interface on the router, otherwise you will get some backrouting problems. for the example showh here:</para><screen>
<![CDATA[# /sbin/ip -6 route add 2002:0102:0304:f101::/64 dev eth0 metric 1
]]></screen><para>This route needs to be replaced every time the prefix changes, which is the case after a new IPv4 address was assigned to the dial-up interface.</para></sect3></sect2><sect2>
<para>A program called “radvdump” can help you looking into sent or received advertisements. Simple to use:</para><screen>
<![CDATA[# radvdump
Router advertisement from fe80::280:c8ff:feb9:cef9 (hoplimit 255)
AdvCurHopLimit: 64
AdvManagedFlag: off
AdvOtherConfigFlag: off
AdvHomeAgentFlag: off
AdvReachableTime: 0
AdvRetransTimer: 0
Prefix 2002:0102:0304:f101::/64
AdvValidLifetime: 30
AdvPreferredLifetime: 20
AdvOnLink: off
AdvAutonomous: on
AdvRouterAddr: on
Prefix 2001:0db8:100:f101::/64
AdvValidLifetime: 2592000
AdvPreferredLifetime: 604800
AdvOnLink: on
AdvAutonomous: on
AdvRouterAddr: on
AdvSourceLLAddress: 00 80 12 34 56 78
]]></screen><para>Output shows you each advertisement package in readable format. You should see your configured values here again, if not, perhaps it's not your radvd which sends the advertisement...look for another router on the link (and take the LLAddress, which is the MAC address for tracing).</para></sect2></sect1><sect1 id='hints-daemons-dhcpv6.' >
<title><!-- anchor id="hints-daemons-dhcpv6." -->Dynamic Host Configuration v6 Server (dhcp6s)</title>
<para>DHCPv6 can be used for stateful configurations. The daemon itself need not necessary run on the Linux default IPv6 gateway router. </para>
<para>You can specify more information than by using radvd. The are most similar to IPv4 DHCP server.</para>
<para>After a proper configuration, the daemon reacts on received ICMPv6 multicast packets sent by a client to address ff02::1:2</para><sect2>
<title>Configuration of the DHCPv6 server (dhcp6s)</title>
<sect3>
<title>Simple configuration</title>
<para>dhcp6s's config file is normally /etc/dhcp6s.conf. An simple example looks like following:</para><screen>
range 2001:db8:0:f101::1000 to 2001:db8:0:f101::ffff/64;
prefix 2001:db8:0:f101::/64;
};
};
]]></screen></sect3></sect2><sect2>
<title>Configuration of the DHCPv6 client (dhcp6c)</title>
<sect3>
<title>Simple configuration</title>
<para>dhcp6c's config file is normally /etc/dhcp6c.conf. An simple example looks like following:</para><screen>
<![CDATA[interface eth0 {
send rapid-commit;
request domain-name-servers;
};
]]></screen></sect3></sect2><sect2>
<title>Usage</title>
<sect3>
<title>dhcpv6_server</title>
<para>Start server, e.g.</para><screen>
<![CDATA[# service dhcp6s start
]]></screen></sect3><sect3>
<title>dhcpv6_client</title>
<para>Start client in foreground, e.g.</para><screen>
<![CDATA[# dhcp6c -f eth0
]]></screen></sect3></sect2><sect2>
<title>Debugging</title>
<sect3>
<title>dhcpv6_server</title>
<para>The server has one foreground and two debug toggles (both should be used for debugging), here is an example:</para><screen>
<![CDATA[# dhcp6s -d -D -f eth0
]]></screen></sect3><sect3>
<title>dhcpv6_client</title>
<para>As general debugging for test whether the IPv6 DHCP server is reable on the link use an IPv6 ping to the DHCP multicast address:</para><screen>
<![CDATA[# ping6 -I eth0 ff02::1:2
]]></screen><para>The client has one foreground and two debug toggles, here is an example:</para><screen>
<![CDATA[# dhcp6c -d -f eth0
Oct/03/2005 17:18:16 dhcpv6 doesn't support hardware type 776
Oct/03/2005 17:18:16 doesn't support sit0 address family 0
Oct/03/2005 17:18:16 netlink_recv_rtgenmsg error
Oct/03/2005 17:18:16 netlink_recv_rtgenmsg error
Oct/03/2005 17:18:17 status code for this address is: success
Oct/03/2005 17:18:17 status code: success
Oct/03/2005 17:18:17 netlink_recv_rtgenmsg error
Oct/03/2005 17:18:17 netlink_recv_rtgenmsg error
Oct/03/2005 17:18:17 assigned address 2001:db8:0:f101::1002 prefix len is not
¬ in any RAs prefix length using 64 bit instead
Oct/03/2005 17:18:17 renew time 60, rebind time 9
]]></screen><para>Note that the netlink error messages have no impact.</para></sect3></sect2></sect1><sect1 id='hints-daemons-isc-dhcp' >
<title><!-- anchor id="hints-daemons-isc-dhcp" -->ISC Dynamic Host Configuration Server (dhcpd)</title>
<para>ISC DHCP supports IPv6 since version 4.x.</para><sect2>
<title>Configuration of the ISC DHCP server for IPv6 (dhcpd)</title>
<para>Note that currently, the ISC DHCP server can only serve IPv4 or IPv6, means you have to start the daemon twice (for IPv6 with option “-6”) to support both protocols.</para><sect3>
<title>Simple configuration</title>
<para>Create a dedicated configuration file /etc/dhcp/dhcpd6.conf for the IPv6 part of the dhcpd. Note, that the router requires to have a interface configured with an IPv6 address out of the defined subnet.</para><screen>
]]></screen><para>Note that the “dhcp.client-id” no longer belongs to a MAC address, an unique ID is used instead! “dhcp6c” (see above) uses the file /var/lib/dhcpv6/dhcp6c_duid (would be created during first start, if not existing) as unique identity. It's a 14 byte long identifier, starting with a 2 byte length information (usually “0x000e”):</para><screen>
<title><!-- anchor id="hints-daemons-dibbler" -->DHCP Server Dibbler</title>
<para>Dibbler is also a DHCP server</para><sect2>
<title>Configuration of the Dibbler DHCP server for IPv6</title>
<sect3>
<title>Simple configuration</title>
<para>Create a dedicated configuration file /etc/dibbler/server.conf . Note, that the router requires to have a interface configured with an IPv6 address out of the defined subnet.</para><screen>
<![CDATA[log-level 8
log-mode short
preference 0
iface "eth1" {
// also ranges can be defines, instead of exact values t1 1800-2000 t2 2700-3000
prefered-lifetime 3600
valid-lifetime 7200
class {
pool 2001:6f8:12d8:1::/64
}
option dns-server fec0:0:0:1::1
option domain domain.example
}
]]></screen></sect3></sect2><sect2>
<title>Usage</title>
<sect3>
<title>dibbler-server</title>
<para>Start server in foreground:</para><screen>
<![CDATA[# dibbler-server run
| Dibbler - a portable DHCPv6, version 0.7.3 (SERVER, Linux port)
| Authors : Tomasz Mrugalski<thomson(at)klub.com.pl>,Marek Senderski<msend(at)o2.pl>
| Licence : GNU GPL v2 only. Developed at Gdansk University of Technology.
| Homepage: http://klub.com.pl/dhcpv6/
2009.05.28 10:18:48 Server Notice My pid (1789) is stored in /var/lib/dibbler/server.pid
2009.05.28 10:18:48 Server Notice Detected iface eth0/3, MAC=54:52:00:01:23:45.
2009.05.28 10:18:48 Server Notice Detected iface eth1/2, MAC=54:52:00:67:89:ab.
2009.05.28 10:18:48 Server Notice Detected iface lo/1, MAC=00:00:00:00:00:00.
2009.05.28 10:18:48 Server Debug Skipping database loading.
<para>tcp_wrapper is a library which can help you to protect service against misuse.</para><sect2>
<title>Filtering capabilities</title>
<para>You can use tcp_wrapper for</para><itemizedlist>
<listitem><para>Filtering against source addresses (IPv4 or IPv6)</para></listitem><listitem><para>Filtering against users (requires a running ident daemon on the client)</para></listitem></itemizedlist></sect2><sect2>
<title>Which program uses tcp_wrapper</title>
<para>Following are known:</para><itemizedlist>
<listitem><para>Each service which is called by xinetd (if xinetd is compiled using tcp_wrapper library)</para></listitem><listitem><para>sshd (if compiled using tcp_wrapper)</para></listitem></itemizedlist></sect2><sect2>
<title>Usage</title>
<para>tcp_wrapper is controlled by two files name /etc/hosts.allow and /etc/hosts.deny. For more information see</para><screen>
<![CDATA[$ man hosts.allow
]]></screen><sect3>
<title>Example for /etc/hosts.allow</title>
<para>In this file, each service which should be positive filtered (means connects are accepted) need a line.</para><screen>
<![CDATA[sshd: 1.2.3. [2001:0db8:100:200::]/64
daytime-stream: 1.2.3. [2001:0db8:100:200::]/64
]]></screen><para>Note: there are broken implementations around, which uses following broken IPv6 network description: [2001:0db8:100:200::/64]. Hopefully, such versions will be fixed soon.</para></sect3><sect3>
<title>Example for /etc/hosts.deny</title>
<para>This file contains all negative filter entries and should normally deny the rest using</para><screen>
<![CDATA[ALL: ALL
]]></screen><para>If this node is a more sensible one you can replace the standard line above with this one, but this can cause a DoS attack (load of mailer and spool directory), if too many connects were made in short time. Perhaps a logwatch is better for such issues.</para><screen>
<![CDATA[ALL: ALL: spawn (echo "Attempt from %h %a to %d at `date`"
| tee -a /var/log/tcp.deny.log | mail root@localhost)
]]></screen></sect3></sect2><sect2>
<title>Logging</title>
<para>Depending on the entry in the syslog daemon configuration file /etc/syslog.conf the tcp_wrapper logs normally into /var/log/secure.</para><sect3>
<title>Refused connection</title>
<para>A refused connection via IPv4 to an xinetd covered daytime service produces a line like following example</para><screen>
<para>Nowadays it's mostly simple, look for either a command line option or a configuration value to enable IPv6 listening. See manual page of the daemon or check related FAQs. It can happen that you can bind a daemon only to the IPv6-“any”-address (::) and not to bind to a dedicated IPv6 address, because the lack of support (depends on that what the programmer has implemented so far...).</para></sect1></chapter><chapter id='chapter-programming' >
<title><!-- anchor id="chapter-section-using-API" --><!-- anchor id="chapter-programming-using-API" -->Programming using C-API</title>
<para>Related RFCs:</para><itemizedlist>
<listitem><para><ulink url="http://www.faqs.org/rfcs/rfc3493.html">RFC 3493 / Basic Socket Interface Extensions for IPv6</ulink></para></listitem><listitem><para><ulink url="http://www.faqs.org/rfcs/rfc3542.html">RFC 3542 / Advanced Sockets Application Program Interface (API) for IPv6</ulink></para></listitem></itemizedlist><para>Following contents of this section is contributed by John Wenker, Sr. Software Engineer Performance Technologies San Diego, CA USA <ulink url="http://www.pt.com/">http://www.pt.com/</ulink>.</para>
<para>
</para>
<para>This section describes how to write IPv6 client-server applications under the Linux operating system. First thing's first, and credit must be given where it is due. The information contained in this section is derived from Chapters 2 through 4 of IPv6 Network Programming by Jun-ichiro itojun Hagino (ISBN 1-55558-318-0). The reader is encouraged to consult that book for more detailed information. It describes how to convert IPv4 applications to be IPv6 compatible in a protocol-independent way, and describes some of the common problems encountered during the conversion along with suggested solutions. At the time of this writing, this is the only book of which the author is aware that specifically addresses how to program IPv6 applications [since writing this section, the author has also become aware of the Porting applications to IPv6 HowTo by Eva M. Castro at <ulink url="http://jungla.dit.upm.es/~ecastro/IPv6-web/ipv6.html">http://jungla.dit.upm.es/~ecastro/IPv6-web/ipv6.html</ulink>]. Unfortunately, of the almost 360 pages in the book, maybe 60 are actually useful (the chapters mentioned). Nevertheless, without the guidance of that book, the author would have been unable to perform his job duties or compose this HowTo. While most (but certainly not all) of the information in the Hagino book is available via the Linux 'man' pages, application programmers will save a significant amount of time and frustration by reading the indicated chapters of the book rather than searching through the 'man' pages and online documentation.</para>
<para>Other than the Hagino book, any other information presented in this HowTo was obtained through trial and error. Some items or explanations may not be entirely “correct” in the grand IPv6 scheme, but seem to work in practical application.</para>
<para>The discussion that follows assumes the reader is already experienced with the traditional TCP/IP socket API. For more information on traditional socket programming, the Internetworking with TCP/IP series of textbooks by Comer & Stevens is hard to beat, specifically Volume III: Client-Server Programming and Applications, Linux/POSIX Sockets Version (ISBN 0-13-032071-4). This HowTo also assumes that the reader has had at least a bare basic introduction to IPv6 and in particular the addressing scheme for network addresses (see Section 2.3).</para><sect2>
<title>Address Structures</title>
<para>This section provides a brief overview of the structures provided in the socket API to represent network addresses (or more specifically transport endpoints) when using the Internet protocols in a client-server application.</para><sect3>
<title>IPv4 sockaddr_in</title>
<para>In IPv4, network addresses are 32 bits long and define a network node. Addresses are written in dotted decimal notation, such as 192.0.2.1, where each number represents eight bits of the address. Such an IPv4 address is represented by the struct sockaddr_in data type, which is defined in <netinet/in.h>.</para><screen>
<![CDATA[struct sockaddr_in
{
sa_family_t sin_family;
in_port_t sin_port;
struct in_addr sin_addr;
/* Plus some padding for alignment */
};
]]></screen><para>The sin_family component indicates the address family. For IPv4 addresses, this is always set to AF_INET. The sin_addr field contains the 32-bit network address (in network byte order). Finally, the sin_port component represents the transport layer port number (in network byte order). Readers should already be familiar with this structure, as this is the standard IPv4 address structure.</para></sect3><sect3>
<title>IPv6 sockaddr_in6</title>
<para>The biggest feature of IPv6 is its increased address space. Instead of 32-bit network addresses, IPv6 allots 128 bits to an address. Addresses are written in colon-hex notation of the form fe80::2c0:8cff:fe01:2345, where each hex number separated by colons represents 16 bits of the address. Two consecutive colons indicate a string of consecutive zeros for brevity, and at most only one double-colon may appear in the address. IPv6 addresses are represented by the struct sockaddr_in6 data type, also defined in <netinet/in.h>.</para><screen>
<![CDATA[struct sockaddr_in6
{
sa_family_t sin6_family;
in_port_t sin6_port;
uint32_t sin6_flowinfo;
struct in6_addr sin6_addr;
uint32_t sin6_scope_id;
};
]]></screen><para>The sin6_family, sin6_port, and sin6_addr components of the structure have the same meaning as the corresponding fields in the sockaddr_in structure. However, the sin6_family member is set to AF_INET6 for IPv6 addresses, and the sin6_addr field holds a 128-bit address instead of only 32 bits.</para>
<para>The sin6_flowinfo field is used for flow control, but is not yet standardized and can be ignored.</para>
<para>The sin6_scope_id field has an odd use, and it seems (at least to this naïve author) that the IPv6 designers took a huge step backwards when devising this. Apparently, 128-bit IPv6 network addresses are not unique. For example, it is possible to have two hosts, on separate networks, with the same link-local address (see Figure 1). In order to pass information to a specific host, more than just the network address is required; the scope identifier must also be specified. In Linux, the network interface name is used for the scope identifier (e.g. “eth0”) [be warned that the scope identifier is implementation dependent!]. Use the ifconfig(1M) command to display a list of active network interfaces.</para>
<para>A colon-hex network address can be augmented with the scope identifier to produce a "scoped address”. The percent sign ('%') is used to delimit the network address from the scope identifier. For example, fe80::1%eth0 is a scoped IPv6 address where fe80::1 represents the 128-bit network address and eth0 is the network interface (i.e. the scope identifier). Thus, if a host resides on two networks, such as Host B in example below, the user now has to know which path to take in order to get to a particular host. In Figure 1, Host B addresses Host A using the scoped address fe80::1%eth0, while Host C is addressed with fe80::1%eth1.</para><screen>
<![CDATA[Host A (fe80::1) ---- eth0 ---- Host B ---- eth1 ---- Host C (fe80::1)
]]></screen><para>Getting back to the sockaddr_in6 structure, its sin6_scope_id field contains the index of the network interface on which a host may be found. Server applications will have this field set automatically by the socket API when they accept a connection or receive a datagram. For client applications, if a scoped address is passed as the node parameter to getaddrinfo(3) (described later in this HowTo), then the sin6_scope_id field will be filled in correctly by the system upon return from the function; if a scoped address is not supplied, then the sin6_scope_id field must be explicitly set by the client software prior to attempting to communicate with the remote server. The if_nametoindex(3) function is used to translate a network interface name into its corresponding index. It is declared in <net/if.h>.</para></sect3><sect3>
<para>As any programmer familiar with the traditional TCP/IP socket API knows, several socket functions deal with "generic" pointers. For example, a pointer to a generic struct sockaddr data type is passed as a parameter to some socket functions (such as connect(2) or bind(2)) rather than a pointer to a specific address type. Be careful… the sockaddr_in6 structure is larger than the generic sockaddr structure! Thus, if your program receives a generic address whose actual type is unknown (e.g. it could be an IPv4 address structure or an IPv6 address structure), you must supply sufficient storage to hold the entire address. The struct sockaddr_storage data type is defined in <bits/socket.h> for this purpose [do not #include this file directly within an application; use <sys/socket.h> as usual, and <bits/socket.h> will be implicitly included].</para>
<para>For example, consider the recvfrom(2) system call, which is used to receive a message from a remote peer. Its function prototype is:</para><screen>
<![CDATA[ssize_t recvfrom( int s,
void *buf,
size_t len,
int flags,
struct sockaddr *from,
socklen_t *fromlen );
]]></screen><para>The from parameter points to a generic sockaddr structure. If data can be received from an IPv6 peer on the socket referenced by s, then from should point to a data type of struct sockaddr_storage, as in the following dummy example:</para><screen>
<![CDATA[/*
** Read a message from a remote peer, and return a buffer pointer to
** the caller.
**
** 's' is the file descriptor for the socket.
*/
char *rcvMsg( int s )
{
static char bfr[ 1025 ]; /* Where the msg is stored. */
ssize_t count;
struct sockaddr_storage ss; /* Where the peer adr goes. */
socklen_t sslen;
sslen = sizeof( ss );
count = recvfrom( s,
bfr,
sizeof( bfr ) - 1,
0,
(struct sockaddr*) &ss,
&sslen );
bfr[ count ] = '\0'; /* Null-terminates the message. */
return bfr;
} /* End rcvMsg() */
]]></screen><para>As seen in the above example, ss (a struct sockaddr_storage data object) is used to receive the peer address information, but it's address is typecast to a generic struct sockaddr* pointer in the call to recvfrom(2). </para></sect3></sect2><sect2>
<title>Lookup Functions</title>
<para>Traditionally, hostname and service name resolution were performed by functions such as gethostbyname(3) and getservbyname(3). These traditional lookup functions are still available, but they are not forward compatible to IPv6. Instead, the IPv6 socket API provides new lookup functions that consolidate the functionality of several traditional functions. These new lookup functions are also backward compatible with IPv4, so a programmer can use the same translation algorithm in an application for both the IPv4 and IPv6 protocols. This is an important feature, because obviously a global IPv6 infrastructure isn't going to be put in place overnight. Thus, during the transition period from IPv4 to IPv6, client-server applications should be designed with the flexibility to handle both protocols simultaneously. The example programs at the end of this chapter do just that.</para>
<para>The primary lookup function in the new socket API is getaddrinfo(3). Its prototype is as follows. </para><screen>
<![CDATA[int getaddrinfo( const char *node,
const char *service,
const struct addrinfo *hints,
struct addrinfo **res );
]]></screen><para>The node parameter is a pointer to the hostname or IP address being translated. The referenced string can be a hostname, IPv4 dotted decimal address, or IPv6 colon-hex address (possibly scoped). The service parameter is a pointer to the transport layer's service name or port number. It can be specified as a name found in /etc/services or a decimal number. getaddrinfo(3) resolves the host/service combination and returns a list of address records; a pointer to the list is placed in the location pointed at by res. For example, suppose a host can be identified by both an IPv4 and IPv6 address, and that the indicated service has both a TCP entry and UDP entry in /etc/services. In such a scenario, it is not inconceivable that four address records are returned; one for TCP/IPv6, one for UDP/IPv6, one for TCP/IPv4, and one for UDP/IPv4.</para>
<para>The definition for struct addrinfo is found in <netdb.h> (as is the declaration for getaddrinfo(3) and the other functions described in this section). The structure has the following format:</para><screen>
<![CDATA[struct addrinfo
{
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
socklen_t ai_addrlen;
struct sockaddr *ai_addr;
char *ai_canonname;
struct addrinfo *ai_next;
};
]]></screen><para>Consult the 'man' page for getaddrinfo(3) for detailed information about the various fields; this HowTo only describes a subset of them, and only to the extent necessary for normal IPv6 programming.</para>
<para>The ai_family, ai_socktype, and ai_protocol fields have the exact same meaning as the parameters to the socket(2) system call. The ai_family field indicates the protocol family (not the address family) associated with the record, and will be PF_INET6 for IPv6 or PF_INET for IPv4. The ai_socktype parameter indicates the type of socket to which the record corresponds; SOCK_STREAM for a reliable connection-oriented byte-stream or SOCK_DGRAM for connectionless communication. The ai_protocol field specifies the underlying transport protocol for the record.</para>
<para>The ai_addr field points to a generic struct sockaddr object. Depending on the value in the ai_family field, it will point to either a struct sockaddr_in (PF_INET) or a struct sockaddr_in6 (PF_INET6). The ai_addrlen field contains the size of the object pointed at by the ai_addr field.</para>
<para>As mentioned, getaddrinfo(3) returns a list of address records. The ai_next field points to the next record in the list.</para>
<para>The hints parameter to getaddrinfo(3) is also of type struct addrinfo and acts as a filter for the address records returned in res. If hints is NULL, all matching records are returned; but if hints is non-NULL, the referenced structure gives "hints" to getaddrinfo(3) about which records to return. Only the ai_flags, ai_family, ai_socktype, and ai_protocol fields are significant in the hints structure, and all other fields should be set to zero.</para>
<para>Programs can use hints->ai_family to specify the protocol family. For example, if it is set to PF_INET6, then only IPv6 address records are returned. Likewise, setting hints->ai_family to PF_INET results in only IPv4 address records being returned. If an application wants both IPv4 and IPv6 records, the field should be set to PF_UNSPEC.</para>
<para>The hints->socktype field can be set to SOCK_STREAM to return only records that correspond to connection-oriented byte streams, SOCK_DGRAM to return only records corresponding to connectionless communication, or 0 to return both.</para>
<para>For the Internet protocols, there is only one protocol associated with connection-oriented sockets (TCP) and one protocol associated with connectionless sockets (UDP), so setting hints->ai_socktype to SOCK_STREAM or SOCK_DGRAM is the same as saying, "Give me only TCP records," or "Give me only UDP records," respectively. With that in mind, the hints->ai_protocol field isn't really that important with the Internet protocols, and pretty much mirrors the hints->ai_socktype field. Nevertheless, hints->ai_protocol can be set to IPPROTO_TCP to return only TCP records, IPPROTO_UDP to return only UDP records, or 0 for both.</para>
<para>The node or service parameter to gethostbyname(3) can be NULL, but not both. If node is NULL, then the ai_flags field of the hints parameter specifies how the network address in a returned record is set (i.e. the sin_addr or sin6_addr field of the object pointed at by the ai_addr component in a returned record). If the AI_PASSIVE flag is set in hints, then the returned network addresses are left unresolved (all zeros). This is how server applications would use getaddrinfo(3). If the flag is not set, then the address is set to the local loopback address (::1 for IPv6 or 127.0.0.1 for IPv4). This is one way a client application can specify that the target server is running on the same machine as the client. If the service parameter is NULL, the port number in the returned address records remains unresolved.</para>
<para>The getaddrinfo(3) function returns zero on success, or an error code. In the case of an error, the gai_strerror(3) function is used to obtain a character pointer to an error message corresponding to the error code, just like strerror(3) does in the standard 'C' library.</para>
<para>Once the address list is no longer needed, it must be freed by the application. This is done with the freeaddrinfo(3) function.</para>
<para>The last function that will be mentioned in this section is getnameinfo(3). This function is the inverse of getaddrinfo(3); it is used to create a string representation of the hostname and service from a generic struct sockaddr data object. It has the following prototype. </para><screen>
]]></screen><para>The sa parameter points to the address structure in question, and salen contains its size. The host parameter points to a buffer where the null-terminated hostname string is placed, and the hostlen parameter is the size of that buffer. If there is no hostname that corresponds to the address, then the network address (dotted decimal or colon-hex) is placed in host. Likewise, the serv parameter points to a buffer where the null-terminated service name string (or port number) is placed, and the servlen parameter is the size of that buffer. The flags parameter modifies the function's behavior; in particular, the NI_NUMERICHOST flag indicates that the converted hostname should always be formatted in numeric form (i.e. dotted decimal or colon-hex), and the NI_NUMERICSERV flag indicates that the converted service should always be in numeric form (i.e. the port number).</para>
<para>The symbols NI_MAXHOST and NI_MAXSERV are available to applications and represent the maximum size of any converted hostname or service name, respectively. Use these when declaring output buffers for getnameinfo(3).</para></sect2><sect2>
<title>Quirks Encountered</title>
<para>Before jumping into the programming examples, there are several quirks in IPv6 of which the reader should be aware. The more significant ones (in addition to the non-uniqueness of IPv6 network addresses already discussed) are described in the paragraphs below. </para><sect3>
<title>IPv4 Mapped Addresses</title>
<para>For security reasons that this author won't pretend to understand, "IPv4 mapped addresses" should not be allowed in IPv6-capable server applications. To put it in terms that everyone can understand, this simply means that a server should not accept IPv4 traffic on an IPv6 socket (an otherwise legal operation). An IPv4 mapped address is a mixed-format address of the form:</para><screen>
<![CDATA[::ffff:192.0.2.1
]]></screen><para>where the first portion is in IPv6 colon-hex format and the last portion is in IPv4 dotted decimal notation. The dotted decimal IPv4 address is the actual network address, but it is being mapped into an IPv6 compatible format.</para>
<para>To prevent IPv4 mapped addresses from being accepted on an IPv6 socket, server applications must explicitly set the IPV6_V6ONLY socket option on all IPv6 sockets created [the Hagino book implies that this is only a concern with server applications. However, it has been observed during testing that if a client application uses an IPv4 mapped address to specify the target server, and the target server has IPv4 mapped addresses disabled, the connection still completes regardless. On the server side, the connection endpoint is an IPv4 socket as desired; but on the client side, the connection endpoint is an IPv6 socket. Setting the IPV6_V6ONLY socket option on the client side as well as the server side prevents any connection from being established at all.]. There's only one problem. Apparently, IPV6_V6ONLY isn't defined on all systems [or at least it wasn't in 2005 when the Hagino book was written]. The server example at the end of this chapter provides a method for handling this problem.</para>
<para>If IPv4 traffic cannot be handled on IPv6 sockets, then that implies that server applications must open both an IPv4 and IPv6 socket for a particular network service if it wants to handle requests from either protocol. This goes back to the flexibility issue mentioned earlier. If getaddrinfo(3) returns multiple address records, then server applications should traverse the list and open a passive socket for each address provided. </para></sect3><sect3>
<title>Cannot Specify the Scope Identifier in /etc/hosts</title>
<para>It is possible to assign a hostname to an IPv6 network address in /etc/hosts. For example, the following is an excerpt from the /etc/hosts file on the author's development system. </para><screen>
<![CDATA[ ::1 localhost
127.0.0.1 localhost
fe80::2c0:8cff:fe01:2345 pt141
192.0.2.1 pt141
]]></screen><para>The "localhost" and "pt141" hostnames can be translated to either an IPv4 or IPv6 network address. So, for example, if "pt141" is passed as the node parameter to getaddrinfo(3), the function returns both an IPv4 and IPv6 address record for the host (assuming the behavior hasn't been modified by the hints parameter). Unfortunately, a scoped address cannot be used in /etc/hosts. Doing so results in getaddrinfo(3) returning only the IPv4 record.</para></sect3><sect3>
<title>Client & Server Residing on the Same Machine</title>
<para>Suppose a machine has the IPv4 address 192.0.2.1. A client application running on that machine can connect to a server application on the same machine by using either the local loopback address (127.0.0.1) or the network address (192.0.2.1) as the target server. Much to this author's surprise (and dismay), it turns out that an IPv6 client application cannot connect to a server application on the same machine if it uses the network address of that machine as the target; it must use the local loopback address (::1). </para></sect3></sect2><sect2>
<title>Putting It All Together (A Client-Server Programming Example)</title>
<para>Now it's time to put everything discussed thus far together into a sample client-server application. The remainder of this section is devoted to a remote time-of-day application (the 'daytime' Internet service) [I noticed that Ms. Castro used a 'daytime' example in her <emphasis>Porting applications to IPv6 HowTo</emphasis>. For the record, the source code presented here is original, developed from scratch, and any similarity between it and any other publicly available 'daytime' example is purely coincidental.]. The source code presented in this section was developed and tested on a RedHat Linux release using the 2.6 kernel (2.6.9 to be specific). Readers may use the source code freely, so long as proper credit is attributed; but of course the standard disclaimer must be given first: </para><blockquote>
<para>Although the sample source code is believed to be free of errors, the author makes no guarantees as to its reliability, especially considering that some error paths were intentionally omitted for brevity. Use it at your own risk!</para>
</blockquote><para>When you get right down to it, there really aren't that many differences between IPv4 and IPv6 applications. The trick is to code IPv6 applications in a protocol-independent manner, such that they can handle both IPv4 and IPv6 simultaneously and transparently. This sample application does just that. The only protocol-dependent code in the example occurs when printing network addresses in verbose mode; but only after the ai_family field in the addrinfo structure has been checked, so the programs know exactly what type of address they're handling at the time.</para><sect3>
<title>'Daytime' Server Code</title>
<para>The server code is found in file tod6d.c (time-of-day IPv6 daemon). Once built, the server may be started using the following command syntax (assuming tod6d is the executable file):</para><screen>
<varlistentry><term>service</term><listitem><para>The service (or well-known port) on which to listen. Default is "daytime".</para></listitem></varlistentry></variablelist><para>OPTIONS:</para><variablelist>
<varlistentry><term>-v</term><listitem><para>Turn on verbose mode.</para></listitem></varlistentry></variablelist><para>The server handles both TCP and UDP requests on the network. The server source code contained in tod6d.c follows:</para><screen>
default: /* Can never get here, but for completeness. */
{
fprintf( stderr,
"%s (line %d): ERROR - Unknown address "
"family (%d).\n",
pgmName,
__LINE__,
sadr->sa_family );
break;
} /* End DEFAULT case (unknown address family). */
} /* End SWITCH on address family. */
} /* End IF verbose mode. */
/*
** Send the time-of-day to the client.
*/
wBytes = timeLen;
while ( wBytes > 0 )
{
do
{
count = sendto( desc[ idx ].fd,
timeStr,
wBytes,
0,
sadr, /* Address & address length */
sadrLen ); /* received in recvfrom(). */
} while ( ( count < 0 ) && ( errno == EINTR ) );
CHK( count ); /* Check for a bona fide error. */
wBytes -= count;
} /* End WHILE there is data to send. */
} /* End ELSE a UDP datagram is available. */
desc[ idx ].revents = 0; /* Clear the returned poll events. */
} /* End FOR each socket descriptor. */
} /* End WHILE forever. */
} /* End tod() */
]]></screen></sect3><sect3>
<title>'Daytime' TCP Client Code</title>
<para>The TCP client code is found in file tod6tc.c (time-of-day IPv6 TCP client). Once built, the TCP client may be started using the following command syntax (assuming tod6tc is the executable file):</para><screen>
<varlistentry><term>host</term><listitem><para>The hostname or IP address (dotted decimal or colon-hex) of the remote host providing the service. Default is "localhost".</para></listitem></varlistentry><varlistentry><term>service</term><listitem><para>The TCP service (or well-known port number) to which a connection attempt is made. Default is "daytime".</para></listitem></varlistentry></variablelist><para>OPTIONS:</para><variablelist>
<varlistentry><term>-s</term><listitem><para>This option is only meaningful for IPv6 addresses, and is used to set the scope identifier (i.e. the network interface on which to establish the connection). Default is "eth0". If host is a scoped address, this option is ignored.</para></listitem></varlistentry><varlistentry><term>-v</term><listitem><para>Turn on verbose mode.</para></listitem></varlistentry></variablelist><para>The TCP client source code contained in tod6tc.c follows:</para><screen>
<para>The UDP client code is found in file tod6uc.c (time-of-day IPv6 UDP client). It is almost an exact duplicate of the TCP client (and in fact was derived from it), but is included in this HowTo for completeness. Once built, the UDP client may be started using the following command syntax (assuming tod6uc is the executable file):</para><screen>
<varlistentry><term>host</term><listitem><para>The hostname or IP address (dotted decimal or colon-hex) of the remote host providing the service. Default is "localhost".</para></listitem></varlistentry><varlistentry><term>service</term><listitem><para>The UDP service (or well-known port number) to which datagrams are sent. Default is "daytime".</para></listitem></varlistentry></variablelist><para>OPTIONS:</para><variablelist>
<varlistentry><term>-s</term><listitem><para>This option is only meaningful for IPv6 addresses, and is used to set the scope identifier (i.e. the network interface on which to exchange datagrams). Default is "eth0". If host is a scoped address, this option is ignored.</para></listitem></varlistentry><varlistentry><term>-v</term><listitem><para>Turn on verbose mode.</para></listitem></varlistentry></variablelist><para>The UDP client source code contained in tod6uc.c follows:</para><screen>
<para>Sun Java versions since 1.4 are IPv6 enabled, see e.g. <ulink url="http://java.sun.com/j2se/1.5.0/docs/api/java/net/Inet6Address.html">Inet6Address (1.5/5.0)</ulink> class. Hints are available in the <emphasis>Networking IPv6 User Guide for JDK/JRE</emphasis> <ulink url="http://java.sun.com/j2se/1.4.2/docs/guide/net/ipv6_guide/index.html">1.4</ulink> and <ulink url="http://java.sun.com/j2se/1.5.0/docs/guide/net/ipv6_guide/index.html">1.5 (5.0)</ulink>.</para></sect2><sect2>
<title>Perl</title>
<para>As of May 2007 it's not known that the Perl core itself already supports IPv6. It can be added by using following modules:</para><itemizedlist>
<listitem><para><ulink url="http://search.cpan.org/~umemoto/Socket6/">Socket6</ulink></para></listitem></itemizedlist><para>Anyway, some other modules exist for/with IPv6 support (e.g. Net::IP), search for “IPv6” on <ulink url="http://search.cpan.org/">http://search.cpan.org/</ulink>.</para></sect2></sect1></chapter><chapter id='chapter-interoperability' >
<para>The <ulink url="http://www.tahi.org/">TAHI Project</ulink> checks the interoperability of different operating systems regarding the implementation of IPv6 features. Linux kernel already got the <ulink url="http://www.linux-ipv6.org/v6ready/">IPv6 Ready Logo Phase 1</ulink>. </para></chapter><chapter id='chapter-information' >
<title><!-- anchor id="chapter-information" -->Further information and URLs</title>
<listitem><para>Cisco Self-Study: Implementing IPv6 Networks (IPV6) by Regis Desmeules. Cisco Press; ISBN 1587050862; 500 pages; 1st edition (April 11, 2003).
Note: This item will be published on April 11, 2003.</para></listitem><listitem><para>Configuring IPv6 with Cisco IOS by Sam Brown, Sam Browne, Neal Chen, Robbie Harrell, Edgar, Jr. Parenti (Editor), Eric Knipp (Editor), Paul Fong (Editor)362 pages; Syngress Media Inc; ISBN 1928994849; (July 12, 2002).</para></listitem></itemizedlist></sect3><sect3>
<title>General</title>
<itemizedlist>
<listitem><para><ulink url="http://www.benedikt-stockebrand.de/books_e.html#ipv6-in-practice">IPv6 in Practice: A Unixer's Guide to the Next Generation Internet</ulink> von Benedikt Stockebrand, November 2006; ISBN 3-540-24524-3</para></listitem><listitem><para><ulink url="http://www.sunny.ch/publications/f_ipv6.htm">IPv6 Essentials</ulink> by Silvia Hagen, 2nd Edition, May 2006; ISBN 0-5961-0058-2
<ulink url="http://www.oreilly.com/catalog/ipv6ess/">ToC, Index, Sample Chapter etc.</ulink>; <ulink url="http://press.oreilly.com/ipv6ess.html">O'Reilly Pressrelease</ulink></para></listitem><listitem><para>IPv6: The New Internet Protocol. By Christian Huitema; Published by Prentice-Hall; ISBN 0138505055.
Description: This book, written by Christian Huitema - a member of the InternetArchitecture Board, gives an excellent description of IPv6, how it differs from IPv4, and the hows and whys of it's development.
Source: <ulink url="http://www.cs.uu.nl/wais/html/na-dir/internet/tcp-ip/resource-list.html">http://www.cs.uu.nl/wais/html/na-dir/internet/tcp-ip/resource-list.html</ulink></para></listitem><listitem><para><ulink url="http://www.epinions.com/book_mu-3402412/display_~full_specs">IPv6 Networks</ulink> by Niles, Kitty; (ISBN 0070248079); 550 pages; Date Published 05/01/1998.</para></listitem><listitem><para>Implementing IPV6. Supporting the Next Generation Internet Protocols by P. E. Miller, Mark A. Miller; Publisher: John Wiley & Sons; ISBN 0764545892; 2nd edition (March 15, 2000); 402 pages.</para></listitem><listitem><para>Big Book of Ipv6 Addressing Rfcs by Peter H. Salus (Compiler), Morgan Kaufmann Publishers, April 2000, 450 pages ISBN 0126167702. </para></listitem><listitem><para><ulink url="http://www.epinions.com/book_mu-3922588/display_~full_specs">Understanding IPV6</ulink> by Davies, Joseph; ISBN 0735612455; Date Published 05/01/2001; Number of Pages: 350.</para></listitem><listitem><para>Migrating to IPv6 - IPv6 in Practice by Marc Blanchet Publisher: John Wiley & Sons; ISBN 0471498920; 1st edition (November 2002); 368 pages.</para></listitem><listitem><para>Ipv6 Network Programming by Jun-ichiro Hagino; ISBN 1555583180</para></listitem><listitem><para><ulink url="http://www.nwfusion.com/news/2000/1023ipv6.html">Wireless boosting IPv6</ulink> by Carolyn Duffy Marsan, 10/23/2000.</para></listitem><listitem><para><ulink url="http://www.oreillynet.com/search/index.ncsp?sp-q=IPv6">O'reilly Network search for keyword IPv6</ulink> results in 29 hits (28. January 2002)</para></listitem></itemizedlist></sect3></sect2><sect2>
<listitem><para><ulink url="http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html">Getting Connected with 6to4</ulink> by Huber Feyrer, 06/01/2001</para></listitem><listitem><para>Transient Addressing for Related Processes: Improved Firewalling by Using IPv6 and Multiple Addresses per Host; written by Peter M. Gleiz, Steven M. Bellovin (<ulink url="http://www.securiteinfo.com/ebooks/pdf/tarp.pdf">PC-PDF-Version</ulink>; <ulink url="http://www.securiteinfo.com/ebooks/palm/tarp.pdf">Palm-PDF-Version</ulink>; <ulink url="http://www.securiteinfo.com/ebooks/pdb/tarp.pdb">PDB-Version</ulink>)</para></listitem><listitem><para><ulink url="http://www.ip6.com/index.html">Internetworking IPv6 with Cisco Routers</ulink> by Silvano Gai, McGrawHill Italia, 1997. The 13 chapters and appendix A-D are downloadable as PDF-documents.</para></listitem><listitem><para><ulink url="http://www.csc.fi/~psavola/residential.html">Migration and Co-existence of IPv4 and IPv6 in Residential Networks</ulink> by Pekka Savola, CSC/FUNET, 2002</para></listitem></itemizedlist></sect2><sect2 id='information-sciencepublication' >
<listitem><para><ulink url="http://www.ipv6.ac.uk/gtpv6/workplan.html">GEANT IPv6 Workplan</ulink></para></listitem><listitem><para><ulink url="http://www.ipv6.ac.uk/bermuda2/">IPv6 Trials on UK Academic Networks: Bermuda Project Aug.2002</ulink>: Participants - Getting connected - Project deliverables - Network topology - Address assignments - Wireless IPv6 access - IPv6 migration - Project presentations - Internet 2 - Other IPv6 projects - IPv6 fora and standards Bermuda 2...</para></listitem><listitem><para><ulink url="http://www.ipv6.ac.uk/">http://www.ipv6.ac.uk/</ulink></para></listitem><listitem><para><ulink url="http://www.ipv6.ecs.soton.ac.uk/">IPv6 at the University of Southampton</ulink></para></listitem><listitem><para>Microsoft Research IPv6 Implementation (MSRIPv6): <ulink url="http://www.research.microsoft.com/msripv6/">MSRIPv6 Configuring 6to4 - Connectivity with MSR IPv6 - Our 6Bone Node... </ulink></para></listitem></itemizedlist></sect2><sect2>
<title>Others</title>
<para>See following URL for more: <ulink url="http://www.switch.ch/lan/ipv6/references.html">SWITCH IPv6 Pilot / References</ulink></para></sect2></sect1><sect1 id='information-conferences' >
<para>Note: A list of available Tunnel broker can be found in the section <link linkend="information-Tunnelbroker">Tunnel broker</link> below. </para><itemizedlist>
<listitem><para>Former IPng. Tunnelbroker and IPv6 resources, now migrated to the <ulink url="http://www.sixxs.net/main/">SixXs System</ulink>.</para></listitem><listitem><para>Eckes' <ulink url="http://sites.inka.de/lina/linux/ipv6.html">IPv6-with-Linux</ulink> Page.</para></listitem><listitem><para>tunnelc - a perl based tunnel client script:
freshmeat.net: <ulink url="http://freshmeat.net/projects/tunnelc">Project details for tunnel client</ulink>
SourceForge: <ulink url="http://sourceforge.net/projects/tunnelc">Project Info - tunnelc</ulink> (also <ulink url="http://tunnelc.sourceforge.net/">here</ulink>)</para></listitem><listitem><para>Linux Advanced Routing & Traffic Control HOWTO, <ulink url="http://howtos.linuxbroker.com/howtoreader.shtml?file=Adv-Routing-HOWTO.html#LARTC.TUNNEL-IPV6.ADDRESSING">Chapter 6: IPv6 tunneling with Cisco and/or 6bone</ulink>.</para></listitem></itemizedlist></sect3><sect3 id='information-joinipv6-6to4-tunneling' >
<title>Latest news and URLs to other documents</title>
<itemizedlist>
<listitem><para><ulink url="http://www.estoile.com/links/ipv6">Lot of URLs to others documents</ulink> by Anil Edathara</para></listitem><listitem><para><ulink url="http://www.go6.net/">go6 - The IPv6 Portal</ulink>: an IPv6 online portal with a wiki-based IPv6 knowledge center, an IPv6 discussion forum, an up-to-date collection of IPv6 Events and News, free IPv6 access and services, IPv6 software applications, and much more</para></listitem></itemizedlist></sect2><sect2>
<title>Protocol references</title>
<sect3>
<title>IPv6-related Request For Comments (RFCs)</title>
<para>Publishing the list of IPv6-related RFCs is beyond the scope of this document, but given URLs will lead you to such lists:</para><itemizedlist>
<listitem><para>List sorted by <ulink url="http://playground.sun.com/pub/ipng/html/specs/standards.html">IPng Standardization Status</ulink> or <ulink url="http://playground.sun.com/pub/ipng/html/specs/specifications.html">IPng Current Specifications</ulink> by Robert Hinden</para></listitem><listitem><para><ulink url="http://www.ipv6.org/specs.html">IPv6 Related Specifications</ulink> on IPv6.org</para></listitem></itemizedlist></sect3><sect3>
<title>Current drafts of working groups</title>
<para>Current (also) IPv6-related drafts can be found here:</para><itemizedlist>
<listitem><para><ulink url="http://www.ietf.org/ids.by.wg/ipv6.html">IP Version 6 (ipv6)</ulink></para></listitem><listitem><para><ulink url="http://www.ietf.org/ids.by.wg/ngtrans.html">Next Generation Transition (ngtrans)</ulink></para></listitem><listitem><para><ulink url="http://www.ietf.org/ids.by.wg/dhc.html">Dynamic Host Configuration (dhc)</ulink></para></listitem><listitem><para><ulink url="http://www.ietf.org/ids.by.wg/dnsext.html">Domain Name System Extension (dnsext)</ulink></para></listitem><listitem><para><ulink url="http://www.ietf.org/ids.by.wg/v6ops.html">IPv6 Operations (v6ops)</ulink></para></listitem><listitem><para><ulink url="http://www.ietf.org/ids.by.wg/mobileip.html">Mobile IP (mobileip)</ulink></para></listitem><listitem><para><ulink url="http://playground.sun.com/pub/ipng/html/ipng-main.html">Get any information about IPv6, from overviews, through RFCs & drafts, to implementations</ulink> (including availability of stacks on various platforms & source code for IPv6 stacks) </para></listitem></itemizedlist></sect3><sect3>
<title>Others</title>
<itemizedlist>
<listitem><para><ulink url="http://www.switch.ch/lan/ipv6/references.html">SWITCH IPv6 Pilot / References</ulink>, big list of IPv6 references maintained by Simon Leinen</para></listitem></itemizedlist></sect3></sect2><sect2>
<title>More information</title>
<para><ulink url="http://www.deepspace6.net/sections/links.html">DeepSpace6 / more interesting links</ulink></para><sect3>
<title>Linux related</title>
<itemizedlist>
<listitem><para><ulink url="http://www.deepspace6.net/">DeepSpace6 / (Not only) Linux IPv6 Portal</ulink> - Italy (<ulink url="http://mirrors.bieringer.de/www.deepspace6.net/">Mirror</ulink>)</para></listitem><listitem><para><ulink url="http://www.bieringer.de/linux/IPv6/">IPv6-HowTo for Linux by Peter Bieringer</ulink> - Germany, and his <ulink url="ftp://ftp.bieringer.de/pub/linux/IPv6/">Bieringer / IPv6 - software archive</ulink></para></listitem><listitem><para><ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status.html">Linux+IPv6 status by Peter Bieringer</ulink> - Germany (going obsolete)</para></listitem><listitem><para><ulink url="http://www.deepspace6.net/docs/ipv6_status_page_apps.html">DeepSpace6 / IPv6 Status Page</ulink> - Italy (<ulink url="http://mirrors.bieringer.de/www.deepspace6.net/docs/ipv6_status_page_apps.html">Mirror</ulink>) (will superseed upper one)</para></listitem><listitem><para><ulink url="http://www.linux-ipv6.org/">USAGI project</ulink> - Japan, and their <ulink url="ftp://ftp.linux-ipv6.org/pub/">USAGI project - software archive</ulink></para></listitem><listitem><para><ulink url="http://www.tldp.org/HOWTO/OLSR-IPv6-HOWTO/">Linux Optimized Link State Routing Protocol (OLSR) IPv6 HOWTO</ulink></para></listitem><listitem><para><ulink url="http://inl.info.ucl.ac.be/LinShim6/">LinShim6</ulink></para></listitem></itemizedlist></sect3><sect3>
<varlistentry><term>PLD</term><listitem><para><ulink url="http://www.pld-linux.org/">PLD Linux Distribution</ulink> (“market leader” in containing IPv6 enabled packages)</para></listitem></varlistentry><varlistentry><term>Red Hat</term><listitem><para><ulink url="http://www.redhat.com/">Red Hat Enterprise Linux</ulink>, <ulink url="http://www.netcore.fi/pekkas/linux/ipv6/"> Pekka Savola's IPv6 packages (Historic)</ulink></para></listitem></varlistentry><varlistentry><term>Fedora</term><listitem><para><ulink url="https://fedoraproject.org/">Fedora (Project) Linux</ulink></para></listitem></varlistentry><varlistentry><term>Debian</term><listitem><para><ulink url="http://www.debian.org/">Debian Linux</ulink>, <ulink url="http://ipv6.debian.net/">IPv6 with Debian Linux</ulink></para></listitem></varlistentry><varlistentry><term>SuSE</term><listitem><para><ulink url="https://www.suse.com/">SuSE Linux</ulink></para></listitem></varlistentry><varlistentry><term>Mandriva</term><listitem><para><ulink url="http://wiht.link/mandrivalinux">Mandriva (Historic)</ulink></para></listitem></varlistentry></variablelist><para>For more see the <ulink url="http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-distributions.html">IPv6+Linux Status Distributions</ulink> page.</para></sect3><sect3>
<listitem><para><ulink url="http://www.ipv6.org/">IPv6.org</ulink></para></listitem><listitem><para><ulink url="http://www.6bone.net/">6bone</ulink></para></listitem><listitem><para><ulink url="http://www.v6.wide.ad.jp/">WIDE project</ulink> - Japan</para></listitem><listitem><para><ulink url="http://www.switch.ch/lan/ipv6/">SWITCH IPv6 Pilot</ulink> - Switzerland</para></listitem><listitem><para><ulink url="http://www.feyrer.de/IPv6/">IPv6 Corner of Hubert Feyrer</ulink> - Germany</para></listitem><listitem><para><ulink url="http://www.ipv6forum.com/">IPv6 Forum</ulink> - a world-wide consortium of leading Internet vendors, Research & Education Networks...</para></listitem><listitem><para><ulink url="http://playground.sun.com/pub/ipng/html/ipng-main.html">Playground.sun.com / IPv6 Info Page</ulink> - maintained by Robert Hinden, Nokia. Get any information about IPv6, from overviews, through RFCs & drafts, to implementations (including availability of stacks on various platforms & source code for IPv6 stacks).</para></listitem><listitem><para><ulink url="http://www.6init.com/">6INIT</ulink> - IPv6 Internet Initiative - an EU Fifth Framework Project under the IST Programme.</para></listitem><listitem><para><ulink url="http://www.ipv6-taskforce.org/">IPv6 Task Force (European Union)</ulink></para></listitem><listitem><para><ulink url="http://www.6init.org/">6init</ulink> - IPv6 INternet IniTiative </para></listitem><listitem><para><ulink url="http://www.usenix.org/publications/library/proceedings/ana97/summaries/deering.html">IPv6: The New Version of the Internet Protocol</ulink>, by Steve Deering.</para></listitem><listitem><para><ulink url="http://www.garykessler.net/library/ipv6_exp.html">IPv6: The Next Generation Internet Protocol</ulink>, by Gary C. Kessler. </para></listitem><listitem><para><ulink url="http://www.3com.com/nsc/ipv6.html">IPv6: Next Generation Internet Protocol</ulink> - 3Com</para></listitem><listitem><para><ulink url="http://www.internet2.org/">internet || site</ulink> and <ulink url="http://ipv6.internet2.edu/">internet2 Working Group</ulink></para></listitem><listitem><para>NetworkWorldFusion: Search / Doc Finder: <ulink url="http://search.nwfusion.com/query.html?qt=IPv6&qp=&ch=cn&">searched for IPv6</ulink> (102 documents found 22.12.2002)</para></listitem><listitem><para><ulink url="http://www.theregister.co.uk/">The Register</ulink> (Search for IPv6 will result in 30 documents, 22.12.2002)</para></listitem><listitem><para><ulink url="http://zdnet.search.com/search?cat=279&q=IPv6">ZDNet Search for IPv6</ulink></para></listitem><listitem><para><ulink url="http://whatis.techtarget.com/wsearchResults/1,290214,sid9,00.html?query=IPv6">TechTarget Search for IPv6</ulink></para></listitem><listitem><para><ulink url="http://www.faqs.org/faqs/internet/tcp-ip/resource-list/index.html">IPv6 & TCP Resources List</ulink></para></listitem></itemizedlist><para>Something missing? Suggestions are welcome!</para></sect3><sect3 id='information-marketresearch' >
<listitem><para><ulink url="http://www.seminarinformation.com/wconnect/wc.dll?sis~details0~307~TSN">A Tale of Two Wireless Technology Trends: Processor Development Outsourcing and IPv6</ulink>Yankee Group - 4/1/2002 - 12 Pages - ID: YANL768881</para></listitem><listitem><para><ulink url="http://www.marketresearch.com/product/display.asp?SID=88602378-241489274-186851952&ProductID=803907">The World Atlas of the Internet: Americas</ulink>; IDATE - 2/1/2002 - 242 PAges - ID: IDT803907. Countries covered: Central America, North America, South America; List: Price: $ 3,500.00; excerpt: Panorama of Internet access markets across the globe. Market assessment and forecasts up to 2006 for 34 countries: market structure: main ISPs and market shares; number of subscribers, of ISPs.</para></listitem><listitem><para>Early Interest Rising for IPv6 by IDC (Author); List Price: $1,500.00; Edition: e-book (Acrobat Reader); Publisher: IDC; ISBN B000065T8E; (March 1, 2002) </para></listitem></itemizedlist></sect3><sect3 id='information-patents' >
<listitem><para>Delphion Research: <ulink url="http://www.delphion.com/research/">Patent Search Page</ulink>. Basic (free) registration needed. Examples found 21.12.2002 searching for IPv6:
<ulink url="http://www.delphion.com/details?pn=US06118784__">Communicating method between IPv4 terminal and IPv6 terminal and IPv4-IPv6 converting apparatus</ulink>
<ulink url="http://www.delphion.com/details?pn=US06038233__">Translator for IP networks, network system using the translator, and IP network coupling method therefor</ulink></para></listitem></itemizedlist></sect3></sect2><sect2>
<title>By countries</title>
<sect3>
<title>Europe</title>
<itemizedlist>
<listitem><para><ulink url="http://www.ist-ipv6.org/">www.ist-ipv6.org</ulink>: IST IPv6 Cluster, European IPv6 Research and Development Projects</para></listitem><listitem><para><ulink url="http://www.euro6ix.org/">Euro6IX</ulink>: European IPv6 Internet Exchanges Backbone</para></listitem></itemizedlist></sect3><sect3>
<title>Austria</title>
<itemizedlist>
<listitem><para><ulink url="http://www.ikn.tuwien.ac.at/~ipv6/">IPv6@IKNnet and MIPv6 Research Group</ulink>: TU Vienna, Austria (IPv6: project, publications, diploma / doctor thesis, Conference Proceedings etc.)</para></listitem></itemizedlist></sect3><sect3>
<title>Australia</title>
<itemizedlist>
<listitem><para><ulink url="http://oversteer.bl.echidna.id.au/IPv6/">Carl's Australian IPv6 Pages</ulink> (old content)</para></listitem></itemizedlist></sect3><sect3>
<title>Belgium</title>
<para>Suggestions are welcome!</para></sect3><sect3>
<title>Brasil</title>
<itemizedlist>
<listitem><para><ulink url="http://www.ipv6dobrasil.com.br/">IPv6 do Brasil</ulink></para></listitem></itemizedlist></sect3><sect3>
<title>China</title>
<para>Suggestions are welcome!</para></sect3><sect3>
<title>Czech</title>
<para>Suggestions are welcome!</para></sect3><sect3>
<listitem><para><ulink url="http://project6.ferrara.linux.it/">Project6</ulink>: IPv6 networking with Linux</para></listitem></itemizedlist></sect3><sect3>
<title>Japan</title>
<itemizedlist>
<listitem><para><ulink url="http://www.rtpro.yamaha.co.jp/RT/ipv6/">Yamaha IPv6</ulink> (sorry, all in japanese native ...)</para></listitem></itemizedlist></sect3><sect3>
<title>Korea</title>
<itemizedlist>
<listitem><para><ulink url="http://www.krv6.net/">ETRI</ulink>: Electronics and Telecommunications Research Institut</para></listitem><listitem><para><ulink url="http://www.ipv6.or.kr/english/index.new.htm">IPv6 Forum Korea</ulink>: Korean IPv6 Deployment Project</para></listitem></itemizedlist></sect3><sect3>
<title>Mexico</title>
<itemizedlist>
<listitem><para><ulink url="http://www.ipv6.unam.mx/">IPv6 Mexico</ulink> (spain & english version): IPv6 Project Hompeage of The National Autonomous University of Mexico (UNAM)</para></listitem></itemizedlist></sect3><sect3>
<title>Netherland</title>
<itemizedlist>
<listitem><para><ulink url="http://www.ipv6.surfnet.nl/">SURFnet</ulink>: SURFnet IPv6 Backbone</para></listitem><listitem><para><ulink url="http://www.stack.nl/">STACK</ulink>, <ulink url="http://www.stack.nl/ipv6/">STACK (IPv6)</ulink>: Students' computer association of the Eindhoven University of Technology, Netherland</para></listitem><listitem><para><ulink url="http://www.ipng.nl/">IPng.nl</ulink>: collaboration between WiseGuys and Intouch</para></listitem></itemizedlist></sect3><sect3>
<title>Portugal </title>
<para>Suggestions are welcome!</para></sect3><sect3>
<title>Russia</title>
<itemizedlist>
<listitem><para><ulink url="http://www.ipv6.ru/">IPv6 Forum for Russia</ulink>: Yaroslavl State University Internet Center</para></listitem></itemizedlist></sect3><sect3>
<title>Switzerland</title>
<para>Suggestions are welcome!</para></sect3><sect3>
<title>United Kingdom</title>
<itemizedlist>
<listitem><para><ulink url="http://www.bt.com/ipv6/">British Telecom IPv6 Home</ulink>: BT's ISP IPv6 Trial, UK's first IPv6 Internet Exchange etc.</para></listitem></itemizedlist></sect3></sect2><sect2>
<listitem><para>Now that IBM's announced the availability of z/OS V1.4, <ulink url="http://search390.techtarget.com/ateQuestionNResponse/0,289625,sid10_cid486367_tax292523,00.html">what's new in this release?</ulink> This question was posed on 15 August 2002</para></listitem></itemizedlist></sect3><sect3>
<title>Microsoft</title>
<itemizedlist>
<listitem><para><ulink url="http://www.microsoft.com/windows2000/technologies/communications/ipv6/default.asp">Microsoft Windows 2000 IPv6</ulink> </para></listitem><listitem><para><ulink url="http://www.research.microsoft.com/msripv6">MSRIPv6</ulink> - Microsoft Research Network - IPv6 Homepage </para></listitem><listitem><para><ulink url="http://support.microsoft.com/default.aspx?scid=kb;en-us;306203">Internet Connection Firewall Does Not Block Internet Protocol Version 6 Traffic</ulink> (6.11.2001)</para></listitem><listitem><para><ulink url="http://support.microsoft.com/default.aspx?scid=kb;en-us;289892">Internet Protocol Numbers</ulink> (8.10.2002)</para></listitem><listitem><para><ulink url="http://support.microsoft.com/default.aspx?scid=kb;en-us;273826">IPv6 Technology Preview Refresh</ulink> (16.10.2002)</para></listitem><listitem><para><ulink url="http://support.microsoft.com/default.aspx?scid=kb;en-us;325449">HOW TO: Install and Configure IP Version 6 in Windows .NET Enterprise Server</ulink> (26.10.2002)</para></listitem><listitem><para><ulink url="http://support.microsoft.com/default.aspx?scid=kb;en-us;329984">Windows .NET Server 6to4 Router Service Quits When You Advertise a 2002 Address on the Public Interface</ulink> (28.10.2002)</para></listitem><listitem><para><ulink url="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcetcpip/htm/cmconIPv6exe.asp">msdn - Microsoft Windows CE .NET - IPv6 commands</ulink></para></listitem></itemizedlist></sect3><sect3>
<listitem><para><ulink url="http://playground.sun.com/pub/ipng/html/ipng-implementations.html#Sumitomo">Sumitomo Electric has implemented IPv6 on Suminet 3700 family routers</ulink></para></listitem></itemizedlist></sect3><sect3>
<title>ZebOS</title>
<itemizedlist>
<listitem><para>IpInfusion's <ulink url="http://www.ipinfusion.com/products/server/products_server.html">ZebOS Server Routing Software</ulink></para></listitem></itemizedlist></sect3></sect2><sect2 id='information-ipv6andsecurity' >
<listitem><para>Internet Security Systems: Security Center, <ulink url="http://www.iss.net/security_center/search.php?type=3&type=3&pattern=IPv6">X-Force Database Search</ulink> (21.12.2002 - 6 topics found relating to IPv6)</para></listitem><listitem><para><ulink url="http://csrc.nist.gov/ipsec/">NIST IPsec Project</ulink> ( National Institute of Standards and Technology, NIST)</para></listitem><listitem><para><ulink url="http://www.infosecuritymag.com/index.shtml">Information Security</ulink></para></listitem><listitem><para><ulink url="http://neworder.box.sk/search.php3?srch=IPv6">NewOrder.box.sk (search for IPv6)</ulink> (Articles, exploits, files database etc.) </para></listitem></itemizedlist></sect2><sect2>
<title>Application lists</title>
<itemizedlist>
<listitem><para><ulink url="http://www.deepspace6.net/docs/ipv6_status_page_apps.html">DeepSpace6 / IPv6 Status Page</ulink> (<ulink url="http://mirrors.bieringer.de/www.deepspace6.net/docs/ipv6_status_page_apps.html">Mirror</ulink>)</para></listitem><listitem><para><ulink url="http://www.ipv6.org/v6-apps.html">IPv6.org / IPv6 enabled applications</ulink></para></listitem><listitem><para><ulink url="http://freshmeat.net/search/?q=IPv6">Freshmeat / IPv6 search</ulink>, currently (14 Dec 2002) 62 projects</para></listitem><listitem><para><ulink url="http://www.ipv6forum.com/modules.php?op=modload&name=Web_Links&file=index">IPv6 Forum / Web Links</ulink></para></listitem></itemizedlist><sect3>
<title>Analyzer tools</title>
<itemizedlist>
<listitem><para><ulink url="http://www.wireshark.org/">Wireshark</ulink> (former known as <emphasis>Ethereal</emphasis>) is a free network protocol analyzer for Unix and Windows</para></listitem><listitem><para><ulink url="http://www.ip6.com/us/analyzer.htm">Radcom RC100-WL</ulink> - Download Radcom RC100-WL protocol analyzer version 3.20</para></listitem></itemizedlist></sect3><sect3>
<listitem><para><ulink url="http://www.6wind.com/">6wind</ulink> - solutions for IPv4/IPv6 Router, QoS, Multicast, Mobility, Security/VPN/Firewall. </para></listitem><listitem><para><ulink url="http://www.fefe.de/dns/">Fefe's patches for IPv6 with djbdns</ulink>Aug 2002 -- What is djbdns and why does it need IPv6? djbdns is a full blown DNS server which outperforms BIND in nearly all respects.</para></listitem><listitem><para><ulink url="http://www.ipinfusion.com/products/server/products_server.html">ZebOS Server Routing Suite </ulink></para></listitem><listitem><para><ulink url="http://download.cnet.com/Inframail-Advantage-Server-Edition/3000-10248_4-8202652.html">Inframail (Advantage Server Edition)</ulink></para></listitem><listitem><para><ulink url="http://download.cnet.com/HTTrack-Website-Copier/3000-2377_4-10149393.html">HTTrack Website Copier</ulink></para></listitem><listitem><para><ulink url="http://download.cnet.com/CommView/3000-2085_4-10132748.html">CommView</ulink></para></listitem><listitem><para><ulink url="http://download.cnet.com/Posadis/3000-2155_4-10149750.html">Posadis</ulink></para></listitem></itemizedlist></sect3><sect3 id='information-snmp' >
<listitem><para><ulink url="http://www.cs.uu.nl/wais/html/na-dir/snmp-faq/part1.html">comp.protocpols.snmp SNMP FAQ Part 1 of 2</ulink></para></listitem></itemizedlist></sect3></sect2></sect1><sect1>
<title>IPv6 Infrastructure</title>
<sect2>
<title>Statistics</title>
<itemizedlist>
<listitem><para><ulink url="http://www.space.net/~gert/RIPE/">IPv6 routing table history</ulink> created by Gert Döring, <ulink url="http://www.space.net/">Space.Net</ulink></para></listitem><listitem><para><ulink url="http://6bone.informatik.uni-leipzig.de/ipv6/stats/stats.php3">Official 6bone Webserver list Statisic</ulink></para></listitem></itemizedlist></sect2><sect2>
<title>Internet Exchanges</title>
<para>Another list of IPv6 Internet Exchanges can be found here: <ulink url="http://www.euro-ix.net/isp/choosing/search/matrix.php">IPv6 status of IXPs in Europe</ulink></para><sect3 id='information-ipv6exchanges-estonia' >
<listitem><para><ulink url="http://tix.estpak.ee/">TIX</ulink> (tallinn interneti exchange with ipv6 support)</para></listitem></itemizedlist></sect3><sect3 id='information-ipv6exchanges-europe' >
<listitem><para><ulink url="http://www.euro6ix.net/">Euro6IX</ulink>, European IPv6 Internet Exchange Backbone</para></listitem></itemizedlist></sect3><sect3 id='information-ipv6exchanges-france' >
<listitem><para><ulink url="http://www.fnix6.net/">French National Internet Exchange IPv6</ulink> (since 1.11.2002 active).
FNIX6 provides a free and reliable high speed FastEthernet interconnection between ISP located in TeleCity Paris.</para></listitem></itemizedlist></sect3><sect3 id='information-ipv6exchanges-germany' >
<listitem><para><ulink url="http://www.inxs.de/">INXS</ulink>: (Cable & Wireless) Munich and Hamburg</para></listitem></itemizedlist></sect3><sect3 id='information-ipv6exchanges-japan' >
<listitem><para><ulink url="http://www.ipng.nl/">IPng Netherland</ulink> - Intouch, SurfNet, AMS-IX, UUNet, Cistron, RIPE NCC and AT&T are connected at the AMS-IX. It is possible (there are requirements...) to get an static tunnel.</para></listitem><listitem><para><ulink url="http://www.ipv6.surfnet.nl/">SURFnet Customers</ulink></para></listitem></itemizedlist></sect3><sect3 id='information-tunnelbroker-norway' >
<listitem><para><ulink url="http://www.uninett.no/testnett/index.en.html">UNINETT</ulink> - Pilot IPv6 Service (for Customers): tunnelbroker & address allocation
<listitem><para><ulink url="http://www.nttv6.net/">NTT</ulink>, United Kingdom - IPv6 Trial. IPv4 Tunnel and native IPv6 leased Line connections. POPs are located in London, UK Dusseldorf, Germany New Jersey, USA (East Coast) Cupertino, USA (West Coast) Tokyo, Japan</para></listitem></itemizedlist></sect3><sect3 id='information-tunnelbroker-usa' >
<listitem><para><ulink url="http://www.es.net/hypertext/welcome/pr/ipv6.html">ESnet</ulink>, USA - Energy Sciences Network: Tunnel Registry & Address Delegation for directly connected ESnet sites and ESnet collaborators.</para></listitem><listitem><para><ulink url="http://ipv6tb.he.net/">Hurricane Electric</ulink>, US backbone;
<ulink url="http://tunnelbroker.net/">Hurrican Electric Tunnelbroker</ulink> (also available under <ulink url="http://tunnelbroker.com/">http://tunnelbroker.com/</ulink>)
Press Release: <ulink url="http://www.he.net/releases/release6.html">Hurricane Electric Upgrades IPv6 Tunnel Broker</ulink>
<listitem><para><ulink url="http://www.ipv6.bieringer.de/">Peter Bieringer's Home of Linux IPv6 HOWTO </ulink></para></listitem></itemizedlist><para>Something missing? Suggestions are welcome!</para></sect3></sect2></sect1><sect1 id='information-maillists' >
<para>Lists of maillists are available at:</para><itemizedlist>
<listitem><para><ulink url="http://www.deepspace6.net/sections/lists.html">DeepSpace6 / Mailling Lists</ulink></para></listitem></itemizedlist><para>Major Mailinglists are listed in following table:</para>
Description: This is the group for the Student Awareness group of IPv6 in India</para></listitem><listitem><para><ulink url="http://groups.yahoo.com/group/sun-ipv6-users">sun-ipv6-users</ulink>
Description: Please report problems/suggestions regarding SUN Microsystems IPng implementation</para></listitem><listitem><para><ulink url="http://groups.yahoo.com/group/IPv6-BITS">IPv6-BITS</ulink>
Description: This List will co-ordinate the working of Project Vertebrae.</para></listitem><listitem><para><ulink url="http://groups.yahoo.com/group/linux-bangalore-ipv6">linux-bangalore-ipv6</ulink>
Description: The IPv6 deployment list of the Bangalore Linux User Group</para></listitem><listitem><para><ulink url="http://groups.yahoo.com/group/packet-switching">packet-switching</ulink>
Description: This mailing list provides a forum for discussion of packet switching theory, technology, implementation and application in any relevant aspect including without limitation LAPB, X.25, SDLC, P802.1d, LLC, IP, IPv6, IPX, DECNET, APPLETALK, FR, PPP, IP Telephony, LAN PBX systems, management protocols like SNMP, e-mail, network transparent window systems, protocol implementation, protocol verification, conformance testing and tools used in maintaining or developing packet switching systems.</para></listitem><listitem><para>de.comm.protocols.tcp-ip
<listitem><para>ping, traceroute, tracepath, 6bone registry, DNS: <ulink url="http://www.join.uni-muenster.de/lab/testtools.html">JOIN / Testtools</ulink> (German language only, but should be no problem for non German speakers)</para></listitem><listitem><para>traceroute6, whois: <ulink url="http://www.ipng.nl/">IPng.nl</ulink></para></listitem><listitem><para>AAAA Lookup Checker <ulink url="http://www.cnri.dit.ie/cgi-bin/check_aaaa.pl">http://www.cnri.dit.ie/cgi-bin/check_aaaa.pl</ulink></para></listitem></itemizedlist></sect2><sect2>
<title>Information retrievement</title>
<itemizedlist>
<listitem><para><ulink url="http://www.ripe.net/ripencc/mem-services/registration/ipv6/ipv6allocs.html">List of worldwide all IPv6-aggregated IP-Blocks</ulink></para></listitem></itemizedlist></sect2><sect2>
<para>Versions x.y are published on the Internet.</para>
<para>Versions x.y.z are work-in-progress and published as LyX and SGML file on CVS. Because Deep Space 6 mirrors these SGML files and generate independend from TLDP public versions, this versions will show up there and also on its mirrors.</para><sect2>
<title>Releases 0.x</title>
<variablelist>
<varlistentry><term>0.65</term><listitem><para>2010-04-20/PB: extend QoS section with examples</para></listitem></varlistentry><varlistentry><term>0.65</term><listitem><para>2009-12-13/PB: minor fixes</para></listitem></varlistentry><varlistentry><term>0.64</term><listitem><para>2009-06-11/PB: extend DHCP server examples (ISC DHCP, Dibbler)</para></listitem></varlistentry><varlistentry><term>0.63</term><listitem><para>2009-02-14/PB: Fix FSF address, major update on 4in6 tunnels, add new section for address resolving, add some URLs, remove broken URLs</para></listitem></varlistentry><varlistentry><term>0.62</term><listitem><para>2008-11-09/PB: Adjust URL to Turkish howto, add some HIP related URLs, remove broken URLs</para></listitem></varlistentry><varlistentry><term>0.61.1</term><listitem><para>2007-11-11/PB: fix broken description of shortcut BIND</para></listitem></varlistentry><varlistentry><term>0.61</term><listitem><para>2007-10-06/PB: fix broken URLs to TLDP-CVS, minor URL update.</para></listitem></varlistentry><varlistentry><term>0.60.2</term><listitem><para>2007-10-03/PB: fix description of sysctl/autoconf (credits to Francois-Xavier Le Bail)</para></listitem></varlistentry><varlistentry><term>0.60.1</term><listitem><para>2007-06-16/PB: speling fixes (credits to Larry W. Burton)</para></listitem></varlistentry><varlistentry><term>0.60</term><listitem><para>2007-05-29/PB: import major contribution to Programming using C-API written by John Wenker, minor fixes</para></listitem></varlistentry><varlistentry><term>0.52</term><listitem><para>2007-05-23/PB: update firewalling chapter, improve document for proper SGML validation, minor bugfixes</para></listitem></varlistentry><varlistentry><term>0.51</term><listitem><para>2006-11-08/PB: remove broken URLs, add a new book (credits to Bryan Vukich)</para></listitem></varlistentry><varlistentry><term>0.50.2</term><listitem><para>2006-10-25/PB: fix typo in dhcp6 section (credits to Michele Ferritto)</para></listitem></varlistentry><varlistentry><term>0.50.1</term><listitem><para>2006-09-23/PB: add some URLs</para></listitem></varlistentry><varlistentry><term>0.50</term><listitem><para>2006-08-24/PB: check RFC URLs, fix URL to Chinese translation, finalize for publishing</para></listitem></varlistentry><varlistentry><term>0.49.5</term><listitem><para>2006-08-23/PB: fix/remove broken URLs</para></listitem></varlistentry><varlistentry><term>0.49.4</term><listitem><para>2006-08-21/PB: some review, update and enhancement of the content, replace old 6bone example addresses with the current defined ones.</para></listitem></varlistentry><varlistentry><term>0.49.3</term><listitem><para>2006-08-20/PB: fix bug in maillist entries, 'mobility' is now a separate chapter</para></listitem></varlistentry><varlistentry><term>0.49.2</term><listitem><para>2006-08-20/PB: update and cleanup of maillist entries</para></listitem></varlistentry><varlistentry><term>0.49.1</term><listitem><para>2006-06-13/PB: major update of mobility section (contributed by Benjamin Thery)</para></listitem></varlistentry><varlistentry><term>0.49</term><listitem><para>2005-10-03/PB: add configuration hints for DHCPv6, major broken URL cleanup (credits to Necdet Yucel)</para></listitem></varlistentry><varlistentry><term>0.48.1</term><listitem><para>2005-01-15/PB: minor fixes</para></listitem></varlistentry><varlistentry><term>0.48</term><listitem><para>2005-01-11/PB: grammar check and minor review of IPv6 IPsec section</para></listitem></varlistentry><varlistentry><term>0.47.1</term><listitem><para>2005-01-01/PB: add information and examples about IPv6 IPsec, add some URLs</para></listitem></varlistentry><varlistentry><term>0.47</term><listitem><para>2004-08-30/PB: add some notes about proftpd, vsftpd and other daemons, add some URLs, minor fixes, update status of Spanish translation</para></listitem></varlistentry><varlistentry><term>0.46.4</term><listitem><para>2004-07-19/PB: minor fixes</para></listitem></varlistentry><varlistentry><term>0.46.3</term><listitem><para>2004-06-23/PB: add note about started Greek tran
<para>The quickest way to be added to this nice list is to send bug fixes, corrections, and/or updates to me ;-).</para>
<para>If you want to do a major review, you can use the native LyX file (see <link linkend="general-original-source">original source</link>) and send diffs against it, because diffs against SGML don't help too much.</para><sect2 id='major-credits' >
<listitem><para>David Ranch <dranch at trinnet dot net>: For encouraging me to write this HOWTO, his editorial comments on the first few revisions, and his contributions to various IPv6 testing results on my IPv6 web site. Also for his major reviews and suggestions.</para></listitem><listitem><para>Pekka Savola <pekkas at netcore dot fi>: For major reviews, input and suggestions.</para></listitem><listitem><para>Martin F. Krafft <madduck at madduck dot net>: For grammar checks and general reviewing of the document.</para></listitem><listitem><para>John Ronan <j0n at tssg dot wit dot ie>: For grammar checks.</para></listitem><listitem><para>Georg Käfer <gkaefer at gmx dot at>: For detection of no proper PDF creation (fixed now by LDP maintainer Greg Ferguson), input for German books, big list of URLs, checking all URLs, many more suggestions, corrections and contributions, and the German translation</para></listitem><listitem><para>Michel Boucey <mboucey at free dot fr>: Finding typos and some broken URLs, contribute some suggestions and URLs, and the French translation</para></listitem><listitem><para>Michele Ferritto <m dot ferritto at virgilio dot it>: Finding bugs and the Italian translation</para></listitem><listitem><para>Daniel Roesen <dr at cluenet dot de>: For grammar checks</para></listitem><listitem><para>Benjamin Thery <benjamin dot thery at bull dot net>: For contribution of updated mobility section</para></listitem><listitem><para>John Wenker <jjw at pt dot com>: major contribution to Programming using C-API</para></listitem><listitem><para>Srivats P. <Srivats dot P at conexant dot com>: major contribution for 4in6 tunnels</para></listitem></itemizedlist></sect2><sect2>
<title>Other credits</title>
<sect3>
<title>Document technique related</title>
<para>Writing a LDP HOWTO as a newbie (in LyX and exporting this to DocBook to conform to SGML) isn't as easy as some people say. There are some strange pitfalls... Nevertheless, thanks to:</para><itemizedlist>
<listitem><para>Authors of the <ulink url="http://www.tldp.org/LDP/LDP-Author-Guide/">LDP Author Guide</ulink></para></listitem><listitem><para>B. Guillon: For his <ulink url="http://perso.libertysurf.fr/bgu/doc/db4lyx/">DocBook with LyX HOWTO</ulink></para></listitem></itemizedlist></sect3><sect3 id='content-related-credits' >
<title><!-- anchor id="content-related-credits" -->Content related credits</title>
<para>Credits for fixes and hints are listed here, will grow sure in the future</para><itemizedlist>
<listitem><para>S .P. Meenakshi <meena at cs dot iitm dot ernet dot in>: For a hint using a “send mail” shell program on tcp_wrapper/hosts.deny</para></listitem><listitem><para>Frank Dinies <FrankDinies at web dot de>: For a bugfix on IPv6 address explanation</para></listitem><listitem><para>John Freed <jfreed at linux-mag dot com>: For finding a bug in IPv6 multicast address explanation</para></listitem><listitem><para>Craig Rodrigues <crodrigu at bbn dot com>: For suggestion about RHL IPv6 setup</para></listitem><listitem><para>Fyodor <fyodor at insecure dot org>: Note me about outdated nmap information</para></listitem><listitem><para>Mauro Tortonesi <mauro at deepspace6 dot net>: For some suggestions</para></listitem><listitem><para>Tom Goodale <goodale at aei-potsdam dot mpg dot de>: For some suggestions</para></listitem><listitem><para>Martin Luemkemann <mluemkem at techfak dot uni-bielefeld dot de>: For a suggestion</para></listitem><listitem><para>Jean-Marc V. Liotier <jim at jipo dot com>: Finding a bug</para></listitem><listitem><para>Yaniv Kaul <ykaul at checkpoint dot com>: Finding a bug</para></listitem><listitem><para>Arnout Engelen <arnouten at bzzt dot net>: For sending note about a draft was adopted to RFC now</para></listitem><listitem><para>Stephane Bortzmeyer <bortzmeyer at nic dot fr>: Contributing persistent configuration on Debian</para></listitem><listitem><para>lithis von saturnsys <lithis at saturnsys dot com>: Reporting a misaddressed URL</para></listitem><listitem><para>Guy Hulbert <gwhulbert at rogers dot com>: Send a note that RFC1924 is probably an April fool's joke</para></listitem><listitem><para>Tero Pelander <tpeland at tkukoulu dot fi>: Reporting a broken URL</para></listitem><listitem><para>Walter Jontofsohn <wjontof at gmx dot de>: Hints for SuSE Linux 8.0/8.1</para></listitem><listitem><para>Benjamin Hofstetter <benjamin dot hofstetter at netlabs dot org>: Reporting a mispointing URL</para></listitem><listitem><para>J.P. Larocque <piranha at ely dot ath dot cx>: Reporting archive URL for maillist users at ipv6 dot org</para></listitem><listitem><para>Jorrit Kronjee <jorrit at wafel dot org>: Reporting broken URLs</para></listitem><listitem><para>Colm MacCarthaigh <colm dot maccarthaigh at heanet dot ie>: Hint for sendfile issue on Apache2</para></listitem><listitem><para>Tiago Camilo <tandre at ipg dot pt>: Contribute some URLs about Mobile IPv6</para></listitem><listitem><para>Harald Geiger: Reporting a bug in how described the bit counting of the universal/global bit</para></listitem><listitem><para>Bjoern Jacke <bjoern at j3e dot de>: Triggered me to fix some outdated information on xinetd</para></listitem><listitem><para>Christoph Egger <cegger at chrrr dot com>: Sending note about “ip” has problems with IPv4-compatible addresses on SuSE Linux 9.0 and trigger to add a hint on 6to4-radvd example</para></listitem><listitem><para>David Lee Haw Ling <hawling at singnet dot com dot sg>: Sending information about a tunnel broker</para></listitem><listitem><para>Michael H. Warfield <mhw at iss dot net>: Sending note about suffix for 6to4 routers</para></listitem><listitem><para>Tomasz Mrugalski <thomson at klub dot com dot pl>: Sending updates for DHCPv6 section</para></listitem><listitem><para>Jan Minar <jjminar at fastmail dot fm>: Reporting minor bugs</para></listitem><listitem><para>Kalin KOZHUHAROV <kalin at tar dot bz>: Fixing a not so well explanation</para></listitem><listitem><para>Roel van Dijk <rdvdijk at planet dot nl>: Reporting broken URLs</para></listitem><listitem><para>Catalin Muresan <catalin dot muresan at astral dot ro>: Reporting minor bugs</para></listitem><listitem><para>Dennis van Dok <dvandok at quicknet dot nl>: Reporting minor bugs</para></listitem><listitem><para>Necdet Yucel <nyucel at comu dot edu dot tr>: Reporting broken URLs</para></listite
<title>The End</title>
<para>Thanks for reading. Hope it helps!</para>
<para>If you have any questions, subscribe to proper <link linkend="information-maillists">maillist</link> and describe your problem providing as much as information as possible.</para></sect1></chapter></book>