Windows Server 2016 OpenVPN error
Posted: Wed Oct 05, 2016 4:20 pm
I am running into a problem when testing OpenVPN in Windows Server 2016. I am aware that this is an unreleased OS for now, but I hope there will be a fix for this problem. The setup is a simple OpenVPN configuration with a static key, the configuration works on a non-Windows Server 2016.
After installing OpenVPN on ANY OpenVPN configuration the following error appears in the logs:
Wed Oct 05 18:10:15 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
For reference below the full connect log (verbosity level 3):
Wed Oct 05 18:15:37 2016 OpenVPN 2.3.12 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Oct 3 2016
Wed Oct 05 18:15:37 2016 Windows version 6.2 (Windows 8 or greater) 64bit
Wed Oct 05 18:15:37 2016 library versions: OpenSSL 1.0.1u 22 Sep 2016, LZO 2.09
Wed Oct 05 18:15:37 2016 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed Oct 05 18:15:37 2016 WARNING: this cipher's block size is less than 128 bit (64 bit). Consider using a --cipher with a larger block size.
Wed Oct 05 18:15:37 2016 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Oct 05 18:15:37 2016 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed Oct 05 18:15:37 2016 WARNING: this cipher's block size is less than 128 bit (64 bit). Consider using a --cipher with a larger block size.
Wed Oct 05 18:15:37 2016 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Oct 05 18:15:37 2016 Socket Buffers: R=[65536->65536] S=[65536->65536]
Wed Oct 05 18:15:37 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
Wed Oct 05 18:15:37 2016 ROUTE_GATEWAY 10.10.0.1
Wed Oct 05 18:15:37 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Oct 05 18:15:37 2016 open_tun, tt->ipv6=0
Wed Oct 05 18:15:37 2016 TAP-WIN32 device [Ethernet 2] opened: \\.\Global\{C3E7C39F-31CB-4B1E-A6A0-F506118CD957}.tap
Wed Oct 05 18:15:37 2016 TAP-Windows Driver Version 9.21
Wed Oct 05 18:15:37 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
Wed Oct 05 18:15:37 2016 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {C3E7C39F-31CB-4B1E-A6A0-F506118CD957} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Wed Oct 05 18:15:37 2016 Successful ARP Flush on interface [19] {C3E7C39F-31CB-4B1E-A6A0-F506118CD957}
Wed Oct 05 18:15:37 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
Wed Oct 05 18:15:38 2016 UDPv4 link local (bound): [undef]
Wed Oct 05 18:15:38 2016 UDPv4 link remote: [AF_INET]89.200.112.55:1194
Wed Oct 05 18:15:46 2016 Peer Connection Initiated with [AF_INET]89.200.112.55:1194
Wed Oct 05 18:15:52 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
Wed Oct 05 18:15:52 2016 TEST ROUTES: 0/1 succeeded len=1 ret=0 a=0 u/d=up
Wed Oct 05 18:15:52 2016 Route: Waiting for TUN/TAP interface to come up...
After waiting for some time it does connect and gives me the ability to connect to the remote endpoint, however the route addition fails. I can't reach the network behind the OpenVPN server, only the VPN server IP itself.
Does anyone have a clue what might be wrong?
After installing OpenVPN on ANY OpenVPN configuration the following error appears in the logs:
Wed Oct 05 18:10:15 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
For reference below the full connect log (verbosity level 3):
Wed Oct 05 18:15:37 2016 OpenVPN 2.3.12 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Oct 3 2016
Wed Oct 05 18:15:37 2016 Windows version 6.2 (Windows 8 or greater) 64bit
Wed Oct 05 18:15:37 2016 library versions: OpenSSL 1.0.1u 22 Sep 2016, LZO 2.09
Wed Oct 05 18:15:37 2016 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed Oct 05 18:15:37 2016 WARNING: this cipher's block size is less than 128 bit (64 bit). Consider using a --cipher with a larger block size.
Wed Oct 05 18:15:37 2016 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Oct 05 18:15:37 2016 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed Oct 05 18:15:37 2016 WARNING: this cipher's block size is less than 128 bit (64 bit). Consider using a --cipher with a larger block size.
Wed Oct 05 18:15:37 2016 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Oct 05 18:15:37 2016 Socket Buffers: R=[65536->65536] S=[65536->65536]
Wed Oct 05 18:15:37 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
Wed Oct 05 18:15:37 2016 ROUTE_GATEWAY 10.10.0.1
Wed Oct 05 18:15:37 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Oct 05 18:15:37 2016 open_tun, tt->ipv6=0
Wed Oct 05 18:15:37 2016 TAP-WIN32 device [Ethernet 2] opened: \\.\Global\{C3E7C39F-31CB-4B1E-A6A0-F506118CD957}.tap
Wed Oct 05 18:15:37 2016 TAP-Windows Driver Version 9.21
Wed Oct 05 18:15:37 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
Wed Oct 05 18:15:37 2016 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {C3E7C39F-31CB-4B1E-A6A0-F506118CD957} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Wed Oct 05 18:15:37 2016 Successful ARP Flush on interface [19] {C3E7C39F-31CB-4B1E-A6A0-F506118CD957}
Wed Oct 05 18:15:37 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
Wed Oct 05 18:15:38 2016 UDPv4 link local (bound): [undef]
Wed Oct 05 18:15:38 2016 UDPv4 link remote: [AF_INET]89.200.112.55:1194
Wed Oct 05 18:15:46 2016 Peer Connection Initiated with [AF_INET]89.200.112.55:1194
Wed Oct 05 18:15:52 2016 GetAdaptersInfo #1 failed (status=127) : The specified procedure could not be found.
Wed Oct 05 18:15:52 2016 TEST ROUTES: 0/1 succeeded len=1 ret=0 a=0 u/d=up
Wed Oct 05 18:15:52 2016 Route: Waiting for TUN/TAP interface to come up...
After waiting for some time it does connect and gives me the ability to connect to the remote endpoint, however the route addition fails. I can't reach the network behind the OpenVPN server, only the VPN server IP itself.
Does anyone have a clue what might be wrong?