Opened 4 months ago

Closed 2 months ago

#1480 closed Bug / Defect (fixed)

dco-win adapter stays in connected state after tunnel disconnect

Reported by: kitsune-one Owned by:
Priority: minor Milestone:
Component: Generic / unclassified Version: OpenVPN git master branch (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

Using OpenVPN 2.6_git [git:master/6bbd89c5c82e7a23] Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] [DCO] built on Oct 11 2022

netsh int show int before connecting shows these adapters and their states

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        Wi-Fi
Enabled        Disconnected   Dedicated        OpenVPN TAP-Windows6
Enabled        Disconnected   Dedicated        Wintun2
Enabled        Disconnected   Dedicated        OpenVPN Data Channel Offload

After a successfully starting a tunnel using --windows-driver ovpn-dco and then disconnecting it (the GUI was used to start and stop).

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        Wi-Fi
Enabled        Disconnected   Dedicated        OpenVPN TAP-Windows6
Enabled        Disconnected   Dedicated        Wintun2
Enabled        Connected      Dedicated        OpenVPN Data Channel Offload

Expected: the dco adapter should go back to state "disconnected" after the tunnel is shut down. A manual disable/enable cycle fixes this.

Change History (3)

comment:1 Changed 3 months ago by stipa

This should be fixed in 0.8.2 version of dco-win driver.

You can check the version of the driver with this PowerShell? snippet (requires elevation):

C:\WINDOWS\system32> Get-WindowsDriver -Online | Where-Object { $_.ProviderName -eq "OpenVPN, Inc" }

Driver           : oem86.inf
OriginalFileName : C:\Windows\System32\DriverStore\FileRepository\ovpn-dco.inf_amd64_db6bbf665dc17e07\ovpn-dco.inf
Inbox            : False
ClassName        : Net
BootCritical     : False
ProviderName     : OpenVPN, Inc
Date             : 29.09.2022 0:00:00
Version          : 0.8.2.0

"Works on my machine".

After connection:

C:\Users\lev\Projects\openvpn-build [plap +7 ~1 -0 !]> netsh int show int

Admin State    State          Type             Interface Name
Enabled        Disconnected   Dedicated        Local Area Connection 3
Enabled        Disconnected   Dedicated        Local Area Connection 2
Enabled        Disconnected   Dedicated        Local Area Connection 4
Enabled        Connected      Dedicated        Wi-Fi
Enabled        Disconnected   Dedicated        Ethernet
Enabled        Connected      Dedicated        Hyper-V Internal
Enabled        Connected      Dedicated        vEthernet (Default Switch)
Enabled        Connected      Dedicated        vEthernet (WSL)
Enabled        Connected      Dedicated        OpenVPN Data Channel Offload
Enabled        Disconnected   Dedicated        Local Area Connection

After disconnect:

C:\Users\lev\Projects\openvpn-build [plap +7 ~1 -0 !]> netsh int show int

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Disconnected   Dedicated        Local Area Connection 3
Enabled        Disconnected   Dedicated        Local Area Connection 2
Enabled        Disconnected   Dedicated        Local Area Connection 4
Enabled        Connected      Dedicated        Wi-Fi
Enabled        Disconnected   Dedicated        Ethernet
Enabled        Connected      Dedicated        Hyper-V Internal
Enabled        Connected      Dedicated        vEthernet (Default Switch)
Enabled        Connected      Dedicated        vEthernet (WSL)
Enabled        Disconnected   Dedicated        OpenVPN Data Channel Offload

Can you retest with the latest installer from here?

Last edited 3 months ago by stipa (previous) (diff)

comment:2 Changed 3 months ago by kitsune-one

Tested and confirmed it's fixed. Thanks. Please close.

comment:3 Changed 2 months ago by tct

Resolution: fixed
Status: newclosed

As requested ..

Note: See TracTickets for help on using tickets.