Openvpn Vista Patch

Subject: Re: Openvpn-users TAP driver updates for XP64 and Vista; From: James Yonan jim xxxxxxxxx The TAP driver has Henry Nestler s patch for 32 bit Vista.

openvpn vista patch

OpenVPN GUI is a graphical front-end application for OpenVPN on Windows. It gives you an icon in the system tray from which you can control OpenVPN.

openvpn vista patch

Changes for running TAP-Win32 on Vista Beta :

- Gets MiniPortName with function NdisReadConfiguration, instand the

direct pointer access into strcture NDIS_MINIPORT_BLOCK.

On Windows2000 this function isn t supported, it falls back into

older accessing with ugly pointer into the struct. Checks ndis

version before, to avoid BSOD.

- incrase driver version to 8.4, updated build date.

openvpn-2.1-tap32-vista.patch : Source patch for openvpn-2.1_beta14

tap-win32-OpenVPN.src.zip : Complete sources for tap driver

tap-win32-OpenVPN.i386.zip : Driver, binary and symbols for OpenVPN

This is a backport from running tap driver under colinux.

Binaries for OpenVPN have not tested, I have no vpn installed. Please

Thanks to Emre Erenoglu and Anoop G. for finding, testing and tips.

Patchfile: openvpn-2.1-tap32-vista.patch

- Gets MiniPortName with function NdisReadConfiguration, instand

the direct pointer access into strcture NDIS_MINIPORT_BLOCK.

- incrase driver version to 8.4, update build date.

openvpn-2.1_beta14/tap-win32/SOURCES 2

openvpn-2.1_beta14/tap-win32/i386/OemWin2k.inf 2

openvpn-2.1_beta14/tap-win32/resource.rc 2

openvpn-2.1_beta14/tap-win32/tapdrvr.c 74 ------

4 files changed, 62 insertions, 18 deletions -

diff -aur openvpn-2.1_beta14.old/tap-win32/i386/OemWin2k.inf openvpn-2.1_beta14/tap-win32/i386/OemWin2k.inf

--- openvpn-2.1_beta14.old/tap-win32/i386/OemWin2k.inf

openvpn-2.1_beta14/tap-win32/i386/OemWin2k.inf

; This version number should match the version

- DriverVer 05/15/2004,8.00.00.0001

DriverVer 08/31/2006,8.00.00.0004

DeviceDescription TAP-Win32 Adapter V8

diff -aur openvpn-2.1_beta14.old/tap-win32/resource.rc openvpn-2.1_beta14/tap-win32/resource.rc

--- openvpn-2.1_beta14.old/tap-win32/resource.rc

openvpn-2.1_beta14/tap-win32/resource.rc

define VER_COMPANYNAME_STR The OpenVPN Project

define VER_FILEDESCRIPTION_STR TAP-Win32 Virtual Network Driver

define VER_ORIGINALFILENAME_STR TAP_COMPONENT_ID . sys

- define VER_LEGALCOPYRIGHT_YEARS 2003-2004

define VER_LEGALCOPYRIGHT_YEARS 2003-2006

define VER_LEGALCOPYRIGHT_STR OpenVPN Solutions LLC and Damion K. Wilson

diff -aur openvpn-2.1_beta14.old/tap-win32/SOURCES openvpn-2.1_beta14/tap-win32/SOURCES

--- openvpn-2.1_beta14.old/tap-win32/SOURCES 2005-11-02 :52.000000000 0100

openvpn-2.1_beta14/tap-win32/SOURCES 2006-08-31 :00.000000000 0200

C_DEFINES C_DEFINES -DTAP_DRIVER_MAJOR_VERSION 8

-C_DEFINES C_DEFINES -DTAP_DRIVER_MINOR_VERSION 3

C_DEFINES C_DEFINES -DTAP_DRIVER_MINOR_VERSION 4

Use 00:FF:XX:XX:XX:XX format MAC addresses where

the Xs are random like Linux tap driver.

