OpenVPN error (code=10065)

This forum is for general conversation and user-user networking.
Post Reply
johndo8947
OpenVpn Newbie
Posts: 1
Joined: Wed Apr 14, 2021 3:21 pm

OpenVPN error (code=10065)

Post by johndo8947 » Wed Apr 14, 2021 3:31 pm

Hello,

I hope someone can help me with this error. Some background knowledge on the project: We are developing a VPN software that does simple functions like connecting, disconnecting, etc. Connecting works about 60% of the time without an error, although if you reinstall the TAP and try again it always works. We use the OpenVPN TAP-Adapter and have our own TAP manager. You can view our open source code here: https://github.com/LightTechnologies/LightVPN-Win

Here are the OpenVPN logs:

2021-04-14 11:13:11 DEPRECATED OPTION: --max-routes option ignored.The number of routes is unlimited as of OpenVPN 2.4. This option will be removed in a future version, please remove it from your configuration.
2021-04-14 11:13:11 DEPRECATED OPTION: --cipher set to 'AES-128-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-128-CBC' to --data-ciphers or change --cipher 'AES-128-CBC' to --data-ciphers-fallback 'AES-128-CBC' to silence this warning.
2021-04-14 11:13:11 OpenVPN 2.5.1 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Feb 24 2021
2021-04-14 11:13:11 Windows version 10.0 (Windows 10 or greater) 64bit
2021-04-14 11:13:11 library versions: OpenSSL 1.1.1j 16 Feb 2021, LZO 2.10
2021-04-14 11:13:11 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2021-04-14 11:13:11 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2021-04-14 11:13:11 TCP/UDP: Preserving recently used remote address: [AF_INET]198.251.89.212:2201
2021-04-14 11:13:11 UDP link local: (not bound)
2021-04-14 11:13:11 UDP link remote: [AF_INET]198.251.89.212:2201
2021-04-14 11:13:11 VERIFY OK: depth=1, O=603b373c7aced71ea27e924f, CN=603b373c7aced71ea27e925c
2021-04-14 11:13:11 VERIFY KU OK
2021-04-14 11:13:11 Validating certificate extended key usage
2021-04-14 11:13:11 NOTE: --mute triggered...
2021-04-14 11:13:11 4 variation(s) on previous 3 message(s) suppressed by --mute
2021-04-14 11:13:11 [6048749c173a5079f8cf47dc] Peer Connection Initiated with [AF_INET]198.251.89.212:2201
2021-04-14 11:13:13 Data Channel: using negotiated cipher 'AES-128-GCM'
2021-04-14 11:13:13 Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
2021-04-14 11:13:13 Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
2021-04-14 11:13:13 open_tun
2021-04-14 11:13:13 tap-windows6 device [LightVPN-TAP] opened
2021-04-14 11:13:13 Set TAP-Windows TUN subnet mode network/local/netmask = 192.168.228.0/192.168.228.34/255.255.255.0 [SUCCEEDED]
2021-04-14 11:13:13 Notified TAP-Windows driver to set a DHCP IP/netmask of 192.168.228.34/255.255.255.0 on interface {6FA8BD36-8280-4583-8C24-D3FA51EA5AB6} [DHCP-serv: 192.168.228.254, lease-time: 31536000]
2021-04-14 11:13:13 Successful ARP Flush on interface [15] {6FA8BD36-8280-4583-8C24-D3FA51EA5AB6}
2021-04-14 11:13:13 IPv4 MTU set to 1500 on interface 15 using SetIpInterfaceEntry()
2021-04-14 11:13:13 Block_DNS: WFP engine opened
2021-04-14 11:13:13 Block_DNS: Using existing sublayer
2021-04-14 11:13:13 Block_DNS: Added permit filters for exe_path
2021-04-14 11:13:13 Block_DNS: Added block filters for all interfaces
2021-04-14 11:13:13 Block_DNS: Added permit filters for TAP interface
2021-04-14 11:13:13 write UDP: Unknown error (code=10065)

If there is anymore need information anyone may need, I can provide it. Thank you!

Lee121
OpenVpn Newbie
Posts: 1
Joined: Mon May 03, 2021 4:22 am

