From owner-freebsd-net Thu Mar 1 8:16:12 2001 Delivered-To: freebsd-net@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id BEFED37B718 for ; Thu, 1 Mar 2001 08:16:00 -0800 (PST) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:DrS8M1hIWwJtA6Fo5i54NUAsu/2LmJYLCiqTvuFPHQSNF/7wNOwwcit0TiDz9Hgh@localhost [::1]) (authenticated as ume with CRAM-MD5) by peace.mahoroba.org (8.11.3/8.11.3/peace) with ESMTP/inet6 id f21GD3317593; Fri, 2 Mar 2001 01:13:03 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Fri, 02 Mar 2001 01:13:02 +0900 (JST) Message-Id: <20010302.011302.78721419.ume@mahoroba.org> To: kirk@strauser.com Cc: freebsd-net@freebsd.org Subject: Re: Freenet6, IPv6 tunnels, and rc.conf From: Hajimu UMEMOTO In-Reply-To: <87d7c3ewcc.fsf@pooh.honeypot> References: <87d7c3ewcc.fsf@pooh.honeypot> X-Mailer: xcite1.38> Mew version 1.95b97 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>>>> On 27 Feb 2001 13:53:39 -0600 >>>>> Kirk Strauser said: kirk> I registered for an IPv6 tunnel from www.freenet6.net, and they kirk> send me the following Perl script (modified to work behind a NAT kirk> router according to the "IPv6-behind-NAT" instructions at kirk> ): kirk> ---8<----- kirk> $if='gif0'; # Via ifconfig | grep kirk> # Somes informations about tunnels values kirk> print "This script will create a tunnel between this kirk> computer\n"; kirk> print "and the Freenet6 server (tunnels server)\n"; kirk> print "Your IPv6 address (your tunnel end point) is kirk> 3ffe:b00:c18:1fff:0:0:0:461 \n"; kirk> print "We establish a tunnel to the Freenet6 server at kirk> 3ffe:b00:c18:1fff:0:0:0:460 \n"; kirk> print "Your IPv4 address is : 216.224.193.50 \n"; kirk> print "The IPv4 address of the Freenet6 server is : kirk> 206.123.31.102 \n"; kirk> # Setup the tunnel with values from Freenet6 kirk> system(`gifconfig $if 10.0.0.2 206.123.31.102`); kirk> system(`ifconfig $if inet6 3ffe:b00:c18:1fff:0:0:0:461 kirk> 3ffe:b00:c18:1fff:0:0:0:460 prefixlen 128 alias`); kirk> system(`ifconfig $if up`); kirk> system(`route add -inet6 default 3ffe:b00:c18:1fff:0:0:0:461`); kirk> ---8<----- kirk> This works well; I can ping6 the world to my heart's content. kirk> The next step I want to try, though is integrating this kirk> IPv6-over-4 tunnel into my rc.conf (4.2-STABLE, BTW). Frankly, kirk> I'm completely bewildered by the IPv6 section of that file. kirk> What values do I plug in, and where? Though I have never try Freenet6, it should work: ipv6_enable="YES" gif_interfaces="gif0" gifconfig_gif0="10.0.0.2 206.123.31.102" ipv6_network_interfaces="gif0" ipv6_ifconfig_gif0="3ffe:b00:c18:1fff:0:0:0:461 3ffe:b00:c18:1fff:0:0:0:460 prefixlen 128" ipv6_defaultrouter="3ffe:b00:c18:1fff:0:0:0:461" kirk> I want this machine to be a IPv6 gateway for the other machines kirk> on my LAN, too. Since Freenet6 serve only one host address, it is impossible. If you want to connect your LAN to 6bone, you need prefix assignment. -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message