Skip to contentSkip to conversation

Disable tun-ipv6 warning

Openvpn-devel Arne Schwabe 2 participants 2 messages May 13, 2012 – May 14, 2012

lore
Share & tools
lore
#0 lore raw

Hey,

Openvpn will show the following warning, if I enable tun-ipv6 in the local config and not remote or vice versa:

WARNING: 'tun-ipv6' is present in remote config but missing in local config, remote='tun-ipv6'

From my understanding a ipv6 capable tun interface is always capable of ipv4 only. (On android there is no difference at all). Even without explicitly stating "tun-ipv6" openvpn will happily configure the ipv6 options. Is there anything this message warns about? (I know the obvious the configs do not match).

If the server does not push any ipv6 related messages running with tun-ipv6 works fine, and if the server does push ipv6 messages it works fine too.

Forgive me if I am missing something obvious.

Arne

#1 lore raw

Hi,

Quoted 5 lines · Arne Schwabe

Openvpn will show the following warning, if I enable tun-ipv6 in the local config and not remote or vice versa:

WARNING: 'tun-ipv6' is present in remote config but missing in local config, remote='tun-ipv6'

If I remember correctly, if tun-ipv6 is not enabled on the client side, the client will ignore pushed ipv6 ifconfig + routes.

So maybe the warning should not be tied to "tun-ipv6 is configured" but to "the server pushed something that the local config will auto-ignore".

(Right now the warning is coming from the generic "compare the client and server side config, and warn about differences" code - where it might make sense to exclude this option, and add a specific warning for those cases where it might cause surprises - namely: server with IPv6, server pushing IPv6 options, client without tun-ipv6)

Quoted 2 lines
Quoted 1 line

From my understanding a ipv6 capable tun interface is always capable of

ipv4 only.

Yes. On some systems, extra work is needed to make the tun interface handle IPv6 as well, and that's triggered by tun-ipv6 - but IPv4 will always work.

Quoted 2 lines

Even without explicitly stating "tun-ipv6" openvpn will happily configure the ipv6 options.

You're sure of that? This is what it shouldn't do, at least for pushed options (it will accept the options but not use them).

But anyway. I need to go through the code again and figure out what exactly tun-ipv6 is doing today *on which platform*, and maybe document that better...

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]...