References: Message-ID: <1407524277.37295.YahooMailNeo@...1930...> Date: Fri, 8 Aug 2014 11:57:57 -0700 From: randy bercheni In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1100835386-1270169471-1407524277=:37295" Subject: Re: [Openvpn-devel] Openvpn-devel Digest, Vol 99, Issue 3 Reply-To: randy bercheni List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "openvpn-devel@lists.sourceforge.net" ---1100835386-1270169471-1407524277=:37295 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable my vpn does not stay connected. I have to do it myself, sometimes that does= not work. On Friday, August 8, 2014 4:12 AM, "openvpn-devel-request@...282...= .net" wrote: =20 Send Openvpn-devel mailing list submissions to =A0=A0=A0 openvpn-devel@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit =A0=A0=A0 https://lists.sourceforge.net/lists/listinfo/openvpn-devel or, via email, send a message with subject or body 'help' to =A0=A0=A0 openvpn-devel-request@lists.sourceforge.net You can reach the person managing the list at =A0=A0=A0 openvpn-devel-owner@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Openvpn-devel digest..." Today's Topics: =A0 1. new OpenSSL Security Advisories (Mike Tancsa) =A0 2. Re: new OpenSSL Security Advisories (Steffan Karger) =A0 3. [PATCH] Tease apart ipv6 and ipv4 ifconfig code. (Gavin Shrubbery) =A0 4. Impact of latest OpenSSL vulnerabilities to OpenVPN =A0 =A0 =A0 (Samuli Sepp?nen) =A0 5. Re: Impact of latest OpenSSL vulnerabilities to=A0=A0=A0 OpenVPN =A0 =A0 =A0 (Samuli Sepp?nen) ---------------------------------------------------------------------- Message: 1 Date: Thu, 07 Aug 2014 17:11:47 -0400 From: Mike Tancsa Subject: [Openvpn-devel] new OpenSSL Security Advisories To: "openvpn-devel@lists.sourceforge.net" =A0=A0=A0 Message-ID: <53E3EB93.5090108@...1800...> Content-Type: text/plain; charset=3Dutf-8; format=3Dflowed Has anyone had a chance to evaluate the latest security issues and how=20 they might impact OpenVPN ? https://www.openssl.org/news/secadv_20140806.txt --=20 ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@...1800... Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada=A0 http://www.tancsa.com/ ------------------------------ Message: 2 Date: Thu, 07 Aug 2014 23:33:02 +0200 From: Steffan Karger Subject: Re: [Openvpn-devel] new OpenSSL Security Advisories To: openvpn-devel@lists.sourceforge.net Message-ID: <53E3F08E.40309@...1856...> Content-Type: text/plain; charset=3Dwindows-1252 Hi, On 07-08-14 23:11, Mike Tancsa wrote: > Has anyone had a chance to evaluate the latest security issues and how=20 > they might impact OpenVPN ? >=20 > https://www.openssl.org/news/secadv_20140806.txt Yes, announcement on the wiki: https://community.openvpn.net/openvpn/wiki/VulnerabilitiesFixedInOpenSSL1.0= .1i tl;dr: You're probably not affected. -Steffan ------------------------------ Message: 3 Date: Fri,=A0 8 Aug 2014 11:10:32 +1200 From: Gavin Shrubbery Subject: [Openvpn-devel] [PATCH] Tease apart ipv6 and ipv4 ifconfig =A0=A0=A0 code. To: openvpn-devel@lists.sourceforge.net Message-ID: =A0=A0=A0 <1407453032-588-1-git-send-email-gavin.shrubbery@...277...> This change makes it possible to configure an IPv6 address on a tunnel without also having an IPv4 address. Signed-off-by: Gavin Shrubbery --- src/openvpn/tun.c | 367 +++++++++++++++++++++++++++------------------------= --- 1 file changed, 183 insertions(+), 184 deletions(-) diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index ba4b15e..d1a8a03 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -634,16 +634,10 @@ do_ifconfig (struct tuntap *tt, =A0 =A0 =A0 const char *ifconfig_local =3D NULL; =A0 =A0 =A0 const char *ifconfig_remote_netmask =3D NULL; =A0 =A0 =A0 const char *ifconfig_broadcast =3D NULL; -=A0 =A0 =A0 const char *ifconfig_ipv6_local =3D NULL; -=A0 =A0 =A0 const char *ifconfig_ipv6_remote =3D NULL; -=A0 =A0 =A0 bool do_ipv6 =3D false; =A0 =A0 =A0 struct argv argv; =A0 =A0 =A0 argv_init (&argv); -=A0 =A0 =A0 msg( M_INFO, "do_ifconfig, tt->ipv6=3D%d, tt->did_ifconfig_ipv= 6_setup=3D%d", -=A0=A0=A0 =A0 =A0 =A0 =A0 =A0 tt->ipv6, tt->did_ifconfig_ipv6_setup ); - =A0 =A0 =A0 /* =A0 =A0 =A0 =A0 * We only handle TUN/TAP devices here, not --dev null devic= es. =A0 =A0 =A0 =A0 */ @@ -655,13 +649,6 @@ do_ifconfig (struct tuntap *tt, =A0 =A0 =A0 ifconfig_local =3D print_in_addr_t (tt->local, 0, &gc); =A0 =A0 =A0 ifconfig_remote_netmask =3D print_in_addr_t (tt->remote_netmas= k, 0, &gc); -=A0 =A0 =A0 if ( tt->ipv6 && tt->did_ifconfig_ipv6_setup ) -=A0 =A0 =A0 =A0 { -=A0=A0=A0 =A0 ifconfig_ipv6_local =3D print_in6_addr (tt->local_ipv6, 0, &= gc); -=A0=A0=A0 =A0 ifconfig_ipv6_remote =3D print_in6_addr (tt->remote_ipv6, 0,= &gc); -=A0=A0=A0 =A0 do_ipv6 =3D true; -=A0=A0=A0 } - =A0 =A0 =A0 /* =A0 =A0 =A0 =A0 * If TAP-style device, generate broadcast address. =A0 =A0 =A0 =A0 */ @@ -679,7 +666,6 @@ do_ifconfig (struct tuntap *tt, =A0 =A0 } #endif - #if defined(TARGET_LINUX) #ifdef ENABLE_IPROUTE =A0=A0=A0 /* @@ -720,19 +706,6 @@ do_ifconfig (struct tuntap *tt, =A0=A0=A0 =A0=A0=A0 =A0 argv_msg (M_INFO, &argv); =A0=A0=A0 =A0=A0=A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "Linux ip= addr add failed"); =A0=A0=A0 } -=A0 =A0 =A0 if ( do_ipv6 ) -=A0=A0=A0 { -=A0=A0=A0 =A0 argv_printf( &argv, -=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 "%s -6 addr add %s/%d dev %s", -=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 iproute_path, -=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 ifconfig_ipv6_local, -=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 tt->netbits_ipv6, -=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 actual -=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 ); -=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "Linux ip -6 addr = add failed"); -=A0=A0=A0 } -=A0 =A0 =A0 tt->did_ifconfig =3D true; #else =A0 =A0 =A0 if (tun) =A0=A0=A0 argv_printf (&argv, @@ -755,21 +728,8 @@ do_ifconfig (struct tuntap *tt, =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 ); =A0 =A0 =A0 argv_msg (M_INFO, &argv); =A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "Linux ifconfig fail= ed"); -=A0 =A0 =A0 if ( do_ipv6 ) -=A0=A0=A0 { -=A0=A0=A0 =A0 argv_printf (&argv, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 "%s %s add %s/%d", -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 IFCONFIG_PATH, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 actual, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 ifconfig_ipv6_local, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 tt->netbits_ipv6 -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 ); -=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "Linux ifconfig in= et6 failed"); -=A0=A0=A0 } -=A0 =A0 =A0 tt->did_ifconfig =3D true; - #endif /*ENABLE_IPROUTE*/ +=A0 =A0 =A0 tt->did_ifconfig =3D true; #elif defined(TARGET_SOLARIS) =A0 =A0 =A0 /* Solaris 2.6 (and 7?) cannot set all parameters in one go... @@ -824,52 +784,6 @@ do_ifconfig (struct tuntap *tt, =A0 =A0 =A0 if (!openvpn_execve_check (&argv, es, 0, "Solaris ifconfig pha= se-2 failed")) =A0=A0=A0 solaris_error_close (tt, es, actual, false); -=A0 =A0 =A0 if ( do_ipv6 ) -=A0 =A0 =A0 =A0 { - =A0=A0=A0 =A0 argv_printf (&argv, "%s %s inet6 unplumb", -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 IFCONFIG_PATH, actual ); -=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 openvpn_execve_check (&argv, es, 0, NULL); - -=A0=A0=A0 =A0 if ( tt->type =3D=3D DEV_TYPE_TUN ) -=A0=A0=A0 =A0 { -=A0=A0=A0 =A0 =A0 =A0 argv_printf (&argv, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 "%s %s inet6 plumb %s/%d %s up", -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 IFCONFIG_PATH, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 actual, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 ifconfig_ipv6_local, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 tt->netbits_ipv6, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 ifconfig_ipv6_remote -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 ); -=A0=A0=A0 =A0 =A0 } -=A0=A0=A0 =A0 else=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0= =A0 /* tap mode */ -=A0=A0=A0 =A0 =A0 { -=A0=A0=A0 =A0 =A0 =A0 /* base IPv6 tap interface needs to be brought up fi= rst -=A0=A0=A0 =A0 =A0 =A0 */ -=A0=A0=A0 =A0 =A0 =A0 argv_printf (&argv, "%s %s inet6 plumb up", -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 IFCONFIG_PATH, actual ); -=A0=A0=A0 =A0 =A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 =A0 =A0 if (!openvpn_execve_check (&argv, es, 0, "Solaris if= config IPv6 (prepare) failed")) -=A0=A0=A0 =A0=A0=A0 solaris_error_close (tt, es, actual, true); - -=A0=A0=A0 =A0 =A0 =A0 /* we might need to do "ifconfig %s inet6 auto-dhcp = drop" -=A0=A0=A0 =A0 =A0 =A0 * after the system has noticed the interface and fi= red up -=A0=A0=A0 =A0 =A0 =A0 * the DHCPv6 client - but this takes quite a while,= and the=20 -=A0=A0=A0 =A0 =A0 =A0 * server will ignore the DHCPv6 packets anyway.=A0 = So we don't. -=A0=A0=A0 =A0 =A0 =A0 */ - -=A0=A0=A0 =A0 =A0 =A0 /* static IPv6 addresses need to go to a subinterfac= e (tap0:1) -=A0=A0=A0 =A0 =A0 =A0 */ -=A0=A0=A0 =A0 =A0 =A0 argv_printf (&argv, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 "%s %s inet6 addif %s/%d up", -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 IFCONFIG_PATH, actual, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0 ifconfig_ipv6_local, tt->netbits_ipv= 6 ); -=A0=A0=A0 =A0 =A0 } -=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 if (!openvpn_execve_check (&argv, es, 0, "Solaris ifconfig I= Pv6 failed")) -=A0=A0=A0 =A0 =A0 solaris_error_close (tt, es, actual, true); -=A0 =A0 =A0 =A0 } - =A0 =A0 =A0 if (!tun && tt->topology =3D=3D TOP_SUBNET) =A0=A0=A0 { =A0=A0=A0 =A0 /* Add a network route for the local tun interface */ @@ -928,32 +842,9 @@ do_ifconfig (struct tuntap *tt, =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 ); =A0 =A0 =A0 argv_msg (M_INFO, &argv); =A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "OpenBSD ifconfig fa= iled"); -=A0 =A0 =A0 if ( do_ipv6 ) -=A0=A0=A0 { -=A0=A0=A0 =A0 argv_printf (&argv, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 "%s %s inet6 %s/%d", -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 IFCONFIG_PATH, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 actual, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 ifconfig_ipv6_local, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 tt->netbits_ipv6 -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 ); -=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "OpenBSD ifconfig = inet6 failed"); -=A0=A0=A0 =A0 /* and, hooray, we explicitely need to add a route... */ -=A0=A0=A0 =A0 add_route_connected_v6_net(tt, es); -=A0=A0=A0 } =A0 =A0 =A0 tt->did_ifconfig =3D true; - #elif defined(TARGET_NETBSD) - -/* whether or not NetBSD can do IPv6 can be seen by the availability of - * the TUNSIFHEAD ioctl() - see next TARGET_NETBSD block for more details - */ -#ifdef TUNSIFHEAD -# define NETBSD_MULTI_AF -#endif - =A0 =A0 =A0 if (tun) =A0=A0=A0 argv_printf (&argv, =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 "%s %s %s %s mtu %d netmask 255.255.255.2= 55 up", @@ -994,26 +885,6 @@ do_ifconfig (struct tuntap *tt, =A0 =A0 =A0 argv_msg (M_INFO, &argv); =A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "NetBSD ifconfig fai= led"); -=A0 =A0 =A0 if ( do_ipv6 ) -=A0=A0=A0 { -#ifdef NETBSD_MULTI_AF -=A0=A0=A0 =A0 argv_printf (&argv, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 "%s %s inet6 %s/%d", -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 IFCONFIG_PATH, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 actual, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 ifconfig_ipv6_local, -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 tt->netbits_ipv6 -=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 ); -=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "NetBSD ifconfig i= net6 failed"); - -=A0=A0=A0 =A0 /* and, hooray, we explicitely need to add a route... */ -=A0=A0=A0 =A0 add_route_connected_v6_net(tt, es); -#else -=A0=A0=A0 =A0 msg( M_INFO, "no IPv6 support for tun interfaces on NetBSD b= efore 4.0 (if your system is newer, recompile openvpn)" ); -=A0=A0=A0 =A0 tt->ipv6 =3D false; -#endif -=A0=A0=A0 } =A0 =A0 =A0 tt->did_ifconfig =3D true; #elif defined(TARGET_DARWIN) @@ -1079,22 +950,6 @@ do_ifconfig (struct tuntap *tt, =A0=A0=A0 =A0 add_route (&r, tt, 0, NULL, es); =A0=A0=A0 } -=A0 =A0 =A0 if ( do_ipv6 ) -=A0=A0=A0 { -=A0 =A0 =A0 =A0 =A0 argv_printf (&argv, -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "%s %s inet6 %= s/%d", -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 IFCONFIG_PATH, -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 actual, -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ifconfig_ipv6_= local, -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tt->netbits_ip= v6 -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ); -=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "MacOS X ifconfig = inet6 failed"); - -=A0=A0=A0 =A0 /* and, hooray, we explicitely need to add a route... */ -=A0=A0=A0 =A0 add_route_connected_v6_net(tt, es); -=A0=A0=A0 } - #elif defined(TARGET_FREEBSD)||defined(TARGET_DRAGONFLY) =A0 =A0 =A0 /* example: ifconfig tun2 10.2.0.2 10.2.0.1 mtu 1450 netmask 2= 55.255.255.255 up */ @@ -1145,19 +1000,6 @@ do_ifconfig (struct tuntap *tt, =A0 =A0 =A0 =A0 =A0 add_route (&r, tt, 0, NULL, es); =A0 =A0 =A0 =A0 } -=A0 =A0 =A0 if ( do_ipv6 ) -=A0=A0=A0 { -=A0 =A0 =A0 =A0 =A0 argv_printf (&argv, -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "%s %s inet6 %= s/%d", -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 IFCONFIG_PATH, -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 actual, -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ifconfig_ipv6_= local, -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tt->netbits_ip= v6 -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ); -=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); -=A0=A0=A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "FreeBSD ifconfig = inet6 failed"); -=A0=A0=A0 } - #elif defined (WIN32) =A0 =A0 =A0 { =A0=A0=A0 /* @@ -1196,35 +1038,192 @@ do_ifconfig (struct tuntap *tt, =A0=A0=A0 =A0 } =A0=A0=A0 tt->did_ifconfig =3D true; =A0 =A0 =A0 } +#else +=A0 =A0 =A0 msg (M_FATAL, "Sorry, but I don't know how to do 'ifconfig' co= mmands on this operating system.=A0 You should ifconfig your TUN/TAP device= manually or use an --up script."); +#endif +=A0 =A0 =A0 argv_reset (&argv); +=A0 } -=A0 =A0 /* IPv6 always uses "netsh" interface */ -=A0 =A0 if ( do_ipv6 ) -=A0 =A0 =A0 { -=A0=A0=A0 char * saved_actual; +=A0 if (tt->ipv6 && tt->did_ifconfig_ipv6_setup) +=A0 =A0 { +=A0 =A0 =A0 const char *ifconfig_ipv6_local =3D NULL; +=A0 =A0 =A0 const char *ifconfig_ipv6_remote =3D NULL; -=A0=A0=A0 if (!strcmp (actual, "NULL")) -=A0=A0=A0 =A0 msg (M_FATAL, "Error: When using --tun-ipv6, if you have mor= e than one TAP-Windows adapter, you must also specify --dev-node"); +=A0 =A0 =A0 struct argv argv; -=A0=A0=A0 /* example: netsh interface ipv6 set address MyTap 2001:608:8003= ::d store=3Dactive */ -=A0=A0=A0 argv_printf (&argv, -=A0=A0=A0 =A0=A0=A0 =A0 =A0 "%s%sc interface ipv6 set address %s %s store= =3Dactive", -=A0=A0=A0 =A0=A0=A0 =A0 =A0 get_win_sys_path(), -=A0=A0=A0 =A0=A0=A0 =A0 =A0 NETSH_PATH_SUFFIX, -=A0=A0=A0 =A0=A0=A0 =A0 =A0 actual, -=A0=A0=A0 =A0=A0=A0 =A0 =A0 ifconfig_ipv6_local ); +=A0 =A0 =A0 argv_init (&argv); -=A0=A0=A0 netsh_command (&argv, 4); +=A0 =A0 =A0 msg( M_INFO, "do_ifconfig, tt->ipv6=3D%d, tt->did_ifconfig_ipv= 6_setup=3D%d", +=A0=A0=A0 =A0 =A0 =A0 =A0 =A0 tt->ipv6, tt->did_ifconfig_ipv6_setup ); -=A0=A0=A0 /* explicit route needed */ -=A0=A0=A0 /* on windows, OpenVPN does ifconfig first, open_tun later, so -=A0=A0=A0 * tt->actual_name might not yet be initialized, but routing code -=A0=A0=A0 * needs to know interface name - point to "actual", restore lat= er -=A0=A0=A0 */ -=A0=A0=A0 saved_actual =3D tt->actual_name; -=A0=A0=A0 tt->actual_name =3D (char*) actual; -=A0=A0=A0 add_route_connected_v6_net(tt, es); -=A0=A0=A0 tt->actual_name =3D saved_actual; -=A0 =A0 =A0 } +=A0 =A0 =A0 ifconfig_ipv6_local =3D print_in6_addr (tt->local_ipv6, 0, &gc= ); +=A0 =A0 =A0 ifconfig_ipv6_remote =3D print_in6_addr (tt->remote_ipv6, 0, &= gc); + +#if defined(TARGET_LINUX) +#ifdef ENABLE_IPROUTE +=A0 =A0 =A0 argv_printf (&argv, +=A0=A0=A0 =A0=A0=A0 =A0 "%s -6 addr add %s/%d dev %s", +=A0=A0=A0 =A0=A0=A0 =A0 iproute_path, +=A0=A0=A0 =A0=A0=A0 =A0 ifconfig_ipv6_local, +=A0=A0=A0 =A0=A0=A0 =A0 tt->netbits_ipv6, +=A0=A0=A0 =A0=A0=A0 =A0 actual +=A0=A0=A0 =A0=A0=A0 =A0 ); +=A0 =A0 =A0 argv_msg (M_INFO, &argv); +=A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "Linux ip -6 addr ad= d failed"); +#else +=A0 =A0 =A0 argv_printf (&argv, +=A0=A0=A0 =A0=A0=A0 =A0 "%s %s add %s/%d", +=A0=A0=A0 =A0=A0=A0 =A0 IFCONFIG_PATH, +=A0=A0=A0 =A0=A0=A0 =A0 actual, +=A0=A0=A0 =A0=A0=A0 =A0 ifconfig_ipv6_local, +=A0=A0=A0 =A0=A0=A0 =A0 tt->netbits_ipv6 +=A0=A0=A0 =A0=A0=A0 =A0 ); +=A0 =A0 =A0 argv_msg (M_INFO, &argv); +=A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "Linux ifconfig inet= 6 failed"); +#endif /*ENABLE_IPROUTE*/ +#elif defined(TARGET_SOLARIS) + +=A0 =A0 =A0 argv_printf (&argv, "%s %s inet6 unplumb", +=A0=A0=A0 =A0=A0=A0 =A0 IFCONFIG_PATH, actual ); +=A0 =A0 =A0 argv_msg (M_INFO, &argv); +=A0 =A0 =A0 openvpn_execve_check (&argv, es, 0, NULL); + +=A0 =A0 =A0 if ( tt->type =3D=3D DEV_TYPE_TUN ) +=A0=A0=A0 { +=A0=A0=A0 =A0 argv_printf (&argv, +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 "%s %s inet6 plumb %s/%d %s up", +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 IFCONFIG_PATH, +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 actual, +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 ifconfig_ipv6_local, +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 tt->netbits_ipv6, +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 ifconfig_ipv6_remote +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 ); +=A0=A0=A0 } +=A0 =A0 =A0 else=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0= =A0 /* tap mode */ +=A0=A0=A0 { +=A0=A0=A0 =A0 /* base IPv6 tap interface needs to be brought up first +=A0=A0=A0 =A0 */ +=A0=A0=A0 =A0 argv_printf (&argv, "%s %s inet6 plumb up", +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 IFCONFIG_PATH, actual ); +=A0=A0=A0 =A0 argv_msg (M_INFO, &argv); +=A0=A0=A0 =A0 if (!openvpn_execve_check (&argv, es, 0, "Solaris ifconfig I= Pv6 (prepare) failed")) +=A0=A0=A0 =A0 =A0 solaris_error_close (tt, es, actual, true); + +=A0=A0=A0 =A0 /* we might need to do "ifconfig %s inet6 auto-dhcp drop" +=A0=A0=A0 =A0 * after the system has noticed the interface and fired up +=A0=A0=A0 =A0 * the DHCPv6 client - but this takes quite a while, and the= =20 +=A0=A0=A0 =A0 * server will ignore the DHCPv6 packets anyway.=A0 So we do= n't. +=A0=A0=A0 =A0 */ + +=A0=A0=A0 =A0 /* static IPv6 addresses need to go to a subinterface (tap0:= 1) +=A0=A0=A0 =A0 */ +=A0=A0=A0 =A0 argv_printf (&argv, +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 "%s %s inet6 addif %s/%d up", +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 IFCONFIG_PATH, actual, +=A0=A0=A0 =A0=A0=A0 =A0 =A0 =A0 ifconfig_ipv6_local, tt->netbits_ipv6 ); +=A0=A0=A0 } +=A0 =A0 =A0 argv_msg (M_INFO, &argv); +=A0 =A0 =A0 if (!openvpn_execve_check (&argv, es, 0, "Solaris ifconfig IPv= 6 failed")) +=A0=A0=A0 solaris_error_close (tt, es, actual, true); + +#elif defined(TARGET_OPENBSD) + +=A0 =A0 =A0 argv_printf (&argv, +=A0=A0=A0 =A0=A0=A0 =A0 "%s %s inet6 %s/%d", +=A0=A0=A0 =A0=A0=A0 =A0 IFCONFIG_PATH, +=A0=A0=A0 =A0=A0=A0 =A0 actual, +=A0=A0=A0 =A0=A0=A0 =A0 ifconfig_ipv6_local, +=A0=A0=A0 =A0=A0=A0 =A0 tt->netbits_ipv6 +=A0=A0=A0 =A0=A0=A0 =A0 ); +=A0 =A0 =A0 argv_msg (M_INFO, &argv); +=A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "OpenBSD ifconfig in= et6 failed"); + +=A0 =A0 =A0 /* and, hooray, we explicitely need to add a route... */ +=A0 =A0 =A0 add_route_connected_v6_net(tt, es); + +#elif defined(TARGET_NETBSD) + +/* whether or not NetBSD can do IPv6 can be seen by the availability of + * the TUNSIFHEAD ioctl() - see next TARGET_NETBSD block for more details + */ +#ifdef TUNSIFHEAD +# define NETBSD_MULTI_AF +#endif + +#ifdef NETBSD_MULTI_AF +=A0 =A0 =A0 argv_printf (&argv, +=A0=A0=A0 =A0=A0=A0 =A0 "%s %s inet6 %s/%d", +=A0=A0=A0 =A0=A0=A0 =A0 IFCONFIG_PATH, +=A0=A0=A0 =A0=A0=A0 =A0 actual, +=A0=A0=A0 =A0=A0=A0 =A0 ifconfig_ipv6_local, +=A0=A0=A0 =A0=A0=A0 =A0 tt->netbits_ipv6 +=A0=A0=A0 =A0=A0=A0 =A0 ); +=A0 =A0 =A0 argv_msg (M_INFO, &argv); +=A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "NetBSD ifconfig ine= t6 failed"); + +=A0 =A0 =A0 /* and, hooray, we explicitely need to add a route... */ +=A0 =A0 =A0 add_route_connected_v6_net(tt, es); +#else +=A0 =A0 =A0 msg( M_INFO, "no IPv6 support for tun interfaces on NetBSD bef= ore 4.0 (if your system is newer, recompile openvpn)" ); +=A0 =A0 =A0 tt->ipv6 =3D false; +#endif + +#elif defined(TARGET_DARWIN) +=A0 =A0 =A0 /* +=A0 =A0 =A0 * Darwin (i.e. Mac OS X) seems to exhibit similar behaviour t= o OpenBSD... +=A0 =A0 =A0 */ +=A0 =A0 =A0 argv_printf (&argv, +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "%s %s inet6 %s/%d", +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 IFCONFIG_PATH, +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 actual, +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ifconfig_ipv6_local, +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tt->netbits_ipv6 +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ); +=A0 =A0 =A0 argv_msg (M_INFO, &argv); +=A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "MacOS X ifconfig in= et6 failed"); + +=A0 =A0 =A0 /* and, hooray, we explicitely need to add a route... */ +=A0 =A0 =A0 add_route_connected_v6_net(tt, es); + + +#elif defined(TARGET_FREEBSD)||defined(TARGET_DRAGONFLY) + +=A0 =A0 =A0 argv_printf (&argv, +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "%s %s inet6 %s/%d", +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 IFCONFIG_PATH, +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 actual, +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ifconfig_ipv6_local, +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tt->netbits_ipv6 +=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ); +=A0 =A0 =A0 argv_msg (M_INFO, &argv); +=A0 =A0 =A0 openvpn_execve_check (&argv, es, S_FATAL, "FreeBSD ifconfig in= et6 failed"); + +#elif defined (WIN32) +=A0 =A0 =A0 /* IPv6 always uses "netsh" interface */ +=A0 =A0 =A0 char * saved_actual; + +=A0 =A0 =A0 if (!strcmp (actual, "NULL")) +=A0 =A0 =A0 =A0 msg (M_FATAL, "Error: When using --tun-ipv6, if you have m= ore than one TAP-Windows adapter, you must also specify --dev-node"); + +=A0 =A0 =A0 /* example: netsh interface ipv6 set address MyTap 2001:608:80= 03::d store=3Dactive */ +=A0 =A0 =A0 argv_printf (&argv, +=A0=A0=A0 =A0=A0=A0 =A0 "%s%sc interface ipv6 set address %s %s store=3Dac= tive", +=A0=A0=A0 =A0=A0=A0 =A0 get_win_sys_path(), +=A0=A0=A0 =A0=A0=A0 =A0 NETSH_PATH_SUFFIX, +=A0=A0=A0 =A0=A0=A0 =A0 actual, +=A0=A0=A0 =A0=A0=A0 =A0 ifconfig_ipv6_local ); + +=A0 =A0 =A0 netsh_command (&argv, 4); + +=A0 =A0 =A0 /* explicit route needed */ +=A0 =A0 =A0 /* on windows, OpenVPN does ifconfig first, open_tun later, so +=A0 =A0 =A0 * tt->actual_name might not yet be initialized, but routing c= ode +=A0 =A0 =A0 * needs to know interface name - point to "actual", restore l= ater +=A0 =A0 =A0 */ +=A0 =A0 =A0 saved_actual =3D tt->actual_name; +=A0 =A0 =A0 tt->actual_name =3D (char*) actual; +=A0 =A0 =A0 add_route_connected_v6_net(tt, es); +=A0 =A0 =A0 tt->actual_name =3D saved_actual; #else =A0 =A0 =A0 msg (M_FATAL, "Sorry, but I don't know how to do 'ifconfig' co= mmands on this operating system.=A0 You should ifconfig your TUN/TAP device= manually or use an --up script."); #endif @@ -4932,7 +4931,7 @@ open_tun (const char *dev, const char *dev_type, cons= t char *dev_node, struct tu =A0 if (tt->type =3D=3D DEV_TYPE_TUN) =A0 =A0 { -=A0 =A0 =A0 if (!tt->did_ifconfig_setup) +=A0 =A0 =A0 if (!(tt->did_ifconfig_setup || tt->did_ifconfig_ipv6_setup)) =A0=A0=A0 { =A0=A0=A0 =A0 msg (M_FATAL, "ERROR: --dev tun also requires --ifconfig"); =A0=A0=A0 } --=20 2.0.2 ------------------------------ Message: 4 Date: Fri, 08 Aug 2014 10:10:42 +0300 From: Samuli Sepp?nen Subject: [Openvpn-devel] Impact of latest OpenSSL vulnerabilities to =A0=A0=A0 OpenVPN To: "openvpn-devel@lists.sourceforge.net" =A0=A0=A0 , =A0=A0=A0 "openvpn-users@lists.sourceforge.net" =A0=A0=A0 , =A0=A0=A0 "openvpn-announce@lists.sourceforge.net" =A0=A0=A0 Message-ID: <53E477F2.8080003@...515...> Content-Type: text/plain; charset=3Diso-8859-15 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, Information on how the latest OpenSSL vulnerabilities affect OpenVPN is available here: Yesterday's Windows installer releases bundle OpenSSL 1.0.0i, which is immune to the two issues which may[1] affect OpenVPN. Updated installers are available here: Best regards, - --=20 Samuli Sepp?nen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock [1] Depending on it's configuration -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlPkd/IACgkQwp2X7RmNIqOoWwCeLR13x//Vxm4LRXilRlwkxhtP XcoAoMwIn+y3iYkofgL9TFiIK4YGMOK8 =3DmsAA -----END PGP SIGNATURE----- ------------------------------ Message: 5 Date: Fri, 08 Aug 2014 11:11:23 +0300 From: Samuli Sepp?nen Subject: Re: [Openvpn-devel] Impact of latest OpenSSL vulnerabilities =A0=A0=A0 to=A0=A0=A0 OpenVPN To: "openvpn-devel@lists.sourceforge.net" =A0=A0=A0 , =A0=A0=A0 "openvpn-users@lists.sourceforge.net" =A0=A0=A0 , =A0=A0=A0 "openvpn-announce@lists.sourceforge.net" =A0=A0=A0 Message-ID: <53E4862B.1080709@...515...> Content-Type: text/plain; charset=3Diso-8859-15 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Hi all, > > Information on how the latest OpenSSL vulnerabilities affect OpenVPN is > available here: > > > > Yesterday's Windows installer releases bundle OpenSSL 1.0.0i, which is > immune to the two issues which may[1] affect OpenVPN. Updated installers > are available here: > Responding to myself before somebody else corrects me. The Windows installers bundle 1.0.1i (not 1.0.0i). Sorry for the noise. - --=20 Samuli Sepp?nen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlPkhisACgkQwp2X7RmNIqPKIgCeNsM6/3Z1Y9IDMMOYKQztHeWQ 76cAn1t8clBRaBWhhEAY2pYI8LHbzjSC =3DXS4x -----END PGP SIGNATURE----- ------------------------------ ---------------------------------------------------------------------------= --- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ------------------------------ _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel End of Openvpn-devel Digest, Vol 99, Issue 3 ********************************************= ---1100835386-1270169471-1407524277=:37295 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
my vpn does not stay connected. I have to do it my= self, sometimes that does not work.


=
On F= riday, August 8, 2014 4:12 AM, "openvpn-devel-request@lists.sourceforge.net= " <openvpn-devel-request@lists.sourceforge.net> wrote:


Send Openvpn-devel mailing li= st submissions to
    openvpn-devel@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
 &nb= sp;  https://lists.sourceforge.net/lists/listinfo/openvp= n-devel
or, via email, send a message with subject or body 'help' to=
    o= penvpn-devel-request@lists.sourceforge.net

You can reach the per= son managing the list at
    openvpn-devel-owner@lists.sourceforge.net

Whe= n replying, please edit your Subject line so it is more specific
than "R= e: Contents of Openvpn-devel digest..."


Today's Topics:

&nb= sp; 1. new OpenSSL Security Advisories (Mike Tancsa)
  2. Re: new= OpenSSL Security Advisories (Steffan Karger)
  3. [PATCH] Tease a= part ipv6 and ipv4 ifconfig code. (Gavin Shrubbery)
  4. Impact of= latest OpenSSL vulnerabilities to OpenVPN
      (Samuli = Sepp?nen)
  5. Re: Impact of latest OpenSSL vulnerabilities to&nbs= p;   OpenVPN
      (Samuli Sepp?nen)

----------------------------------------------------------------------
=
Message: 1
Date: Thu, 07 Aug 2014 17:11:47 -0400
From: Mike Tancs= a <mike@...1800...>
Subject: [Openvpn-devel] new OpenSSL Security A= dvisories
To: "openvpn-devel@...1466...= urceforge.net"
    <openvpn-devel@lists.sourceforge.net>
Message-ID: <53E3EB93.5090108@...1800...>
Content-Type: text/plain= ; charset=3Dutf-8; format=3Dflowed

Has anyone had a chance to evalua= te the latest security issues and how
they might impact OpenVPN ?
https://www.openssl.org/news/secadv_20140806.txt


-- -------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communi= cations, mike@...1800...
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada  http://www.tancsa.com/



---= ---------------------------

Message: 2
Date: Thu, 07 Aug 2014 23:= 33:02 +0200
From: Steffan Karger <steffan@...1856...>
Subj= ect: Re: [Openvpn-devel] new OpenSSL Security Advisories
To: openvpn-devel@lists.sourceforge.net
Message= -ID: <53E3F08E.40309@...1856...>
Content-Type: = text/plain; charset=3Dwindows-1252

Hi,

On 07-08-14 23:11, Mik= e Tancsa wrote:
> Has anyone had a chance to evaluate the latest secu= rity issues and how
> they might impact OpenVPN ?
>
> https://www.openssl.org/news/secadv_20140806.txt

Yes, announce= ment on the wiki:
https://community.op= envpn.net/openvpn/wiki/VulnerabilitiesFixedInOpenSSL1.0.1i

tl;dr= : You're probably not affected.

-Steffan



------------= ------------------

Message: 3
Date: Fri,  8 Aug 2014 11:10:3= 2 +1200
From: Gavin Shrubbery <gavin.shrubbery@...1354...= ..>
Subject: [Openvpn-devel] [PATCH] Tease apart ipv6 and ipv4 if= config
    code.
To: openvpn-devel@lists.sourceforge.net
Message-ID:
  &nb= sp; <1407453032-588-1-git-send-email-gavin.shrubbery@...277...><= br>
This change makes it possible to configure an IPv6 address on a
t= unnel without also having an IPv4 address.

Signed-off-by: Gavin Shru= bbery <gavin.shrubbery@...277...>
---
src/o= penvpn/tun.c | 367 +++++++++++++++++++++++++++--------------------------- 1 file changed, 183 insertions(+), 184 deletions(-)

diff --git a/= src/openvpn/tun.c b/src/openvpn/tun.c
index ba4b15e..d1a8a03 100644
-= -- a/src/openvpn/tun.c
+++ b/src/openvpn/tun.c
@@ -634,16 +634,10 @@ = do_ifconfig (struct tuntap *tt,
      const char *ifconf= ig_local =3D NULL;
      const char *ifconfig_remote_netmask =3D NULL;
      const char *if= config_broadcast =3D NULL;
-      const char *ifconfig_ip= v6_local =3D NULL;
-      const char *ifconfig_ipv6_remot= e =3D NULL;
-      bool do_ipv6 =3D false;
  &nbs= p;   struct argv argv;

      argv_init (&= argv);

-      msg( M_INFO, "do_ifconfig, tt->ipv6= =3D%d, tt->did_ifconfig_ipv6_setup=3D%d",
-      =         tt->ipv6, tt->did_ifconfig_ipv6_setup );=
-
      /*
        * We only = handle TUN/TAP devices here, not --dev null devices.
     = ;   */
@@ -655,13 +649,6 @@ do_ifconfig (struct tuntap *tt,
&nbs= p;     ifconfig_local =3D print_in_addr_t (tt->local, 0, &= ;gc);
      ifconfig_remote_netmask =3D print_in_addr_t (tt->remote_netmask, 0, &gc);

-      if ( tt= ->ipv6 && tt->did_ifconfig_ipv6_setup )
-    &nb= sp;   {
-      ifconfig_ipv6_local =3D print_in= 6_addr (tt->local_ipv6, 0, &gc);
-      ifcon= fig_ipv6_remote =3D print_in6_addr (tt->remote_ipv6, 0, &gc);
-&n= bsp;     do_ipv6 =3D true;
-    }
-
=       /*
        * If TAP-style devi= ce, generate broadcast address.
        */
@@ -67= 9,7 +666,6 @@ do_ifconfig (struct tuntap *tt,
    }
#endi= f

-
#if defined(TARGET_LINUX)
#ifdef ENABLE_IPROUTE
&nb= sp;   /*
@@ -720,19 +706,6 @@ do_ifconfig (struct tuntap *tt,<= br>           argv_msg (M_INFO, &arg= v);
          openvpn_execve_check (&argv, es, S_FATAL, "Linux ip addr add failed");
  &nbs= p; }
-      if ( do_ipv6 )
-    {
-&= nbsp;     argv_printf( &argv,
-    &nb= sp;         "%s -6 addr add %s/%d dev %s",
-&nb= sp;             iproute_path,
-&= nbsp;             ifconfig_ipv6_loc= al,
-              tt->n= etbits_ipv6,
-             = actual
-              );-      argv_msg (M_INFO, &argv);
-  =     openvpn_execve_check (&argv, es, S_FATAL, "Linux ip -6 ad= dr add failed");
-    }
-      tt->d= id_ifconfig =3D true;
#else
      if (tun)
    argv_printf (&argv,
@@ -755,21 +728,8 @@ do_ifco= nfig (struct tuntap *tt,
         &n= bsp;    );
      argv_msg (M_INFO, &argv);=
      openvpn_execve_check (&argv, es, S_FATAL, "Li= nux ifconfig failed");
-      if ( do_ipv6 )
- &n= bsp;  {
-      argv_printf (&argv,
-&nbs= p;             "%s %s add %s/%= d",
-              IFC= ONFIG_PATH,
-            &n= bsp; actual,
-            &= nbsp; ifconfig_ipv6_local,
-         =      tt->netbits_ipv6
-      =         );
-      argv_msg (M_INFO, &argv);
-      openvpn_execve= _check (&argv, es, S_FATAL, "Linux ifconfig inet6 failed");
- &= nbsp;  }
-      tt->did_ifconfig =3D true;
- #endif /*ENABLE_IPROUTE*/
+      tt->did_ifconfig = =3D true;
#elif defined(TARGET_SOLARIS)

      /= * Solaris 2.6 (and 7?) cannot set all parameters in one go...
@@ -824,52= +784,6 @@ do_ifconfig (struct tuntap *tt,
      if (!op= envpn_execve_check (&argv, es, 0, "Solaris ifconfig phase-2 failed"))     solaris_error_close (tt, es, actual, false);

= -      if ( do_ipv6 )
-        {
-=       argv_printf (&argv, "%s %s inet6 unplumb",-                I= FCONFIG_PATH, actual );
-      argv_msg (M_INFO, &argv);
-      openvpn_execve_check (&argv,= es, 0, NULL);
-
-      if ( tt->type =3D=3D D= EV_TYPE_TUN )
-      {
-     = ;     argv_printf (&argv,
-      =           "%s %s inet6 plumb %s/%d %s up",-                IF= CONFIG_PATH,
-            &= nbsp;   actual,
-          =       ifconfig_ipv6_local,
-     &nbs= p;          tt->netbits_ipv6,
- &n= bsp;              ifconfig_ipv= 6_remote
-             = ;   );
-        }
-      else        =                = /* tap mode */
-        {
-  &nbs= p;       /* base IPv6 tap interface needs to be brought up f= irst
-          */
-   =       argv_printf (&argv, "%s %s inet6 plumb up",
-&= nbsp;               IFCON= FIG_PATH, actual );
-          argv_msg (M= _INFO, &argv);
-          if (!openvpn= _execve_check (&argv, es, 0, "Solaris ifconfig IPv6 (prepare) failed"))=
-        solaris_error_close (tt, es, act= ual, true);
-
-          /* we might ne= ed to do "ifconfig %s inet6 auto-dhcp drop"
-          * after the system has noticed the interface and fir= ed up
-          * the DHCPv6 client - bu= t this takes quite a while, and the
-        &= nbsp; * server will ignore the DHCPv6 packets anyway.  So we don't.-          */
-
-    =       /* static IPv6 addresses need to go to a subinterface = (tap0:1)
-          */
-  &n= bsp;       argv_printf (&argv,
-    &n= bsp;           "%s %s inet6 addif %s/%d = up",
-              &n= bsp; IFCONFIG_PATH, actual,
-         = ;       ifconfig_ipv6_local, tt->netbits_ipv6 );
= -        }
-      argv_msg (M_INFO, &argv);
-      if (!openvpn_e= xecve_check (&argv, es, 0, "Solaris ifconfig IPv6 failed"))
- &= nbsp;      solaris_error_close (tt, es, actual, true);
-&= nbsp;       }
-
      if (!tun &&a= mp; tt->topology =3D=3D TOP_SUBNET)
    {
 &= nbsp;    /* Add a network route for the local tun interface */@@ -928,32 +842,9 @@ do_ifconfig (struct tuntap *tt,
   = ;           );
      = argv_msg (M_INFO, &argv);
      openvpn_execve_check= (&argv, es, S_FATAL, "OpenBSD ifconfig failed");
-    &nb= sp; if ( do_ipv6 )
-    {
-      a= rgv_printf (&argv,
-         &nbs= p;    "%s %s inet6 %s/%d",
-              IFCONFIG_PATH,
- &nbs= p;            actual,
- &nb= sp;            ifconfig_ipv6_local,=
-              tt->= ;netbits_ipv6
-            =   );
-      argv_msg (M_INFO, &argv);
-&= nbsp;     openvpn_execve_check (&argv, es, S_FATAL, "Ope= nBSD ifconfig inet6 failed");

-      /* and, ho= oray, we explicitely need to add a route... */
-     = ; add_route_connected_v6_net(tt, es);
-    }
  &n= bsp;   tt->did_ifconfig =3D true;
-
#elif defined(TARGET_NE= TBSD)
-
-/* whether or not NetBSD can do IPv6 can be seen by the avai= lability of
- * the TUNSIFHEAD ioctl() - see next TARGET_NETBSD block for more details
- */
-#ifdef TUNSIFHEAD
-# define NETBSD_M= ULTI_AF
-#endif
-
      if (tun)
  &= nbsp; argv_printf (&argv,
        &nb= sp;     "%s %s %s %s mtu %d netmask 255.255.255.255 up",
= @@ -994,26 +885,6 @@ do_ifconfig (struct tuntap *tt,
     = ; argv_msg (M_INFO, &argv);
      openvpn_execve_ch= eck (&argv, es, S_FATAL, "NetBSD ifconfig failed");

-  &nb= sp;   if ( do_ipv6 )
-    {
-#ifdef NETBSD_MULTI_= AF
-      argv_printf (&argv,
-  &n= bsp;           "%s %s inet6 %s/%d",
-=               IFCONFIG_PA= TH,
-              act= ual,
-              ifconfig_ipv6_local,
-        &nbs= p;     tt->netbits_ipv6
-     &nbs= p;        );
-      argv_ms= g (M_INFO, &argv);
-      openvpn_execve_check (= &argv, es, S_FATAL, "NetBSD ifconfig inet6 failed");
-
- &nb= sp;    /* and, hooray, we explicitely need to add a route... */-      add_route_connected_v6_net(tt, es);
-#else<= br>-      msg( M_INFO, "no IPv6 support for tun interfa= ces on NetBSD before 4.0 (if your system is newer, recompile openvpn)" );-      tt->ipv6 =3D false;
-#endif
- &n= bsp;  }
      tt->did_ifconfig =3D true;
#elif defined(TARGET_DARWIN)
@@ -1079,22 +950,6 @@ do_ifconfig (struct= tuntap *tt,
      add_route (&r, tt, 0, NULL, es);
    }

-      if ( do_= ipv6 )
-    {
-          argv= _printf (&argv,
-              &n= bsp;               "%s %s inet6 %s/%d",<= br>-                    &= nbsp;         IFCONFIG_PATH,
-      &= nbsp;                    =   actual,
-               =               ifconfig_ipv6_local,
-=                      = ;         tt->netbits_ipv6
-      =                      = ;   );
-      argv_msg (M_INFO, &argv);
-      openvpn_execve_check (&argv,= es, S_FATAL, "MacOS X ifconfig inet6 failed");
-
-   =   /* and, hooray, we explicitely need to add a route... */
- =      add_route_connected_v6_net(tt, es);
-  &nb= sp; }
-
#elif defined(TARGET_FREEBSD)||defined(TARGET_DRAGONFLY)
=
      /* example: ifconfig tun2 10.2.0.2 10.2.0.1 mtu = 1450 netmask 255.255.255.255 up */
@@ -1145,19 +1000,6 @@ do_ifconfig (s= truct tuntap *tt,
          add_route (&r,= tt, 0, NULL, es);
        }

-   =   if ( do_ipv6 )
-    {
-      &n= bsp;   argv_printf (&argv,
-          =                     "%s %= s inet6 %s/%d",
-                              IFCONFIG_PATH,
= -                    &nbs= p;         actual,
-        &nbs= p;                     if= config_ipv6_local,
-              &nb= sp;               tt->netbits_ipv6-                    &nb= sp;         );
-      argv_msg (= M_INFO, &argv);
-      openvpn_execve_check (&am= p;argv, es, S_FATAL, "FreeBSD ifconfig inet6 failed");
-  &nbs= p; }
-
#elif defined (WIN32)
      {
 &n= bsp;  /*
@@ -1196,35 +1038,192 @@ do_ifconfig (struct tuntap *tt,       }
    tt->did_ifconfig =3D true;
      }
+#else
+&nb= sp;     msg (M_FATAL, "Sorry, but I don't know how to do 'ifconfi= g' commands on this operating system.  You should ifconfig your TUN/TA= P device manually or use an --up script.");
+#endif
+    &n= bsp; argv_reset (&argv);
+  }

-    /* IPv6 al= ways uses "netsh" interface */
-    if ( do_ipv6 )
-  =     {
-    char * saved_actual;
+  if (= tt->ipv6 && tt->did_ifconfig_ipv6_setup)
+    {<= br>+      const char *ifconfig_ipv6_local =3D NULL;
+&nbs= p;     const char *ifconfig_ipv6_remote =3D NULL;

- =    if (!strcmp (actual, "NULL"))
-      ms= g (M_FATAL, "Error: When using --tun-ipv6, if you have more than one TAP-Wi= ndows adapter, you must also specify --dev-node");
+      struct argv argv;

-    /* example: netsh int= erface ipv6 set address MyTap 2001:608:8003::d store=3Dactive */
- =    argv_printf (&argv,
-      &nb= sp;     "%s%sc interface ipv6 set address %s %s store=3Dactive",<= br>-            get_win_sys_path()= ,
-            NETSH_PATH_SUFFI= X,
-            actual,
-&nb= sp;           ifconfig_ipv6_local );+      argv_init (&argv);

-    n= etsh_command (&argv, 4);
+      msg( M_INFO, "do_ifco= nfig, tt->ipv6=3D%d, tt->did_ifconfig_ipv6_setup=3D%d",
+ &nb= sp;            tt->ipv6, tt->did_ifcon= fig_ipv6_setup );

-    /* explicit route needed */
-    /* on windows, OpenVPN does ifconfig first, open= _tun later, so
-    * tt->actual_name might not yet b= e initialized, but routing code
-    * needs to know int= erface name - point to "actual", restore later
-    */-    saved_actual =3D tt->actual_name;
-  =   tt->actual_name =3D (char*) actual;
-    add_ro= ute_connected_v6_net(tt, es);
-    tt->actual_name =3D= saved_actual;
-      }
+      ifconfig= _ipv6_local =3D print_in6_addr (tt->local_ipv6, 0, &gc);
+  =     ifconfig_ipv6_remote =3D print_in6_addr (tt->remote_ipv6, = 0, &gc);
+
+#if defined(TARGET_LINUX)
+#ifdef ENABLE_IPROUTE+      argv_printf (&argv,
+    &nbs= p;     "%s -6 addr add %s/%d dev %s",
+          iproute_path,
+      = ;    ifconfig_ipv6_local,
+      &nbs= p;   tt->netbits_ipv6,
+        &n= bsp; actual
+          );
+  =     argv_msg (M_INFO, &argv);
+      openvp= n_execve_check (&argv, es, S_FATAL, "Linux ip -6 addr add failed");
= +#else
+      argv_printf (&argv,
+  &nb= sp;       "%s %s add %s/%d",
+    &nb= sp;     IFCONFIG_PATH,
+      &n= bsp;   actual,
+          ifconf= ig_ipv6_local,
+          tt->netb= its_ipv6
+          );
+  &nb= sp;   argv_msg (M_INFO, &argv);
+      openvpn_execve_check (&argv, es, S_FATAL, "Linux ifconfig inet6 failed= ");
+#endif /*ENABLE_IPROUTE*/
+#elif defined(TARGET_SOLARIS)
++      argv_printf (&argv, "%s %s inet6 unplumb",
+&= nbsp;         IFCONFIG_PATH, actual );
+&n= bsp;     argv_msg (M_INFO, &argv);
+      o= penvpn_execve_check (&argv, es, 0, NULL);
+
+     = if ( tt->type =3D=3D DEV_TYPE_TUN )
+    {
+ =      argv_printf (&argv,
+     &n= bsp;        "%s %s inet6 plumb %s/%d %s up",
+ =              IFCONFIG_PATH,
+&nb= sp;             actual,
+ &= nbsp;            ifconfig_ipv6_local,+              tt->netbits_ipv6,
+          &nbs= p;   ifconfig_ipv6_remote
+        &n= bsp;     );
+    }
+      els= e               = ;         /* tap mode */
+  &nbs= p; {
+      /* base IPv6 tap interface needs to be b= rought up first
+      */
+    &n= bsp; argv_printf (&argv, "%s %s inet6 plumb up",
+   =           IFCONFIG_PATH, actual );
+ = ;     argv_msg (M_INFO, &argv);
+    &= nbsp; if (!openvpn_execve_check (&argv, es, 0, "Solaris ifconfig IPv6 (= prepare) failed"))
+        solaris_error_close= (tt, es, actual, true);
+
+      /* we might need to do "ifconfig %s inet6 auto-dhcp drop"
+   =   * after the system has noticed the interface and fired up
+&nbs= p;     * the DHCPv6 client - but this takes quite a while, = and the
+      * server will ignore the DHCPv6 pac= kets anyway.  So we don't.
+      */
+
+=       /* static IPv6 addresses need to go to a subinter= face (tap0:1)
+      */
+    &nbs= p; argv_printf (&argv,
+         =     "%s %s inet6 addif %s/%d up",
+     &= nbsp;        IFCONFIG_PATH, actual,
+  &nb= sp;           ifconfig_ipv6_local, tt->net= bits_ipv6 );
+    }
+      argv_msg (M_= INFO, &argv);
+      if (!openvpn_execve_check (&argv, es, 0, "Solaris ifconfig IPv6 failed"))
+   = solaris_error_close (tt, es, actual, true);
+
+#elif defined(TARGET_= OPENBSD)
+
+      argv_printf (&argv,
+ &n= bsp;        "%s %s inet6 %s/%d",
+  &= nbsp;       IFCONFIG_PATH,
+     = ;     actual,
+        &nbs= p; ifconfig_ipv6_local,
+          tt= ->netbits_ipv6
+          );
+&= nbsp;     argv_msg (M_INFO, &argv);
+      = openvpn_execve_check (&argv, es, S_FATAL, "OpenBSD ifconfig inet6 faile= d");
+
+      /* and, hooray, we explicitely need to a= dd a route... */
+      add_route_connected_v6_net(tt, es= );
+
+#elif defined(TARGET_NETBSD)
+
+/* whether or not NetBSD can do IPv6 can be seen by the availability of
+ * the TUNSIFHEA= D ioctl() - see next TARGET_NETBSD block for more details
+ */
+#ifde= f TUNSIFHEAD
+# define NETBSD_MULTI_AF
+#endif
+
+#ifdef NETBSD= _MULTI_AF
+      argv_printf (&argv,
+  =         "%s %s inet6 %s/%d",
+   = ;       IFCONFIG_PATH,
+     &nb= sp;    actual,
+          i= fconfig_ipv6_local,
+          tt->= ;netbits_ipv6
+          );
+ = ;     argv_msg (M_INFO, &argv);
+      open= vpn_execve_check (&argv, es, S_FATAL, "NetBSD ifconfig inet6 failed");<= br>+
+      /* and, hooray, we explicitely need to add a = route... */
+      add_route_connected_v6_net(tt, es);
+#else
+      msg( M_INFO, "no IPv6 support for = tun interfaces on NetBSD before 4.0 (if your system is newer, recompile ope= nvpn)" );
+      tt->ipv6 =3D false;
+#endif
++#elif defined(TARGET_DARWIN)
+      /*
+  &nbs= p;   * Darwin (i.e. Mac OS X) seems to exhibit similar behaviour to O= penBSD...
+      */
+      argv_printf= (&argv,
+                &n= bsp; "%s %s inet6 %s/%d",
+            &nb= sp;     IFCONFIG_PATH,
+          &nb= sp;       actual,
+          &nb= sp;       ifconfig_ipv6_local,
+      &nbs= p;           tt->netbits_ipv6
+   =               );
+      argv_msg (M_INFO, &argv);
+      openvpn_exec= ve_check (&argv, es, S_FATAL, "MacOS X ifconfig inet6 failed");
++      /* and, hooray, we explicitely need to add a route..= . */
+      add_route_connected_v6_net(tt, es);
+
+=
+#elif defined(TARGET_FREEBSD)||defined(TARGET_DRAGONFLY)
+
+&nbs= p;     argv_printf (&argv,
+        &n= bsp;         "%s %s inet6 %s/%d",
+    &nb= sp;             IFCONFIG_PATH,
+  &nb= sp;               actual,
+  &nb= sp;               ifconfig_ipv6_local,+                  tt->ne= tbits_ipv6
+                &nbs= p; );
+      argv_msg (M_INFO, &argv);
+      openvpn_execve_check (&argv, es, = S_FATAL, "FreeBSD ifconfig inet6 failed");
+
+#elif defined (WIN32)+      /* IPv6 always uses "netsh" interface */
+ =     char * saved_actual;
+
+      if (!strc= mp (actual, "NULL"))
+        msg (M_FATAL, "Error: = When using --tun-ipv6, if you have more than one TAP-Windows adapter, you m= ust also specify --dev-node");
+
+      /* example: ne= tsh interface ipv6 set address MyTap 2001:608:8003::d store=3Dactive */
= +      argv_printf (&argv,
+     =      "%s%sc interface ipv6 set address %s %s store=3Dactive"= ,
+          get_win_sys_path(),
+=           NETSH_PATH_SUFFIX,
+ &= nbsp;        actual,
+          ifconfig_ipv6_local );
+
+    &n= bsp; netsh_command (&argv, 4);
+
+      /* explici= t route needed */
+      /* on windows, OpenVPN does ifco= nfig first, open_tun later, so
+      * tt->actual_na= me might not yet be initialized, but routing code
+      = * needs to know interface name - point to "actual", restore later
+&nbs= p;     */
+      saved_actual =3D tt->actua= l_name;
+      tt->actual_name =3D (char*) actual;
= +      add_route_connected_v6_net(tt, es);
+   =   tt->actual_name =3D saved_actual;
#else
    &nb= sp; msg (M_FATAL, "Sorry, but I don't know how to do 'ifconfig' commands o= n this operating system.  You should ifconfig your TUN/TAP device manu= ally or use an --up script.");
#endif
@@ -4932,7 +4931,7 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, str= uct tu

  if (tt->type =3D=3D DEV_TYPE_TUN)
   = ; {
-      if (!tt->did_ifconfig_setup)
+  &n= bsp;   if (!(tt->did_ifconfig_setup || tt->did_ifconfig_ipv6_set= up))
    {
      msg (M_FATAL, "= ERROR: --dev tun also requires --ifconfig");
    }
--=
2.0.2




------------------------------

Message= : 4
Date: Fri, 08 Aug 2014 10:10:42 +0300
From: Samuli Sepp?nen <<= a ymailto=3D"mailto:samuli@...515..." href=3D"mailto:samuli@...515...">samu= li@...515...>
Subject: [Openvpn-devel] Impact of latest OpenSSL v= ulnerabilities to
    OpenVPN
To: "openvpn-devel@...1466...= urceforge.net"
    <openvpn-devel@lists.sourceforge.net>,
    "openvpn-users@lists.sourceforge.net"    <openvpn-users@...465...= ists.sourceforge.net>,
    "openvpn-announce@lists.sourceforge.net"
 &nb= sp;  <openvpn-announce@...1224...= sts.sourceforge.net>
Message-ID: <53E477F2.80= 80003@...515...>
Content-Type: text/plain; charset=3Diso-8859-15<= br>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,<= br>
Information on how the latest OpenSSL vulnerabilities affect OpenVPN= is
available here:

<https:/= /community.openvpn.net/openvpn/wiki/VulnerabilitiesFixedInOpenSSL1.0.1i= >

Yesterday's Windows installer releases bundle OpenSSL 1.0.0i, w= hich is
immune to the two issues which may[1] affect OpenVPN. Updated in= stallers
are available here:

<http://openvpn.net/index.php/download/community-download= s.html>

Best regards,

- --
Samuli Sepp?nen
Comm= unity Manager
OpenVPN Technologies, Inc

irc freenode net: mattock=


[1] Depending on it's configuration
-----BEGIN PGP SIGNATURE= -----
Version: GnuPG v1

iEYEARECAAYFAlPkd/IACgkQwp2X7RmNIqOoWwCeL= R13x//Vxm4LRXilRlwkxhtP
XcoAoMwIn+y3iYkofgL9TFiIK4YGMOK8
=3DmsAA
-= ----END PGP SIGNATURE-----




-----------------------------= -

Message: 5
Date: Fri, 08 Aug 2014 11:11:23 +0300
From: Samul= i Sepp?nen <samuli@...515...>
Subject: Re: [Openvpn-devel] Impact= of latest OpenSSL vulnerabilities
    to  &nbs= p; OpenVPN
To: "openvpn-devel@...1466...= urceforge.net"
    <openvpn-devel@lists.sourceforge.net>,
    "openvpn-users@lists.sourceforge.net"    <openvpn-users@...465...= ists.sourceforge.net>,
    "openvpn-announce@lists.sourceforge.net"
 &nb= sp;  <openvpn-announce@...1224...= sts.sourceforge.net>
Message-ID: <53E4862B.10= 80709@...515...>
Content-Type: text/plain; charset=3Diso-8859-15<= br>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



= > Hi all,
>
> Information on how the latest OpenSSL vulnerab= ilities affect OpenVPN is
> available here:
>
>
<https://community.openvpn.net/openvpn/wiki/= VulnerabilitiesFixedInOpenSSL1.0.1i>
>
> Yesterday's Win= dows installer releases bundle OpenSSL 1.0.0i, which is
> immune to t= he two issues which may[1] affect OpenVPN. Updated installers
> are a= vailable here:
>
Responding to myself before somebody else corrects me. The Windows
installers bundle 1.0.1i (not 1.0.0i).

= Sorry for the noise.
- --
Samuli Sepp?nen
Community Manager
Op= enVPN Technologies, Inc

irc freenode net: mattock
-----BEGIN PGP = SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlPkhisACgkQwp2X7RmN= IqPKIgCeNsM6/3Z1Y9IDMMOYKQztHeWQ
76cAn1t8clBRaBWhhEAY2pYI8LHbzjSC
=3D= XS4x
-----END PGP SIGNATURE-----




--------------------= ----------

---------------------------------------------------------= ---------------------
Want fast and easy access to all the code in your = enterprise? Index and
search up to 200,000 lines of code with a free cop= y of Black Duck
Code Sight - the same software that powers the world's l= argest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

---------------------= ---------

_______________________________________________
Openvpn= -devel mailing list
Openvpn-devel@...1484...= ts.sourceforge.net
https://lists.sourceforge.net/lists= /listinfo/openvpn-devel


End of Openvpn-devel Digest, Vol 99,= Issue 3
********************************************


=
= ---1100835386-1270169471-1407524277=:37295--