diff -aur openvpn-2.1_beta14.old/tap-win32/tapdrvr.c openvpn-2.1_beta14/tap-win32/tapdrvr.c

--- openvpn-2.1_beta14.old/tap-win32/tapdrvr.c

openvpn-2.1_beta14/tap-win32/tapdrvr.c

l_Adapter- m_RegisteredAdapterShutdownHandler TRUE;

- // Allocate and construct adapter name

- if RtlUnicodeStringToAnsiString

- PNDIS_MINIPORT_BLOCK p_AdapterHandle - MiniportName,

- AdapterFreeResources l_Adapter ;

- return NDIS_STATUS_RESOURCES;

// Get parameters from registry which were set

// in the adapter advanced properties dialog.

l_Adapter- m_MediaState FALSE;

NdisOpenConfiguration status, configHandle, p_ConfigurationHandle ;

- if status NDIS_STATUS_SUCCESS

if status. NDIS_STATUS_SUCCESS

DEBUGP TAP Couldn t open adapter registry n ;

AdapterFreeResources l_Adapter ;

// Allocate and construct adapter name

NDIS_STRING key NDIS_STRING_CONST MiniportName ;

NdisReadConfiguration status, parm, configHandle, key, NdisParameterString ;

if parm- ParameterType NdisParameterString

DEBUGP TAP NdisReadConfiguration MiniportName s n, parm- ParameterData.StringData.Buffer ;

if RtlUnicodeStringToAnsiString

parm- ParameterData.StringData,

DEBUGP TAP RtlUnicodeStringToAnsiString MiniportName failed n ;

/ MiniportName is available only XP and above. Not on Windows 2000. /

NDIS_STRING key NDIS_STRING_CONST NdisVersion ;

NdisReadConfiguration status, parm, configHandle, key, NdisParameterInteger ;

if parm- ParameterData.IntegerData 0x50000

/ Fallback for Windows 2000 with NDIS version 5.00.00

Don t use this on Vista, NDIS_MINIPORT_BLOCK was changed. /

DEBUGP TAP NdisReadConfiguration NdisVersion Int X n, parm- ParameterData.IntegerData ;

PNDIS_MINIPORT_BLOCK p_AdapterHandle - MiniportName,

DEBUGP TAP RtlUnicodeStringToAnsiString MiniportName W2K failed n ;

/ Can t continue without name see macro NAME /

if status. NDIS_STATUS_SUCCESS . l_Adapter- m_NameAnsi.Buffer

NdisCloseConfiguration configHandle ;

/ Read MTU setting from registry /

NDIS_STRING key NDIS_STRING_CONST MTU ;

DEBUGP s MTU d n, NAME l_Adapter, l_Adapter- m_MTU ;

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

Get stuff done quickly with pre-integrated technology to make your job easier_______________________________________________

Openvpn-users xxxxxxxxxxxxxxxxxxxxx

https://lists.sourceforge.net/lists/listinfo/openvpn-users.

  • Jul 12, 2007  OpenVPN GUI on Windows Vista  skriptd or just change client openvpngui with new patch openvpn gui.. Comment by Nanta January 15, 2008.
  • Openvpn-devel PATCH Clarify --block-outside-dns and works on Windows Vista or later. This option is considered unknown on non-Windows.
  • Subject: Openvpn-users patch Re: BSOD: Tap-Win32 crashes Vista; From: Henry Nestler Henry.ne xxxxxxxx Date: Thu, 31 Aug 2006 :51 0200.
  • I tried a lot of reboots, registry deletions and several reinstall of my OpenVPN and custom VPN application but it didnt seem to work. The issue of failed TAP driver.
  • Welcome to OpenVPN project Wiki / Tracker. This is the official OpenVPN community project wiki and bug tracker. To create content you have to register first.

BSOD: Tap-Win32 crashes Vista

openvpn vista patch openvpn vista patch

1 Active Tickets 207 OpenVPN Connect BSOD on Windows 8.1 client when issuing a ping with windows vista client software.