Skip to contentSkip to conversation

adding ipv6 routes wrong for tap

Openvpn-devel Sergey Matveychuk 2 participants 5 messages Apr 17, 2012 – Jun 10, 2012

lore
Share & tools
lore
#0 lore raw

Hi.

I see openvpn adds ipv6 routes always for interface not addresses. I think it should be like in add_route(): something like is_on_link() to determ if interface should be added or address.

#1 lore raw

Hi,

Quoted 3 lines · Sergey Matveychuk

I see openvpn adds ipv6 routes always for interface not addresses. I think it should be like in add_route(): something like is_on_link() to determ if interface should be added or address.

IPv6 routes on TAP doesn't work yet, yes. This is a documented shortcoming and I'll fix it as soon as possible (which might not be as soon as you hope for). TUN works, or setting the routes manually from an "up" script.

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#2 lore raw
Quoted 11 lines · Gert Doering

Hi,

Quoted 3 lines · Sergey Matveychuk

I see openvpn adds ipv6 routes always for interface not addresses. I think it should be like in add_route(): something like is_on_link() to determ if interface should be added or address.

IPv6 routes on TAP doesn't work yet, yes. This is a documented shortcoming and I'll fix it as soon as possible (which might not be as soon as you hope for). TUN works, or setting the routes manually from an "up" script.

Rough changing route command works for me:

argv_printf (&argv, "%s add -inet6 %s/%d %s",

		ROUTE_PATH,
	        network,
	        r6->netbits,
	        gateway );

But I understand it should be done correctly.

#3 lore raw

Hi,

Quoted 9 lines · Sergey Matveychuk

Rough changing route command works for me:

argv_printf (&argv, "%s add -inet6 %s/%d %s",

		ROUTE_PATH,
	        network,
	        r6->netbits,
	        gateway );

But I understand it should be done correctly.

On TAP interfaces, in IPv4 you can have the route actually pointing to *other* hosts, not only to the OpenVPN server - and that needs more infrastructure which isn't fully there yet.

It *is* on my TODO list :)

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#4 lore raw
In reply to Sergey Matveychuk

Hi,

Quoted 3 lines · Sergey Matveychuk

I see openvpn adds ipv6 routes always for interface not addresses. I think it should be like in add_route(): something like is_on_link() to determ if interface should be added or address.

This has now been implemented for all affected platforms (2x Linux, FreeBSD, MacOS X/Darwin). Patches have just been sent to the list, but sf-mail is sllloowwwww today...

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...