Opened 9 years ago

Closed 15 months ago

#516 closed Bug / Defect (wontfix)

windows: ipconfig failing to execute during VPN connection

Reported by: VisualCSharp Owned by: OpenVPN Inc.
Priority: major Milestone:
Component: OpenVPN Connect Version:
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: ipconfig dns
Cc:

Description

This issue was reported at http://community.openvpn.net/openvpn/ticket/399, but for some reason it was resolved as notabug. This is quite clearly a bug with the script that the OpenVPN client runs, no? I suspect that, because of this problem, I frequently see DNS resolution failures after connecting to the VPN for domains that are subdomains of the VPN connection's DNS suffix. For example, if my VPN's DNS suffix is corp.mycompany.com and I try to resolve myserver.corp.mycompany.com, the resolution will fail sometimes and succeed others. Reconnecting to the VPN oftentimes does not solve the problem, but it does seem to intermittently resolve itself.

Ideally, we should not be modifying configuration files (on every one of our Windows clients) ourselves to fix this problem. The OpenVPN client should be fixed such that it calls ipconfig.exe with elevated permissions.

Here is a sample of my log file. The error shown repeats itself during every connection attempt.

Fri Jan 23 12:34:21 2015 Start net commands...
Fri Jan 23 12:34:21 2015 C:\Windows\system32\net.exe stop dnscache
Fri Jan 23 12:34:26 2015 C:\Windows\system32\net.exe start dnscache
Fri Jan 23 12:34:26 2015 ERROR: Windows ipconfig command failed: returned error code 2
Fri Jan 23 12:34:26 2015 C:\Windows\system32\ipconfig.exe /flushdns
Fri Jan 23 12:34:26 2015 C:\Windows\system32\ipconfig.exe /registerdns
Fri Jan 23 12:34:29 2015 End net commands...

Change History (7)

comment:1 Changed 9 years ago by Samuli Seppänen

Reopened ticket 399. As this ticket is about OpenVPN Connect (a commercial client) and the other ticket about OpenVPN 2.3.4 (open source client), I'm not closing this one even though technically these two are almost duplicates.

comment:2 Changed 8 years ago by Samuli Seppänen

Owner: set to jamesyonan
Status: newassigned

comment:3 Changed 6 years ago by Antonio Quartulli

Owner: changed from jamesyonan to Antonio Quartulli

comment:4 Changed 6 years ago by Antonio Quartulli

Version: OpenVPN 2.0.x (Community Ed)

comment:5 Changed 6 years ago by Antonio Quartulli

Summary: ipconfig failing to execute during VPN connectionwindows: ipconfig failing to execute during VPN connection

comment:6 Changed 3 years ago by Antonio Quartulli

Owner: changed from Antonio Quartulli to OpenVPN Inc.

comment:7 Changed 15 months ago by Gert Döring

Resolution: wontfix
Status: assignedclosed

OpenVPN Inc does not want to receive any feedback for the "Connect"
OpenVPN clients via the community bug trackers (here and in GH issues).

Please resubmit - if still relevant - via https://support.openvpn.net/

Note: See TracTickets for help on using tickets.