tap-windows6

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
rafaellessa97
OpenVpn Newbie
Posts: 3
Joined: Thu Nov 10, 2022 6:16 pm

tap-windows6

Post by rafaellessa97 » Thu Nov 10, 2022 6:24 pm

Hello!

I'm installing OPENVPN on my windows 2016 server,
but when trying to open openvpn and connect, the following error appears:

2022-11-10 15:08:01 CreateFile failed on tap-windows6 device: \\.\Global\{xxxxxxxxxx}.tap
2022-11-10 15:08:01 MANAGEMENT: Client disconnected
2022-11-10 15:08:01 All tap-windows6 adapters on this system are currently in use or disabled.
2022-11-10 15:08:01 Exiting due to fatal error

the "tap 6" adapter, everything is apparently ok, but it is showing
" ipv4 connection : no connection "

already disabled and re-enabled and tried to start openvpn and same error.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: tap-windows6

Post by openvpn_inc » Thu Nov 10, 2022 7:03 pm

Hello rafaellessa97,

Could you please let me know the OpenVPN client version and also provide us with a screenshot of the error messages and the full logs file?

Regards,
Marcel
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

rafaellessa97
OpenVpn Newbie
Posts: 3
Joined: Thu Nov 10, 2022 6:16 pm

Re: tap-windows6

Post by rafaellessa97 » Fri Nov 11, 2022 5:09 pm

version 2.5.8

2022-11-11 13:58:13 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
2022-11-11 13:58:13 WARNING: --topology net30 support for server configs with IPv4 pools will be removed in a future release. Please migrate to --topology subnet as soon as possible.
2022-11-11 13:58:13 --cipher is not set. Previous OpenVPN version defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
2022-11-11 13:58:13 OpenVPN 2.5.7 [git:release/2.5/3d792ae9557b959e] Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Oct 28 2022
2022-11-11 13:58:13 Windows version 10.0 (Windows 10 or greater) 64bit
2022-11-11 13:58:13 library versions: OpenSSL 1.1.1o 3 May 2022, LZO 2.10
2022-11-11 13:58:13 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
2022-11-11 13:58:13 Need hold release from management interface, waiting...
2022-11-11 13:58:13 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
2022-11-11 13:58:13 MANAGEMENT: CMD 'state on'
2022-11-11 13:58:13 MANAGEMENT: CMD 'log on all'
2022-11-11 13:58:14 MANAGEMENT: CMD 'echo on all'
2022-11-11 13:58:14 MANAGEMENT: CMD 'bytecount 5'
2022-11-11 13:58:14 MANAGEMENT: CMD 'state'
2022-11-11 13:58:14 MANAGEMENT: CMD 'hold off'
2022-11-11 13:58:14 MANAGEMENT: CMD 'hold release'
2022-11-11 13:58:14 Diffie-Hellman initialized with 2048 bit key
2022-11-11 13:58:14 interactive service msg_channel=0
2022-11-11 13:58:14 open_tun
2022-11-11 13:58:14 CreateFile failed on tap-windows6 device: \\.\Global\{FC065698-84C4-589F-A105-251E8FB19597}.tap
2022-11-11 13:58:14 MANAGEMENT: Client disconnected
2022-11-11 13:58:14 All tap-windows6 adapters on this system are currently in use or disabled.
2022-11-11 13:58:14 Exiting due to fatal error

rafaellessa97
OpenVpn Newbie
Posts: 3
Joined: Thu Nov 10, 2022 6:16 pm

Re: tap-windows6

Post by rafaellessa97 » Fri Nov 11, 2022 5:11 pm

Last edited by Pippin on Fri Nov 11, 2022 8:14 pm, edited 1 time in total.
Reason: Link corrected.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: tap-windows6

Post by openvpn_inc » Sat Nov 12, 2022 9:32 pm

Hello rafaellessa97.

This error may be due to the TAP driver was not installed properly.

This issue is usually resolved by uninstalling and installing again the TAP adapter

Try checking the links below for some options below:

https://www.youtube.com/watch?v=Krxfg3X13RA
https://jochen.kirstaetter.name/openvpn ... ly-in-use/

Regards,
Marcel
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

loxotron
OpenVpn Newbie
Posts: 1
Joined: Tue Feb 28, 2023 11:00 am

Re: tap-windows6

Post by loxotron » Tue Feb 28, 2023 11:27 am

I know it's probably too late and probably nobody cares, and probably nobody use so old windows version like win 7 or simular, but let it be there.

If you stuck with such problem and nothing helps, but you don't wana reinstall your system to fix the problem, just go to C:\Program Files\OpenVPN\bin

Code: Select all

tapctl.exe list
tapctl.exe delete <your tap adapter name>
tapctl.exe create
tapctl.exe create
Basicly this is simple workaround, so you have 2 tap-adapters, one is enabled by default when windows is loaded, but second is disabled and openVPN can use it so error will dissapear. Workaround tested with OpenVPN-2.5.6-I601-amd64.

Second problem which was never fixed propertly, but mentioned many times, ghost adapter which doesn't exist and can't be find even with device manager -> show hidded devices. What if you got error during installation of OpenVPN and as the result next time you will try to install it y will get such crap like: TAP-Windows Adapter V9 #2, TAP-Windows Adapter V9 #3, TAP-Windows Adapter V9 #4 after install in device manager.

Image

How to fix with regedit:

Delete your adapter with

Code: Select all

tapctl.exe list
tapctl.exe delete <your tap adapter name>
or using uninstaller.

Find descriptions folder with proper ClassGUID:

Code: Select all

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\Descriptions]
Here you will see something like: "TAP-Windows Adapter V9"=1,2,3

Just remove all this ghost adapters from this line. That's all.

Post Reply