-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to work after first connection #18
Comments
Could you post connection logs? |
After a reboot it seems like it can't even use the DCO device properly, i have to uninstall and reinstall it (i'm using Then it seems to work ok on first connect: Then it times out after you disconnect and try to connect again: Using TAP works fine: After connecting and disconnecting with TAP, DCO seems to work again: (not shown, but it will similarly time out again if you try to reconnect with DCO). |
Hi,
Also, thank you for testing dco-win and helping make it better! |
kernel module log attached (i hope): |
no, i can connect/disconnect/conncet just fine with TAP.
hum, probably not i'm afraid. i have yet to get on the server to check the logs. |
I don't see any dco log messages there. Could you try following steps:
|
that's what i did :(. but only for the |
so after reboot i still can't use the DCO device without uninstalling and reinstalling it. i've noticed (from
but when it succeeds it logs this:
and then goes on to successfully connect. i notice that last part of the path is i'm installing the device using devcon, is this the wrong approach?
|
in other news, now i can use DCO with a different VPN server (a work one) it connects and reconnects fine, so it must be something peculiar to the one i was using. let me see if i can set up a dead-end connection that you can test against. |
Hi, Sorry for the delay, I was on vacation without access to my laptop. Before that, white trying to reproduce your issue I found a bug in openvpn3 dco code which in some cases breaks reconnect functionality. Using openvpn-gui with openvpn3 triggered that case. The fix is now merged and pushed to GitHub (OpenVPN/openvpn3@e1a3502) so you might want to take this version (https://github.com/OpenVPN/openvpn3/actions/runs/2609676507) into use. About the issue you experience. According to logs, adapter GUIDs are different in success / fail case. Could you run this in powershell?
The way you install the driver looks correct, but you want to make sure that devcon uses the correct version of the driver. You might want to enum existing drivers (as command above does) and remove them ( |
No problem at all, I took a while to get back to diagnosing it. I did have a couple of old driver versions which I've purged (including a 0.6.5 version), I had to uninstall/reinstall the device again this morning, so this is the output now, after a new install. This time I installed it using the device manager GUI.
|
i need to setup that test server for you, i've been running the latest on a semi-related note, while trying that out just now i noticed that trying to connection a second VPN config (over DCO) while the first one is still running results in the second VPN taking over the DCO adapter and nuking the original connection without warning - i was kinda expecting it to error out on the second one (like the TAP driver does). is that an |
Unfortunately at the moment openvpn3 agent doesn't support multiple clients, so this behavior is expected. If you want to use multiple VPN connections simultaneously, you need to use openvpn-gui and openvpn2, which uses "interactive service" as agent replacement, which supports multiple client. You would need to create additional dco adapter for that:
|
Hi @facboy, I think I accidentally (still figuring it out) managed to reproduce IOCTL issue. The workaround would be to pass |
I believe IOCTL problem should be fixed here: https://github.com/lstipakov/openvpn3/suites/7767498351/artifacts/326654491 Could you please give it a try? |
will try to get to it tomorrow. unfortunately it stopped happening after i reinstalled the device using the device manager. i can try removing that and using devcon again to see if that breaks it. |
at the moment i haven't been able to get it to happen again, even on the version i'm running atm. |
I see, thanks. Do you still experience that PUSH_REQUEST issue you've mentioned? |
yes, still there. not strictly related, i am trying to set ovpn3 + dco on a new laptop, and it keeps getting
in the |
I think you need to install agent as a service - see OpenVPN/openvpn-gui#506 (comment). |
the gui log shows some mysterious 'state parameter' error when running as a service (red line in the status windows). it overflows past the end of the window and the whole openvpn-gui crashes almost immediately (0xc0000005) after so i can't tell what it says. this leaves interestingly ovpncli client works ok with ovpnagent, even running in the foreground. |
ah....i have a feeling this commit is breaking ovpn3: OpenVPN/openvpn-gui@428ee29 i'm not on a machine where i can work on this, but from browsing on github i think ovpn3 doesn't like being sent a "state" command without "on" or "off" etc after it. EDIT: having downloaded a GHA build from before that commit, it seems to work ok. i can take a look at the code when i'm back next week and submit a PR. |
I am closing this issue. Feel free to open a new one if you experience issues with dco-win. |
I haven't got very far with diagnosing this, i'm using
ovpn-dco-win 0.7.6
from the releases page, along with openvpn-gui and openvpn3 (built from master, with @lstipakov change toomi.hpp
: OpenVPN/openvpn-gui#327 (comment)).on first connection the VPN comes up fine, but on subsequent connections (ie disconnect, then conect again) it gets stuck
Sending PUSH_REQUEST to server...
repeatedly and then fails. i can unstick it by disabling the DCO adapter and letting it connect to the same VPN server using the TAP adapter, then the DCO adapter can be re-enabled and will connect, but again, only for the first connection.i suspect it's not related, but when it is connected i've noticed that the DCO driver seems to set up different routes to the TAP driver - i get a very low metric (2) default route via the VPN gateway, whereas on the TAP driver there is no such route.
The text was updated successfully, but these errors were encountered: