Skip site navigation (1)Skip section navigation (2)
Date:      27 Feb 2001 13:53:39 -0600
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-net@freebsd.org
Subject:   Freenet6, IPv6 tunnels, and rc.conf
Message-ID:  <87d7c3ewcc.fsf@pooh.honeypot>

next in thread | raw e-mail | index | archive | help
I hope this is the right place to ask; if not, a gentle nudge in
the right direction would be most appreciated.

I registered for an IPv6 tunnel from www.freenet6.net, and they
send me the following Perl script (modified to work behind a NAT
router according to the "IPv6-behind-NAT" instructions at
<URL:http://www.daemonnews.org/200009/ipv6.html>):


---8<-----
$if='gif0';  # Via ifconfig | grep

# Somes informations about tunnels values
print "This script will create a tunnel between this
computer\n";
print "and the Freenet6 server (tunnels server)\n";
print "Your IPv6 address (your tunnel end point) is
3ffe:b00:c18:1fff:0:0:0:461 \n";
print "We establish a tunnel to the Freenet6 server at
3ffe:b00:c18:1fff:0:0:0:460 \n";
print "Your IPv4 address is : 216.224.193.50 \n";
print "The IPv4 address of the Freenet6 server is :
206.123.31.102 \n";

# Setup the tunnel with values from Freenet6
system(`gifconfig $if 10.0.0.2 206.123.31.102`);
system(`ifconfig $if inet6 3ffe:b00:c18:1fff:0:0:0:461
3ffe:b00:c18:1fff:0:0:0:460 prefixlen 128 alias`);
system(`ifconfig $if up`);
system(`route add -inet6 default 3ffe:b00:c18:1fff:0:0:0:461`);

---8<-----


This works well; I can ping6 the world to my heart's content.
The next step I want to try, though is integrating this
IPv6-over-4 tunnel into my rc.conf (4.2-STABLE, BTW).  Frankly,
I'm completely bewildered by the IPv6 section of that file.
What values do I plug in, and where?  I want this machine to be
a IPv6 gateway for the other machines on my LAN, too.

Any help appreciated!
-- 
Kirk Strauser

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87d7c3ewcc.fsf>