OpenVPN disconnects RDP to Windows 2012 Server (every 10 minutes)

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
thyx
OpenVpn Newbie
Posts: 2
Joined: Mon Jul 24, 2023 1:53 pm

OpenVPN disconnects RDP to Windows 2012 Server (every 10 minutes)

Post by thyx » Mon Jul 24, 2023 1:55 pm

I have a strange problem connecting with OpenVPN.
I connect to the company using OpenVPN client 2.6.5.

If I run RDP connection to the Windows 2016 Datacenter server - everything is OK.
However, if you connect to a server with Windows 2012 Datacenter R2 (build 9600), the OpenVPN client disconnects exactly every 10 minutes, then reconnects 2-3 seconds and .... the situation repeats every 10 minutes.

I made a config with verb=11 and I have this record from the log:

2023-07-24 15:21:43 us=390000 PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=000001BDB164C3B0, ptr=0000000000000000, ad=000001BDB164C440, idx=1, argl=0, argp=00007FFFBAD13D38
2023-07-24 15:21:43 us=390000 PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=000001BDB164BD20, ptr=0000000000000000, ad=000001BDB164BDB0, idx=1, argl=0, argp=00007FFFBAD13D38
2023-07-24 15:21:43 us=390000 TCP/UDP: Closing socket
2023-07-24 15:21:43 us=390000 SIGUSR1[soft,remote-exit] received, process restarting

2023-07-24 15:21:43 us=390000 MANAGEMENT: >STATE:1690204903,RECONNECTING,remote-exit,,,,,
2023-07-24 15:21:43 us=390000 Restart pause, 1 second(s)
2023-07-24 15:21:44 us=406000 Re-using SSL/TLS context
2023-07-24 15:21:44 us=406000 MTU: adding 426 buffer tailroom for compression for 1768 bytes of payload
2023-07-24 15:21:44 us=406000 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2023-07-24 15:21:44 us=406000 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2023-07-24 15:21:44 us=406000 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto UDPv4,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client'
2023-07-24 15:21:44 us=406000 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto UDPv4,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-server'
2023-07-24 15:21:44 us=406000 TCP/UDP: Preserving recently used remote address: [AF_INET]91.207.xx.xx:1194
2023-07-24 15:21:44 us=406000 Socket Buffers: R=[65536->65536] S=[65536->65536]
2023-07-24 15:21:44 us=406000 UDPv4 link local: (not bound)
2023-07-24 15:21:44 us=406000 UDPv4 link remote: [AF_INET]91.207.xx.xx:1194
2023-07-24 15:21:44 us=406000 MANAGEMENT: >STATE:1690204904,WAIT,,,,,,
2023-07-24 15:21:44 us=406000 write_control_auth(): P_CONTROL_HARD_RESET_CLIENT_V2

2023-07-24 15:32:25 us=593000 PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=000001BDB164B870, ptr=0000000000000000, ad=000001BDB164B900, idx=1, argl=0, argp=00007FFFBAD13D38
2023-07-24 15:32:25 us=593000 PKCS#11: __pkcs11h_openssl_ex_data_free entered - parent=000001BDB164AA60, ptr=0000000000000000, ad=000001BDB164AAF0, idx=1, argl=0, argp=00007FFFBAD13D38
2023-07-24 15:32:25 us=593000 TCP/UDP: Closing socket
2023-07-24 15:32:25 us=593000 SIGUSR1[soft,remote-exit] received, process restarting

2023-07-24 15:32:25 us=593000 MANAGEMENT: >STATE:1690205545,RECONNECTING,remote-exit,,,,,
2023-07-24 15:32:25 us=593000 Restart pause, 1 second(s)
2023-07-24 15:32:26 us=609000 Re-using SSL/TLS context
2023-07-24 15:32:26 us=609000 MTU: adding 426 buffer tailroom for compression for 1768 bytes of payload
2023-07-24 15:32:26 us=609000 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2023-07-24 15:32:26 us=609000 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2023-07-24 15:32:26 us=609000 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto UDPv4,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client'
2023-07-24 15:32:26 us=609000 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto UDPv4,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-server'
2023-07-24 15:32:26 us=609000 TCP/UDP: Preserving recently used remote address: [AF_INET]91.207.xx.xx:1194
2023-07-24 15:32:26 us=609000 Socket Buffers: R=[65536->65536] S=[65536->65536]
2023-07-24 15:32:26 us=609000 UDPv4 link local: (not bound)
2023-07-24 15:32:26 us=609000 UDPv4 link remote: [AF_INET]91.207.xx.xx:1194
2023-07-24 15:32:26 us=609000 MANAGEMENT: >STATE:1690205546,WAIT,,,,,,
2023-07-24 15:32:26 us=609000 write_control_auth(): P_CONTROL_HARD_RESET_CLIENT_V2


Any help?

thyx
OpenVpn Newbie
Posts: 2
Joined: Mon Jul 24, 2023 1:53 pm

Re: OpenVPN disconnects RDP to Windows 2012 Server (every 10 minutes)

Post by thyx » Thu Aug 03, 2023 8:27 am

Has anyone had a similar case or can help me with my problem?
Any suggestion on what I can do/check?

alexanderbierig
OpenVpn Newbie
Posts: 1
Joined: Tue Oct 03, 2023 5:15 pm

Re: OpenVPN disconnects RDP to Windows 2012 Server (every 10 minutes)

Post by alexanderbierig » Tue Oct 03, 2023 5:17 pm

I have the same problem, every 5 seconds, no mouseevent is routed
Alex

Post Reply