How to enable ipv6 tunnel?

Asked by IC Raibow

I'v used to install tspc, but it's not removed from distribution. What's the alternative for it?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu eglibc Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Cristi Nistor (cristi-nistor) said :
#1

You can use Mirebo: http://www.remlab.net/miredo/

You can find it as server or client package http://packages.ubuntu.com/search?searchon=names&keywords=miredo

Good luck.

Revision history for this message
IC Raibow (icrbow) said :
#2

Thanks Cristi Nistor, that solved my question.

Revision history for this message
IC Raibow (icrbow) said :
#3

Could it be set up to try IPv4 route first? Looks like miredo hijacking it and crawls to nearby machines via tunnel broker.

Revision history for this message
Rémi Denis-Courmont (rdenis) said :
#4

It's up to each and every application to follow the address selection policy.
By default, public IPv4 is preferred over Teredo anyway.

This is not a miredo issue. If you want to change the policy, edit /etc/gai.conf, which is part of glibc.

Revision history for this message
Vikram Dhillon (dhillon-v10) said :
#5

IPv4 is preferred for most of the applications that you will find accessing the
internet. So its a good practice to use that so you don't run into conflicting
applications.

--
Regards,
Vikram Dhillon

On Tuesday 24 November 2009 08:43:29 am Rémi Denis-Courmont wrote:
> Question #91497 on miredo in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/miredo/+question/91497
>
> Status: Open => Answered
>
> Rémi Denis-Courmont proposed the following answer:
> It's up to each and every application to follow the address selection
> policy. By default, public IPv4 is preferred over Teredo anyway.
>
> This is not a miredo issue. If you want to change the policy, edit
> /etc/gai.conf, which is part of glibc.
>

Revision history for this message
IC Raibow (icrbow) said :
#6

> By default, public IPv4 is preferred over Teredo anyway.
So, it looks like defaults are broken. Firefox and ssh definitely preferring v6 over v4.

Revision history for this message
Rémi Denis-Courmont (rdenis) said :
#7

First, I would like to emphasizes that GNU/libc will prefer *public* IPv4 addresses over Teredo IPv6 source addresses. But it will prefer Teredo addresses over *private* IPv4 addresses. This is consistent with the specification (IETF RFC3484).

So if you are behind a NAT (which is likely the case if you are using Teredo), Teredo is favored over IPv4. This is expected glibc behaviour. And in fact, it turns out that _this_ specifically is not configurable, not even through /etc/gai.conf contrary to my earlier implication.

In any case, this is not something that miredo can do anything about. If you don't want to use IPv6, then don't use miredo, or tspc, or 6to4 or any IPv6 mechanism. The policy is obtained via getaddrinfo() which is part of GNU/libc, and only a change to the libc6 package can affect this.

> IPv4 is preferred for most of the applications that you will find accessing the
> internet. So its a good practice to use that so you don't run into conflicting
> applications.

This is totally untrue. Any application using getaddrinfo() will prefer IPv6 over IPv4 in most cases - if both IPv4 and IPv6 are available on the local and remote system, that is.

Can you help with this problem?

Provide an answer of your own, or ask IC Raibow for more information if necessary.

To post a message you must log in.