Skip to content

Issue with Openvpn 2.7 not releasing IP's from adaptors  #997

@MINC-bot

Description

@MINC-bot

Describe the bug
Since upgrading to openvpn 2.7 we have an issue where systems are unable to correctly bind the IP address to an adaptor intermittently. We issue the same ip's to clients and have two remotes issuing separate subnets.

2026-03-06 08:53:11 us=390000 ovpn-dco device [OpenVPN Data Channel Offload #2] opened
2026-03-06 08:53:11 us=390000 do_ifconfig, ipv4=1, ipv6=0
2026-03-06 08:53:11 us=390000 INET address service: add 192.168.203.122/23
2026-03-06 08:53:11 us=390000 TUN: adding address failed using service: The object already exists.   [status=5010 if_index=18]
2026-03-06 08:53:11 us=390000 Setting IPv4 dns servers on 'OpenVPN Data Channel Offload #2' (if_index = 18) using service
2026-03-06 08:53:11 us=421000 IPv4 dns servers set using service

Windows IP Configuration

Unknown adapter OpenVPN Data Channel Offload #2:

   Connection-specific DNS Suffix  . : acme.com
   Description . . . . . . . . . . . : OpenVPN Data Channel Offload #2
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Autoconfiguration IPv4 Address. . : 169.254.18.175(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
   Connection-specific DNS Suffix Search List :
                                       acme.com
                                       
Get-NetIPAddress | Where-Object {$_.IPAddress -like "192.168.*"}


IPAddress         : 192.168.203.122
InterfaceIndex    : 8
InterfaceAlias    : OpenVPN Data Channel Offload
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 23
PrefixOrigin      : Manual
SuffixOrigin      : Manual
AddressState      : Tentative
ValidLifetime     :
PreferredLifetime :
SkipAsSource      : False
PolicyStore       : ActiveStore

So as it has no ip, no routes get added either

2026-03-06 08:53:11 us=687000 C:\WINDOWS\system32\route.exe ADD 10.0.0.1 MASK 255.255.255.255 192.168.202.1 METRIC 200
2026-03-06 08:53:11 us=687000 Warning: route gateway is not reachable on any active network adapters: 192.168.202.1

To Reproduce
It's intermittent but seems to be particularly bad coming out of sleep

Expected behavior
Tunnel to bind IP to virtual adaptor, routes to get added, traffic to route.

Version information (please complete the following information):

  • OS: W11
  • OpenVPN version: 2.7

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions