# Disconnects with OpenVPN to RMS

**URL:** <https://community.teltonika.lt/t/disconnects-with-openvpn-to-rms/2882>\
**Category:** Networking Solutions\
**Created:** [November 22, 2023, 2:34pm UTC](https://community.teltonika.lt/t/disconnects-with-openvpn-to-rms/2882 "2023-11-22T14:34:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![k.bouterse](https://community.teltonika.lt/letter_avatar_proxy/v4/letter/k/bb73d2/32.png) [@k.bouterse](https://community.teltonika.lt/u/k.bouterse)\
**Post date:** [November 22, 2023, 2:34pm UTC](https://community.teltonika.lt/t/disconnects-with-openvpn-to-rms/2882/1 "2023-11-22T14:34:20Z")

</div>

Hello,

My VPN connection to RMS keeps disconnecting. Sometimes between 2 to 3 times within a minute. I have tested this on 2 different networks but the issue stays the same. Below you can find OpenVPN log.

⏎[Nov 22, 2023, 15:19:21] Client terminated, restarting in 2000 ms…  
⏎[Nov 22, 2023, 15:19:21] SetupClient: signaling tun destroy event  
⏎[Nov 22, 2023, 15:19:22] EVENT: RECONNECTING ⏎[Nov 22, 2023, 15:19:22] EVENT: RESOLVE ⏎[Nov 22, 2023, 15:19:22] Contacting 3.65.167.143:38700 via UDP  
⏎[Nov 22, 2023, 15:19:22] EVENT: WAIT ⏎[Nov 22, 2023, 15:19:22] WinCommandAgent: transmitting bypass route to 3.65.167.143  
{  
“host” : “3.65.167.143”,  
“ipv6” : false  
}

⏎[Nov 22, 2023, 15:19:23] Connecting to [3.65.167.143]:38700 (3.65.167.143) via UDPv4  
⏎[Nov 22, 2023, 15:19:32] Server poll timeout, trying next remote entry…  
⏎[Nov 22, 2023, 15:19:32] EVENT: RECONNECTING ⏎[Nov 22, 2023, 15:19:32] EVENT: RESOLVE ⏎[Nov 22, 2023, 15:19:32] Contacting 3.69.106.81:38700 via UDP  
⏎[Nov 22, 2023, 15:19:32] EVENT: WAIT ⏎[Nov 22, 2023, 15:19:32] WinCommandAgent: transmitting bypass route to 3.69.106.81  
{  
“host” : “3.69.106.81”,  
“ipv6” : false  
}

⏎[Nov 22, 2023, 15:19:33] Connecting to [3.69.106.81]:38700 (3.69.106.81) via UDPv4  
⏎[Nov 22, 2023, 15:19:42] Server poll timeout, trying next remote entry…  
⏎[Nov 22, 2023, 15:19:42] EVENT: RECONNECTING ⏎[Nov 22, 2023, 15:19:42] EVENT: RESOLVE ⏎[Nov 22, 2023, 15:19:42] Contacting 3.65.167.143:38700 via UDP  
⏎[Nov 22, 2023, 15:19:42] EVENT: WAIT ⏎[Nov 22, 2023, 15:19:42] WinCommandAgent: transmitting bypass route to 3.65.167.143  
{  
“host” : “3.65.167.143”,  
“ipv6” : false  
}

⏎[Nov 22, 2023, 15:19:43] Connecting to [3.65.167.143]:38700 (3.65.167.143) via UDPv4  
⏎[Nov 22, 2023, 15:19:43] EVENT: CONNECTING ⏎[Nov 22, 2023, 15:19:43] Tunnel Options:V4,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,keydir 1,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-client  
⏎[Nov 22, 2023, 15:19:43] Creds: UsernameEmpty/PasswordEmpty  
⏎[Nov 22, 2023, 15:19:43] Peer Info:  
IV\_VER=3.git::d3f8b18b  
IV\_PLAT=win  
IV\_NCP=2  
IV\_TCPNL=1  
IV\_PROTO=30  
IV\_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:BF-CBC  
IV\_AUTO\_SESS=1  
IV\_GUI\_VER=OCWindows\_3.3.6-2752  
IV\_SSO=webauth,openurl,crtext  
IV\_BS64DL=1

⏎[Nov 22, 2023, 15:19:43] SSL Handshake: peer certificate: CN=teltonika-vpn-pMcNEUfYxTmxtfNe, 2048 bit RSA, cipher: TLS\_AES\_256\_GCM\_SHA384 TLSv1.3 Kx=any Au=any Enc=AESGCM(256) Mac=AEAD

⏎[Nov 22, 2023, 15:19:43] Session is ACTIVE  
⏎[Nov 22, 2023, 15:19:43] EVENT: GET\_CONFIG ⏎[Nov 22, 2023, 15:19:43] Sending PUSH\_REQUEST to server…  
⏎[Nov 22, 2023, 15:19:43] OPTIONS:  
0 [comp-lzo] [no]  
1 [route] [10.100.2.0] [255.255.255.0]  
2 [route] [10.100.3.0] [255.255.255.0]  
3 [route] [10.100.1.0] [255.255.255.0]  
4 [route] [192.168.255.0] [255.255.255.0]  
5 [topology] [net30]  
6 [ping] [5]  
7 [ping-restart] [15]  
8 [ifconfig] [192.168.255.6] [192.168.255.5]  
9 [peer-id] [2]  
10 [cipher] [AES-256-GCM]

⏎[Nov 22, 2023, 15:19:43] PROTOCOL OPTIONS:  
cipher: AES-256-GCM  
digest: NONE  
key-derivation: OpenVPN PRF  
compress: LZO\_STUB  
peer ID: 2  
control channel: tls-auth enabled  
⏎[Nov 22, 2023, 15:19:43] EVENT: ASSIGN\_IP ⏎[Nov 22, 2023, 15:19:43] CAPTURED OPTIONS:  
Session Name: 3.69.106.81  
Layer: OSI\_LAYER\_3  
Remote Address: 3.65.167.143  
Tunnel Addresses:  
192.168.255.6/30 → 192.168.255.5 [net30]  
Reroute Gateway: IPv4=0 IPv6=0 flags=[IPv4]  
Block IPv6: no  
Add Routes:  
10.100.2.0/24  
10.100.3.0/24  
10.100.1.0/24  
192.168.255.0/24  
Exclude Routes:  
DNS Servers:  
Search Domains:

⏎[Nov 22, 2023, 15:19:44] SetupClient: transmitting tun setup list to \.\pipe\agent\_ovpnconnect  
{  
“allow\_local\_dns\_resolvers” : false,  
“confirm\_event” : “ec15000000000000”,  
“destroy\_event” : “3015000000000000”,  
“tun” :  
{  
“adapter\_domain\_suffix” : “”,  
“add\_routes” :  
[  
{  
“address” : “10.100.2.0”,  
“gateway” : “”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : false,  
“prefix\_length” : 24  
},  
{  
“address” : “10.100.3.0”,  
“gateway” : “”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : false,  
“prefix\_length” : 24  
},  
{  
“address” : “10.100.1.0”,  
“gateway” : “”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : false,  
“prefix\_length” : 24  
},  
{  
“address” : “192.168.255.0”,  
“gateway” : “”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : false,  
“prefix\_length” : 24  
}  
],  
“block\_ipv6” : false,  
“layer” : 3,  
“mtu” : 0,  
“remote\_address” :  
{  
“address” : “3.65.167.143”,  
“ipv6” : false  
},  
“reroute\_gw” :  
{  
“flags” : 256,  
“ipv4” : false,  
“ipv6” : false  
},  
“route\_metric\_default” : -1,  
“session\_name” : “3.69.106.81”,  
“tunnel\_address\_index\_ipv4” : 0,  
“tunnel\_address\_index\_ipv6” : -1,  
“tunnel\_addresses” :  
[  
{  
“address” : “192.168.255.6”,  
“gateway” : “192.168.255.5”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : true,  
“prefix\_length” : 30  
}  
]  
},  
“wintun” : false  
}  
POST np://[\.\pipe\agent\_ovpnconnect]/tun-setup : 200 OK  
TAP ADAPTERS:  
guid=‘{002521F3-069E-4F29-B8A5-910F5E55810C}’ index=2 name=‘LAN-verbinding 2’  
Open TAP device “LAN-verbinding 2” PATH=“\.\Global{002521F3-069E-4F29-B8A5-910F5E55810C}.tap” SUCCEEDED  
TAP-Windows Driver Version 9.24  
ActionDeleteAllRoutesOnInterface iface\_index=2  
netsh interface ip set interface 2 metric=1  
Ok.  
netsh interface ip set address 2 static 192.168.255.6 255.255.255.252 gateway=192.168.255.5 store=active  
IPHelper: add route 10.100.2.0/24 2 192.168.255.5 metric=-1  
IPHelper: add route 10.100.3.0/24 2 192.168.255.5 metric=-1  
IPHelper: add route 10.100.1.0/24 2 192.168.255.5 metric=-1  
IPHelper: add route 192.168.255.0/24 2 192.168.255.5 metric=-1  
ipconfig /flushdns  
Windows IP Configuration  
Successfully flushed the DNS Resolver Cache.  
TAP: ARP flush succeeded  
TAP handle: 1c07000000000000  
⏎[Nov 22, 2023, 15:19:44] Connected via TUN\_WIN  
⏎[Nov 22, 2023, 15:19:44] LZO-ASYM init swap=0 asym=1  
⏎[Nov 22, 2023, 15:19:44] Comp-stub init swap=0  
⏎[Nov 22, 2023, 15:19:44] EVENT: CONNECTED 3.65.167.143:38700 (3.65.167.143) via /UDPv4 on TUN\_WIN/192.168.255.6/ gw=[192.168.255.5/]⏎[Nov 22, 2023, 15:20:28] Session invalidated: KEEPALIVE\_TIMEOUT  
⏎[Nov 22, 2023, 15:20:28] Client terminated, restarting in 2000 ms…  
⏎[Nov 22, 2023, 15:20:28] SetupClient: signaling tun destroy event  
⏎[Nov 22, 2023, 15:20:30] EVENT: RECONNECTING ⏎[Nov 22, 2023, 15:20:30] EVENT: RESOLVE ⏎[Nov 22, 2023, 15:20:30] Contacting 3.65.167.143:38700 via UDP  
⏎[Nov 22, 2023, 15:20:30] EVENT: WAIT ⏎[Nov 22, 2023, 15:20:30] WinCommandAgent: transmitting bypass route to 3.65.167.143  
{  
“host” : “3.65.167.143”,  
“ipv6” : false  
}

⏎[Nov 22, 2023, 15:20:30] Connecting to [3.65.167.143]:38700 (3.65.167.143) via UDPv4  
⏎[Nov 22, 2023, 15:20:32] EVENT: CONNECTING ⏎[Nov 22, 2023, 15:21:30] EVENT: PAUSE ⏎[Nov 22, 2023, 15:21:30] EVENT: RESUME ⏎[Nov 22, 2023, 15:21:30] EVENT: RECONNECTING ⏎[Nov 22, 2023, 15:21:30] EVENT: RESOLVE ⏎[Nov 22, 2023, 15:21:30] Contacting 3.69.106.81:38700 via UDP  
⏎[Nov 22, 2023, 15:21:30] EVENT: WAIT ⏎[Nov 22, 2023, 15:21:30] WinCommandAgent: transmitting bypass route to 3.69.106.81  
{  
“host” : “3.69.106.81”,  
“ipv6” : false  
}

⏎[Nov 22, 2023, 15:21:30] Connecting to [3.69.106.81]:38700 (3.69.106.81) via UDPv4  
⏎[Nov 22, 2023, 15:21:40] Server poll timeout, trying next remote entry…  
⏎[Nov 22, 2023, 15:21:40] EVENT: RECONNECTING ⏎[Nov 22, 2023, 15:21:40] EVENT: RESOLVE ⏎[Nov 22, 2023, 15:21:40] Contacting 3.65.167.143:38700 via UDP  
⏎[Nov 22, 2023, 15:21:40] EVENT: WAIT ⏎[Nov 22, 2023, 15:21:40] WinCommandAgent: transmitting bypass route to 3.65.167.143  
{  
“host” : “3.65.167.143”,  
“ipv6” : false  
}

⏎[Nov 22, 2023, 15:21:40] Connecting to [3.65.167.143]:38700 (3.65.167.143) via UDPv4  
⏎[Nov 22, 2023, 15:21:50] Server poll timeout, trying next remote entry…  
⏎[Nov 22, 2023, 15:21:50] EVENT: RECONNECTING ⏎[Nov 22, 2023, 15:21:50] EVENT: RESOLVE ⏎[Nov 22, 2023, 15:21:50] Contacting 3.69.106.81:38700 via UDP  
⏎[Nov 22, 2023, 15:21:50] EVENT: WAIT ⏎[Nov 22, 2023, 15:21:50] WinCommandAgent: transmitting bypass route to 3.69.106.81  
{  
“host” : “3.69.106.81”,  
“ipv6” : false  
}

⏎[Nov 22, 2023, 15:21:50] Connecting to [3.69.106.81]:38700 (3.69.106.81) via UDPv4  
⏎[Nov 22, 2023, 15:22:00] Server poll timeout, trying next remote entry…  
⏎[Nov 22, 2023, 15:22:00] EVENT: RECONNECTING ⏎[Nov 22, 2023, 15:22:00] EVENT: RESOLVE ⏎[Nov 22, 2023, 15:22:00] Contacting 3.65.167.143:38700 via UDP  
⏎[Nov 22, 2023, 15:22:00] EVENT: WAIT ⏎[Nov 22, 2023, 15:22:00] WinCommandAgent: transmitting bypass route to 3.65.167.143  
{  
“host” : “3.65.167.143”,  
“ipv6” : false  
}

⏎[Nov 22, 2023, 15:22:00] Connecting to [3.65.167.143]:38700 (3.65.167.143) via UDPv4  
⏎[Nov 22, 2023, 15:22:04] EVENT: CONNECTING ⏎[Nov 22, 2023, 15:22:04] Tunnel Options:V4,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,keydir 1,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-client  
⏎[Nov 22, 2023, 15:22:04] Creds: UsernameEmpty/PasswordEmpty  
⏎[Nov 22, 2023, 15:22:04] Peer Info:  
IV\_VER=3.git::d3f8b18b  
IV\_PLAT=win  
IV\_NCP=2  
IV\_TCPNL=1  
IV\_PROTO=30  
IV\_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:BF-CBC  
IV\_AUTO\_SESS=1  
IV\_GUI\_VER=OCWindows\_3.3.6-2752  
IV\_SSO=webauth,openurl,crtext  
IV\_BS64DL=1

⏎[Nov 22, 2023, 15:22:04] SSL Handshake: peer certificate: CN=teltonika-vpn-pMcNEUfYxTmxtfNe, 2048 bit RSA, cipher: TLS\_AES\_256\_GCM\_SHA384 TLSv1.3 Kx=any Au=any Enc=AESGCM(256) Mac=AEAD

⏎[Nov 22, 2023, 15:22:04] Session is ACTIVE  
⏎[Nov 22, 2023, 15:22:04] EVENT: GET\_CONFIG ⏎[Nov 22, 2023, 15:22:04] Sending PUSH\_REQUEST to server…  
⏎[Nov 22, 2023, 15:22:04] OPTIONS:  
0 [comp-lzo] [no]  
1 [route] [10.100.2.0] [255.255.255.0]  
2 [route] [10.100.3.0] [255.255.255.0]  
3 [route] [10.100.1.0] [255.255.255.0]  
4 [route] [192.168.255.0] [255.255.255.0]  
5 [topology] [net30]  
6 [ping] [5]  
7 [ping-restart] [15]  
8 [ifconfig] [192.168.255.6] [192.168.255.5]  
9 [peer-id] [0]  
10 [cipher] [AES-256-GCM]

⏎[Nov 22, 2023, 15:22:04] PROTOCOL OPTIONS:  
cipher: AES-256-GCM  
digest: NONE  
key-derivation: OpenVPN PRF  
compress: LZO\_STUB  
peer ID: 0  
control channel: tls-auth enabled  
⏎[Nov 22, 2023, 15:22:04] EVENT: ASSIGN\_IP ⏎[Nov 22, 2023, 15:22:04] CAPTURED OPTIONS:  
Session Name: 3.69.106.81  
Layer: OSI\_LAYER\_3  
Remote Address: 3.65.167.143  
Tunnel Addresses:  
192.168.255.6/30 → 192.168.255.5 [net30]  
Reroute Gateway: IPv4=0 IPv6=0 flags=[IPv4]  
Block IPv6: no  
Add Routes:  
10.100.2.0/24  
10.100.3.0/24  
10.100.1.0/24  
192.168.255.0/24  
Exclude Routes:  
DNS Servers:  
Search Domains:

⏎[Nov 22, 2023, 15:22:05] SetupClient: transmitting tun setup list to \.\pipe\agent\_ovpnconnect  
{  
“allow\_local\_dns\_resolvers” : false,  
“confirm\_event” : “fc15000000000000”,  
“destroy\_event” : “3c12000000000000”,  
“tun” :  
{  
“adapter\_domain\_suffix” : “”,  
“add\_routes” :  
[  
{  
“address” : “10.100.2.0”,  
“gateway” : “”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : false,  
“prefix\_length” : 24  
},  
{  
“address” : “10.100.3.0”,  
“gateway” : “”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : false,  
“prefix\_length” : 24  
},  
{  
“address” : “10.100.1.0”,  
“gateway” : “”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : false,  
“prefix\_length” : 24  
},  
{  
“address” : “192.168.255.0”,  
“gateway” : “”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : false,  
“prefix\_length” : 24  
}  
],  
“block\_ipv6” : false,  
“layer” : 3,  
“mtu” : 0,  
“remote\_address” :  
{  
“address” : “3.65.167.143”,  
“ipv6” : false  
},  
“reroute\_gw” :  
{  
“flags” : 256,  
“ipv4” : false,  
“ipv6” : false  
},  
“route\_metric\_default” : -1,  
“session\_name” : “3.69.106.81”,  
“tunnel\_address\_index\_ipv4” : 0,  
“tunnel\_address\_index\_ipv6” : -1,  
“tunnel\_addresses” :  
[  
{  
“address” : “192.168.255.6”,  
“gateway” : “192.168.255.5”,  
“ipv6” : false,  
“metric” : -1,  
“net30” : true,  
“prefix\_length” : 30  
}  
]  
},  
“wintun” : false  
}  
POST np://[\.\pipe\agent\_ovpnconnect]/tun-setup : 200 OK  
TAP ADAPTERS:  
guid=‘{002521F3-069E-4F29-B8A5-910F5E55810C}’ index=2 name=‘LAN-verbinding 2’  
Open TAP device “LAN-verbinding 2” PATH=“\.\Global{002521F3-069E-4F29-B8A5-910F5E55810C}.tap” SUCCEEDED  
TAP-Windows Driver Version 9.24  
ActionDeleteAllRoutesOnInterface iface\_index=2  
netsh interface ip set interface 2 metric=1  
Ok.  
netsh interface ip set address 2 static 192.168.255.6 255.255.255.252 gateway=192.168.255.5 store=active  
IPHelper: add route 10.100.2.0/24 2 192.168.255.5 metric=-1  
IPHelper: add route 10.100.3.0/24 2 192.168.255.5 metric=-1  
IPHelper: add route 10.100.1.0/24 2 192.168.255.5 metric=-1  
IPHelper: add route 192.168.255.0/24 2 192.168.255.5 metric=-1  
ipconfig /flushdns  
Windows IP Configuration  
Successfully flushed the DNS Resolver Cache.  
TAP: ARP flush succeeded  
TAP handle: 2c18000000000000  
⏎[Nov 22, 2023, 15:22:05] Connected via TUN\_WIN  
⏎[Nov 22, 2023, 15:22:05] LZO-ASYM init swap=0 asym=1  
⏎[Nov 22, 2023, 15:22:05] Comp-stub init swap=0  
⏎[Nov 22, 2023, 15:22:05] EVENT: CONNECTED 3.65.167.143:38700 (3.65.167.143) via /UDPv4 on TUN\_WIN/192.168.255.6/ gw=[192.168.255.5/]⏎

---

<div class="post-metadata">

**Author:** ![Daumantas](https://community.teltonika.lt/user_avatar/community.teltonika.lt/daumantas/32/29_2.png) [@Daumantas](https://community.teltonika.lt/u/Daumantas)\
**Post date:** [November 23, 2023, 6:32am UTC](https://community.teltonika.lt/t/disconnects-with-openvpn-to-rms/2882/3 "2023-11-23T06:32:32Z")

</div>

Hello,

Thank you for reaching out!  
Could you clarify if this behavior was tested on multiple machines with OpenVPN client?  
Perhaps the same .ovpn file is used for multiple OpenVPN client instances? This could cause a similar behavior, as the file should only ever be used by one user. Another user can be added to the VPN hub if multiple client connections are needed.  
Finally, could you try configuring VPN Hub in a different region? Sometimes latency issues could result in a similar behavior.

Best regards,

---

<div class="post-metadata">

**Author:** ![k.bouterse](https://community.teltonika.lt/letter_avatar_proxy/v4/letter/k/bb73d2/32.png) [@k.bouterse](https://community.teltonika.lt/u/k.bouterse)\
**Post date:** [November 24, 2023, 6:35am UTC](https://community.teltonika.lt/t/disconnects-with-openvpn-to-rms/2882/4 "2023-11-24T06:35:11Z")

</div>

Hello,

No we dont use this openvpn file simultanously with a another client. I think you have an issue with your germany dc. I have created 2 new hubs. One with germany as a location and one with Bahrain. The one with germany is unstable and the one with Bahrain is stable. I myself am located in the Netherlands.

---

<div class="post-metadata">

**Author:** ![system](https://community.teltonika.lt/user_avatar/community.teltonika.lt/system/32/15707_2.png) [@system](https://community.teltonika.lt/u/system)\
**Post date:** [December 7, 2023, 2:35pm UTC](https://community.teltonika.lt/t/disconnects-with-openvpn-to-rms/2882/5 "2023-12-07T14:35:03Z")

</div>

This topic was automatically closed after 15 days. New replies are no longer allowed.
