openvpn crashes due to connect from one special machine
Posted: Tue Apr 11, 2017 8:10 am
by dpt
Hey guys,
i have a strange behaviour of the openvpn service:
I have a server and multiple clients. Everything works fine up to this week. We bought a new laptop, I installed openvpn 2.4.1, issued a new certificate, copied the configuration file and tried to connect. The connection seemed to be fine, the openvpn-gui-window dissapeared as usual but the connection didn't work. AND, from now, I could not connect with any other device to the server. So I restartet the openvpn-daemon (windows server system) and everything works fine again. Until I try to connect with the new Laptop. This connection seems to cause a crash of the openvpn service, so that I have to restart it. I also tried older versions of openvpn for the laptop. Same result... I updated the server openvpn... Same result. I even set up a new vpn server on a different machine, Same same. Has anybody an idea whats going on? All the other computers can connect without any problems. Also the logfile did not help me any further (verb 5), it looks the same as when a normal connection is established...
Client
client
remote XXXX
port 1195
proto udp
dev tap
pkcs12 XXXX.p12
ns-cert-type server
pull
verb 3
mute 50
Server
server 10.10.1.0 255.255.255.0
port 1194
proto udp
dev tap
log-append Server.log
pkcs12 XXXX.p12
dh dh1024.pem
push "route 192.168.1.0 255.255.255.0"
keepalive 20 180
verb 3
mute 50
Thanks for you help !
Chris
Re: openvpn crashes due to connect from one special machine
Thanks for your help, if anything further missing - just tell me...
Chris[/quote]
Re: openvpn crashes due to connect from one special machine
Posted: Wed Apr 12, 2017 12:18 pm
by TinCanTech
dpt wrote:if anything further missing - just tell me...
Your complete server log at --verb 4 showing the time at which the problem client connects and what happens after the client has connected.
dpt wrote:the connection didn't work. AND, from now, I could not connect with any other device to the server. So I restartet the openvpn-daemon (windows server system) and everything works fine again. Until I try to connect with the new Laptop
If the server has crashed there should be error messages in the log (above).
Re: openvpn crashes due to connect from one special machine
Posted: Wed Apr 12, 2017 3:31 pm
by dpt
Your complete server log at --verb 4 showing the time at which the problem client connects and what happens after the client has connected.
Sorry, thats all, no disconnect logged, no crash logged... The openvpn service does not respond anymore. The log above shows the connection of the problem client, but not more...
If the server has crashed there should be error messages in the log (above).
It isn't . The connection at the client seams to be established (gui is green, ip address is shown in the balloon message) but after that nothing happens anymore. No ping possible, no other client connection possible.
Re: openvpn crashes due to connect from one special machine
Posted: Wed Apr 12, 2017 4:38 pm
by TinCanTech
dpt wrote:Wed Apr 12 12:23:30 2017 Laptop/XXX.XXX.XXX.XXX:1194 MULTI_sva: pool returned IPv4=10.10.1.2, IPv6=(Not enabled)
Wed Apr 12 12:23:31 2017 Laptop/XXX.XXX.XXX.XXX:1194 PUSH: Received control message: 'PUSH_REQUEST'
Wed Apr 12 12:23:31 2017 Laptop/XXX.XXX.XXX.XXX:1194 send_push_reply(): safe_cap=940
Wed Apr 12 12:23:31 2017 Laptop/XXX.XXX.XXX.XXX:1194 SENT CONTROL [Laptop]: 'PUSH_REPLY,route 192.168.1.0
So this is the end of your server log .. Followed by the server crashes ?
Re: openvpn crashes due to connect from one special machine
Posted: Thu Apr 13, 2017 11:35 am
by dpt
Right... After that I have to restart the openvpn service
Re: openvpn crashes due to connect from one special machine
Posted: Thu Apr 13, 2017 11:48 am
by TinCanTech
Try increasing to --verb 7 and see if you get any new information.
Re: openvpn crashes due to connect from one special machine
Posted: Fri Jan 24, 2025 9:49 pm
by Felger
Hello,
I found this old thread, encoutering the same issue.
But not just once. Multiple times, and a an increasing frequency lately
The issue is exactly as described by the author of the thread : randomly, a client OpenVPN computer trigger the issue with its newly connected tunnel. When pinging the remote OVPN server, It works for only a few seconds, then start lossing all packed permanently or for some prolonged periods of time, with very few periods when a few packed go through.
What's especially problematic is that when the issue arises, the OpenVPN's server side is impacted, for all users (currently connected or later) and must be restarted each time.
I have the feeling the occurence of this particular issue seems to increase with newer releases of OpenVPN, especially since r2.6.x / OpenSSL 3.x / TAPv9 9.2x driver.
Configuration is very straighforward : TAP mode. The issue arises in UDP or TCP, whatever the port. A port NAT rule map the port to the OVPN server. They can be physical server (most of my user case, Windows Server 2016 to 2022) or Hyper-V virtual instances on a basic vSwitch connected to a NIC.
No compression enabled, default parameters.
I don't have a big cohort enough of computers triggering this issue to draw any conclusions, but the user computers are all are quite aged :
- A Lenovo Yoga 730-13iwl with a Core i5-8265u. Was used with Windows 10 Pro then 11 Pro (still in use w/ 24H2), with multiple OVPN Releases. Has always triggered the issue.
- An Asus P1410, Core i3-8130u, Windows 10 Pro 22H2
- A HP Zbook 15 G2 , Core i7-4810HQ, W10 Pro 22H2
Can't remind having a AMD's CPU-based computer triggering the issue so far, but I have very few in use.
Seems to me OpenVPN (or OpenSSL 3.x / TAPv9.x driver) for Windows seems broken, under circumstancies.
At this point, I'm wondering if code optimization / SIMD / AES-SHA hardware acceleration might be broken with older Core Gen CPU.
I'm planning to replace some of the Windows OpenVPN server's instances with appliances running PfSense CE for firewalling and OpenVPN service, hoping it will at least prevent the nasty issue occuring server-side process and impacting the whole service every time.
Re: openvpn crashes due to connect from one special machine
Posted: Fri Jan 24, 2025 9:59 pm
by Felger
Last piece of information : on these computers, the issue arises whatever the interface used (wifi, wired), the interface driver (tested a lot) or the ISP (fiber, DSL, LTE)
Re: openvpn crashes due to connect from one special machine
Posted: Fri Jan 31, 2025 11:34 pm
by Felger
I set up an OpenVPN server on a pfSense 2.7.2 CE, hosted on a atom board, and ran a few hours of tests this week with one of the mentioned computer that trigged the issue. the pfSense replaced the OVPN Windows Server on site. Same overall configuration was ported to pfSense.
> Everything seems to work finely, the client does not exhibit the issue observed when used with the Windows OVPN server.
Moreover, the latency seems better (noticeable with a RDS usage), although the max bandwith offered by the E3930 board/PfSense is much lower than the Windows Server's Xeon E-2134 (~150 MBps vs ~500 MBps)