OpenVPN / openvpn

OpenVPN is an open source VPN daemon
http://openvpn.net
Other
10.26k stars 2.92k forks source link

Assertion failed at C:\buildbot\msbuild\openvpn-build\src\openvpn\src\openvpn\dco.c:171 (primary->dco_status != DCO_NOT_INSTALLED) #477

Closed basinilya closed 6 months ago

basinilya commented 6 months ago

After 1-2 days openvpn exits with:

Assertion failed at C:\buildbot\msbuild\openvpn-build\src\openvpn\src\openvpn\dco.c:171 (primary->dco_status != DCO_NOT_INSTALLED)

OpenVPN GUI shows an error pop-up and despite having "Enable auto restart of active connections" does not restart.

Usually, it happens after an hour or so after waking the PC. Also, the crash only happens if the server pushes the same client IP as before sleeping. If the IP differs then VPN just doesn't work until I manually restart it.

2023-12-10 12:07:51 ovpn-dco device [OpenVPN Data Channel Offload] opened
...
2023-12-10 12:07:52 PUSH: Received control message: '...,ifconfig 10.78.6.2 255.255.255.192,peer-id 0,cipher AES-256-GCM,push-continuation 1'
...
2023-12-11 08:44:18 PUSH: Received control message: '...,ifconfig 10.78.6.2 255.255.255.192,peer-id 0,cipher AES-256-GCM,push-continuation 1'
2023-12-11 08:44:18 Initialization Sequence Completed
2023-12-11 08:44:18 MANAGEMENT: >STATE:1702269858,CONNECTED,SUCCESS,10.78.6.2,1.2.3.4,1194,,
2023-12-11 08:44:18 Data Channel: cipher 'AES-256-GCM', peer-id: 0
2023-12-11 08:44:18 Timers: ping 10, ping-restart 120
2023-12-11 09:42:37 VERIFY OK: depth=1, CN=Easy-RSA CA
2023-12-11 09:42:37 VERIFY KU OK
2023-12-11 09:42:37 Validating certificate extended key usage
2023-12-11 09:42:37 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
2023-12-11 09:42:37 VERIFY EKU OK
2023-12-11 09:42:37 VERIFY OK: depth=0, CN=ovpn1-202212
2023-12-11 09:42:38 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 2048 bits RSA, signature: RSA-SHA256, peer temporary key: 253 bits X25519
2023-12-11 09:43:17 TLS: tls_multi_process: killed expiring key
2023-12-11 09:43:39 MANAGEMENT: Client disconnected
2023-12-11 09:43:39 Assertion failed at C:\buildbot\msbuild\openvpn-build\src\openvpn\src\openvpn\dco.c:171 (primary->dco_status != DCO_NOT_INSTALLED)
2023-12-11 09:43:39 Exiting due to fatal error

basin.ovpn.txt

OpenVPN Data Channel Offload

lstipakov commented 6 months ago

Thanks for reporting this. We already have the similar issue https://github.com/OpenVPN/openvpn/issues/445