cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
551
Views
3
Helpful
11
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
11 Replies 11

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.

The solution proposed by @espvic93 effectively resolved my issue

I was having the same issue with Windows10 and OpenConnect VPN v1.6.2-dirty(64). My logs were similar to Chandran's. I implemented the fix that espvic93 suggested (I named my interface 'int1') and it resolved my issue. I have now been up and running and active in CML for 30  minutes with no issues.

@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

Thanks this worked for me too!

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"

 

Yes sirrrrrrrrrrrrrrrrrrrrr! Thx!

I had a same issue. First I change the profile name to simpe  MYVPN and then i did following:
1. found the ip address of given link.  

2. Connect that link via ip  and then port instead of dns. 
This worked for me