Page 1 of 1

Native IPv6 support

Posted: Thu Apr 07, 2011 2:31 pm
by LordT
Hi,

I'm trying to setup a native IPv6 VPN (tap mode) with OpenVPN (2.1.4), but when I try to start
OpenVPN I get this error:

Thu Apr 7 13:03:14 2011 us=193127 RESOLVE: Cannot resolve host address: 2001:690:2080:8009::198: [HOST_NOT_FOUND] The specified host is unknown.
Thu Apr 7 13:03:14 2011 us=193142 Exiting

If I change local address in openvpn.conf to IPv4, everything works fine. I get an IPv4 and IPv6 address from my local network. But now I would like to setup a native IPv6 VPN (no IPv4).
I read some docs from OpenVPN site and it seems that OpenVPN doesn't support IPv6 yet :(
So, does anyone know if OpenVPN will support IPv6 soon? or if there is any patch?

## my openvpn.conf:
local 2001:690:2080:8009::198
port 443
proto tcp-server
dev tap0
client-to-client
cd /etc/openvpn/keys
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
mode server
max-clients 5
duplicate-cn
keepalive 5 120
tls-server
comp-lzo
status /var/log/openvpn-status.log 2
verb 4
log /var/log/openvpn.log
log-append /var/log/openvpn.log
user nobody
group nobody
persist-key
persist-tun
duplicate-cn
script-security 3

## ifconfig:
br0 Link encap:Ethernet HWaddr 76:8F:41:D0:86:01
inet addr:193.136.44.198 Bcast:193.136.44.255 Mask:255.255.255.0
inet6 addr: 2001:690:2080:8009::198/64 Scope:Global
inet6 addr: fe80::748f:41ff:fed0:8601/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:134626 errors:0 dropped:0 overruns:0 frame:0
TX packets:3362 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15193850 (14.4 MiB) TX bytes:556999 (543.9 KiB)

eth0 Link encap:Ethernet HWaddr 9E:6F:1A:63:2E:FA
inet6 addr: fe80::9c6f:1aff:fe63:2efa/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:134921 errors:0 dropped:0 overruns:0 frame:0
TX packets:3508 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17123014 (16.3 MiB) TX bytes:570726 (557.3 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1067 (1.0 KiB) TX bytes:1067 (1.0 KiB)

tap0 Link encap:Ethernet HWaddr 76:8F:41:D0:86:01
inet6 addr: fe80::748f:41ff:fed0:8601/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:19554 errors:0 dropped:111916 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:2483428 (2.3 MiB)

Thank you all

AMR

Re: Native IPv6 support

Posted: Fri Apr 08, 2011 10:18 am
by janjust
no, openvpn 2.1.4 , nor the upcoming openvpn 2.2, support native IPv6.
There is a patch (the -jjo patch) available to compile in IPv6 support.
This patch is scheduled to be included in openvpn 2.3, which enters the beta phase somewhere in june.