Getting IPv6 Using Freenet6 on Debian

April 3rd, 2002 by Peter Todd in

Take advantage of the Freenet6 tunnel service to quickly move from IPv4 to IPv6.
Your rating: None Average: 4.3 (3 votes)

IPv6 is the successor to our current internet protocol, IPv4. It offers many new features, including vastly increased address space--128 bits vs. IPv4's measly 32 bits--easier autoconfiguration and better support for encryption, just to name a few. The Debian project has done a good job of making its distribution IPv6-ready. In this article, you'll learn how to setup a IPv6-over-IPv4 tunnel using the free Freenet6 tunnel service. Note that I'm assuming you're using Debian testing (woody) or unstable (sid) and understand how to install packages through apt. I'm also assuming you know a little bit about IPv6, such as what an address looks like.

Before beginning the tunnel, you'll need a publicly addressable IPv4 address on the machine you're using. Your kernel also must support IPv6; Debian's default kernels do support IPv6. If you're not sure if your kernel does support it, check for a /proc/sys/net/ipv6 directory. Also see if the output of ifconfig contains any IPv6 addresses, something like fe80::24f:49ff:fe07:2552 Make sure your firewall isn't blocking IPv6 tunnel packets, IP protocol 41 (ipv6) must not be blocked in either direction.

Once you've confirmed all of this, start the tunnel by installing the Freenet6 client software with apt. The Debian package is called Freenet6 and is available in both testing and unstable versions. Once it's installed, Freenet6 automatically gets a IPv6 address for you based on your existing IPv4 address; no configuration is required. That's right, everything will work right out of the box on most systems simply by installing Freenet6.

Note that this IPv6 address is tied to your IPv4 address, if the IPv4 address changes so does your IPv6 address. Fortunately, if you've used the standard Debian systems for your internet connection, such as the PPP packages and the included dhcp clients, Debian will automatically get a new IPv6 address for you if your IPv4 address changes.

To test your IPv6 connection, try pinging something with the ping6 program. If you find that you don't have ping6, install it with the iputils-ping package. Some hosts to try pinging include www.6bone.net and www.kame.net. If the pings aren't working, double-check that your firewall isn't blocking IPv6 packets. If the pings do work, next try connecting to www.kame.net with Lynx, Mozilla or Konqueror. These browsers have IPv6 support in Debian testing. If everything is still working correctly, there will be a "dancing kame" at the top of the page and a little message at the bottom. If it still says you're using IPv4, and the ping6 test worked fine, double-check that you're using the latest version of the browser.

Congratulations! You're on the next generation internet! If you have a network behind a Linux router, you can also provide IPv6 for the machines behind it using Freenet6 and the radvd. How to do it will be explained in an upcoming issue of Linux Journal.

__________________________


Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
olu's picture

ping6 doesnt work

On November 28th, 2008 olu (not verified) says:

.i have managed to get the tspc(using freent6) tunnel up and running but ping6 doestn seem to work but i cant do a succesful ping6 to kame or any other ipv6 host.do i need to change anything in my firewall to allow ipv6 in and out?if i need to change a rule in my firewall ,where do i find the ip6tables so that i can edit it.
pls help reply as soon as possible so i can progress on my project.i am using linux debian.
what do i do ? any one plss help!!!!

Anonymous's picture

Re: Getting IPv6 Using Freenet6 on Debian

On May 15th, 2004 Anonymous says:

Squid can be a killer for ip6 web connectivity. you need to do some special configuration for it to work. but I'm only in early testing right now of it and just switched proxy off.

if your in Australia look at broker.aarnet.net.au for a local connectivity point

hvw59601's picture

Re: Getting IPv6 Using Freenet6 on Debian

On May 1st, 2002 hvw59601 (not verified) says:

But trying this on a PPP client I find the info confusing:

the HOWTO says:

* PPPOPTIONS="debug nomp ipcp-accept-local ipcp-accept-remote ipv6cp-accept-local+ipv6ipv6cp-use-ipaddr"

Yet the PPPD manpage (2.4.1 debian sid) says nothing of the ipv6 opts. And that "+" sign with "ipv6ipv6cp" looks suspiciously like an error. I guess I'll wait with enabling ipv6, sounds like a good idea though.

Anonymous's picture

One more IPv6 service

On April 14th, 2002 Anonymous says:

Also have a look at www.xs26.net. They are still working on their interface (and everything else, I suppose), but for me it worked out fine.

Anonymous's picture

Re: Getting IPv6 Using Freenet6 on Debian

On April 9th, 2002 Anonymous says:

Nice story, Todd.

I understand from your article that the Freenet6.deb package implements a '6to4 relay'.

You may take a look at a (somewhat different) European approach to the same thing, the IPng.nl tunnelbroker (which is 6in4 as apposed to 6to4).

It can be found on http://www.ipng.nl/ and everybody with a stable 24/7 connection and static (non-dhcp!) node may join this free public service.

Kind regards, keep up the good work!

Pim van Pelt

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

December 2009, #188

If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.


Read this issue