Re: OpenVPN error (code=10065)

Post by Lee121 » Mon May 03, 2021 4:24 am

johndo8947 wrote:
Wed Apr 14, 2021 3:31 pm
Hello,

I hope someone can help me with this error. Some background knowledge on the project: We are developing a VPN software that does simple functions like connecting, disconnecting, etc. Connecting works about 60% of the time without an error, although if you reinstall the TAP and try again it always works. We use the OpenVPN TAP-Adapter and have our own TAP manager. You can view our open source code here: https://github.com/LightTechnologies/LightVPN-Win

Here are the OpenVPN logs:

2021-04-14 11:13:11 DEPRECATED OPTION: --max-routes option ignored.The number of routes is unlimited as of OpenVPN 2.4. This option will be removed in a future version, please remove it from your configuration.
2021-04-14 11:13:11 DEPRECATED OPTION: --cipher set to 'AES-128-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-128-CBC' to --data-ciphers or change --cipher 'AES-128-CBC' to --data-ciphers-fallback 'AES-128-CBC' to silence this warning.
2021-04-14 11:13:11 OpenVPN 2.5.1 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Feb 24 2021
2021-04-14 11:13:11 Windows version 10.0 (Windows 10 or greater) 64bit
2021-04-14 11:13:11 library versions: OpenSSL 1.1.1j 16 Feb 2021, LZO 2.10
2021-04-14 11:13:11 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2021-04-14 11:13:11 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2021-04-14 11:13:11 TCP/UDP: Preserving recently used remote address: [AF_INET]198.251.89.212:2201
2021-04-14 11:13:11 UDP link local: (not bound)
2021-04-14 11:13:11 UDP link remote: [AF_INET]198.251.89.212:2201
2021-04-14 11:13:11 VERIFY OK: depth=1, O=603b373c7aced71ea27e924f, CN=603b373c7aced71ea27e925c
2021-04-14 11:13:11 VERIFY KU OK
2021-04-14 11:13:11 Validating certificate extended key usage
2021-04-14 11:13:11 NOTE: --mute triggered...PrepaidGiftBalance
2021-04-14 11:13:11 4 variation(s) on previous 3 message(s) suppressed by --mute
2021-04-14 11:13:11 [6048749c173a5079f8cf47dc] Peer Connection Initiated with [AF_INET]198.251.89.212:2201
2021-04-14 11:13:13 Data Channel: using negotiated cipher 'AES-128-GCM'
2021-04-14 11:13:13 Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
2021-04-14 11:13:13 Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
2021-04-14 11:13:13 open_tun
2021-04-14 11:13:13 tap-windows6 device [LightVPN-TAP] opened
2021-04-14 11:13:13 Set TAP-Windows TUN subnet mode network/local/netmask = 192.168.228.0/192.168.228.34/255.255.255.0 [SUCCEEDED]
2021-04-14 11:13:13 Notified TAP-Windows driver to set a DHCP IP/netmask of 192.168.228.34/255.255.255.0 on interface {6FA8BD36-8280-4583-8C24-D3FA51EA5AB6} [DHCP-serv: 192.168.228.254, lease-time: 31536000]
2021-04-14 11:13:13 Successful ARP Flush on interface [15] {6FA8BD36-8280-4583-8C24-D3FA51EA5AB6}
2021-04-14 11:13:13 IPv4 MTU set to 1500 on interface 15 using SetIpInterfaceEntry()
2021-04-14 11:13:13 Block_DNS: WFP engine opened
2021-04-14 11:13:13 Block_DNS: Using existing sublayer
2021-04-14 11:13:13 Block_DNS: Added permit filters for exe_path
2021-04-14 11:13:13 Block_DNS: Added block filters for all interfaces
2021-04-14 11:13:13 Block_DNS: Added permit filters for TAP interface
2021-04-14 11:13:13 write UDP: Unknown error (code=10065)

If there is anymore need information anyone may need, I can provide it. Thank you!
This Windows error message means the connection was reset .. which almost certainly means you have not got either port forwarded correctly or firewall configured correctly.

Post Reply