lluked / NordVPN_Get-WireGuard-Config

Get NordVPN WireGuard Config
32 stars 6 forks source link

Unable to get private key #1

Open ffalor opened 9 months ago

ffalor commented 9 months ago

Been at this for awhile and came across your comment. I run this, but I do not get a private key.

I'm using docker desktop for windows

2023-12-16 13:12:24 #################### Recommended Server ####################
2023-12-16 13:12:24 Server Identifier: us9367
2023-12-16 13:12:24 Hostname: us9367.nordvpn.com
2023-12-16 13:12:24 IP: 194.233.98.105
2023-12-16 13:12:24 City: Atlanta
2023-12-16 13:12:24 Country: United States
2023-12-16 13:12:24 Server Public Key: Ew0CPosTB0dTZRKx9XyAblENRsyey7gPhNmp64sceVo=
2023-12-16 13:12:24 ############################################################
2023-12-16 13:12:24 
A new version of NordVPN is available! Please update the application.
Welcome to NordVPN! You can now connect to VPN by using 'nordvpn connect'.
2023-12-16 13:12:26 ###################### Client Details ######################
2023-12-16 13:12:26 Private Key: 
2023-12-16 13:12:26 IP Address: 
2023-12-16 13:12:26 ############################################################
2023-12-16 13:12:26 
2023-12-16 13:12:26 ##################### WireGuard Config #####################
2023-12-16 13:12:26 # Configuration for us9367.nordvpn.com (194.233.98.105) - Atlanta, United States
2023-12-16 13:12:26 [Interface]
2023-12-16 13:12:26 Address = 
2023-12-16 13:12:26 PrivateKey = 
2023-12-16 13:12:26 DNS = 9.9.9.9
2023-12-16 13:12:26 
2023-12-16 13:12:26 [Peer]
2023-12-16 13:12:26 PublicKey = <public key retuns>
2023-12-16 13:12:26 AllowedIPs = 0.0.0.0/0
2023-12-16 13:12:26 Endpoint = us9367.nordvpn.com:51820
2023-12-16 13:12:26 ############################################################
A new version of NordVPN is available! Please update the application.
You are not connected to NordVPN.
2023-12-16 13:12:26 Unable to access interface: No such device
2023-12-16 13:12:26 Device "nordlynx" does not exist.
2023-12-16 13:12:26
ffalor commented 9 months ago

Not sure the cause, I sat in chat with nordvpn for about a hour while the troubleshoot, and they were unable to come to a resolution. I ended up just downloading virtual box and setting up an ubuntu server and was able to get my info without issue in a few mins.

Adding this here incase others run across this in the future.

lluked commented 9 months ago

Not sure the cause, I sat in chat with nordvpn for about a hour while the troubleshoot, and they were unable to come to a resolution. I ended up just downloading virtual box and setting up an ubuntu server and was able to get my info without issue in a few mins.

Adding this here incase others run across this in the future.

Glad you got it sorted. I don't have docker setup on windows and tend to avoid, I will have a go on windows when I get some free time.

lluked commented 9 months ago

I have updated the error handling, it appears when running with docker on windows through wsl the connection fails

 *  Executing task: docker logs --tail 1000 -f e8a4adfcf87c1c2a4786ae6f77fd469d134ed40268a037488249fc4d9c66562a 

#################### Recommended Server ####################
Server Identifier: uk1910
Hostname: uk1910.nordvpn.com
IP: 5.101.174.195
City: London
Country: United Kingdom
Server Public Key: K53l2wOIHU3262sX5N/5kAvCvt4r55lNui30EbvaDlE=
############################################################

Welcome to NordVPN! You can now connect to VPN by using 'nordvpn connect'.
Technology is already set to 'NORDLYNX'.
Connecting to United Kingdom #1910 (uk1910.nordvpn.com)
The VPN connection has failed. Please check your internet connection and try connecting to the VPN again. If the issue persists, contact our customer support.
You are logged out.
exiting...

Although the error message provided by nordvpn is not very helpfull I believe this may be due to wsl and the management of permissions. I can't get it to work for windows currently.

ffalor commented 9 months ago

This matches my experience too. This is the error I got when doing this manually with their docker container they told me to use. I was on support for over an hour with no resolution lol I'd highly suggest windows folks to just spend the 10 mins it takes to setup a ubuntu vm in virtualbox.