cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
317
Views
1
Helpful
6
Replies

Unable to connect Sandbox from OpenConnect client

Chandran
Level 1
Level 1
Trying to connect Sandbox from OpenConnect VPN client but after entering password getting below errors.
 
2024-12-02 23:40:50 | 25e4 | Got CONNECT response: HTTP/1.1 200 OK
2024-12-02 23:40:50 | 25e4 | CSTP connected. DPD 30, Keepalive 20
2024-12-02 23:40:50 | 25e4 | Established DTLS connection (using GnuTLS). Ciphersuite (DTLS1.2)-(ECDHE-RSA)-(AES-256-GCM).
2024-12-02 23:40:50 | 25e4 | DTLS connection compression using LZS.
2024-12-02 23:40:51 | 25e4 | 0: Using existing driver 0.14
2024-12-02 23:40:51 | 25e4 | 0: Creating adapter

2024-12-02 23:40:51 | 25e4 | Cannot read registry key SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{5E285114-0E5C-4AB1-BFBB-541B0700518F}\Connection\Name or is not string
2024-12-02 23:40:51 | 25e4 | 0: Using existing driver 0.14
2024-12-02 23:40:51 | 25e4 | 0: Creating adapter
2024-12-02 23:40:51 | 25e4 | Cannot read registry key SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{EFE3EC6F-FBD1-417F-B0E0-A48C61B6CBA9}\Connection\Name or is not string
2024-12-02 23:40:51 | 25e4 | Set up tun device failed
2024-12-02 23:40:51 | 25e4 | Send BYE packet: Set up tun device failed

2024-12-02 23:40:51 | 3834 | Disconnected
6 Replies 6

Greetings,

Looking at the output and searching explicitly for Cannot read registry key SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{5E285114-0E5C-4AB1-BFBB-541B0700518F}\Connection\Name or is not string this looks to be an issue with openconnect itself. As I do not want to link an external website- the first entry on google searching this phrase seems to exhibit the same issues that you are observing and may be associated with your problem. You may need to inquire on the openconnect gitlab site for further support as this appears to be specific to openconnect code. 

espvic93
Level 1
Level 1

In OpenConnect VPN window edit your current profile or setup a new one, under (advanced) settings rename (interface name) to something simple. I had a very similar issue, hope this helps.

@Chandran are you using windows here? I saw few past thread with this not working, and when the user switched to anyconnect this was ok.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Chandran
Level 1
Level 1

It worked when I edited my profile in OpenConnect and added "mvpn" in local interface.

Hi @Chandran ,

Apologies for the delay getting back to to you. Glad you got this sorted. 

Joe

vtabota
Level 1
Level 1

I've had the same issue: Set up tun device failed

Here is detailed step on what worked for me:

Under Profiles -> Edit selected profile -> Interface name, put "myvpn"