-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nordvpn how to obtain the private key #15
Comments
I have the same problem, were you able to find another way to get the private key |
NordVPN changed some things in the backend. |
@JAKAMI99 thanks! Was this retrieval possible before, or is this a new feature on their web interface? And is this feature to stay? |
I updated the wiki with what you mentioned @JAKAMI99 please open another issue if this doesn't resolve it to get your private key. Thanks! |
is it not possible to get the wireguard key now?? or is there a way?? |
This is the only way that worked for me. I didn't want to install NordVPN and Wireguard on my host system (Synology), so I ended up running an ubuntu VM, and doing the process on there. Retrieved the key, disconnected from Nord on the VM and shut it down, and then added and rebuilt my docker compose "project". No errors, and works well! Thanks for the link @sebastianvelezg ! |
Seeing these comments, is it still possible to create a key on their web interface @JAKAMI99 ?? EDIT: also related and perhaps outdated is qdm12/gluetun#134 (comment) Re-opening this issue in order to clarify how to get the keys for nordvpn. |
This is a website the has the capability of getting your key. They have many different ways to generate config files, as well as a web interface to get your key. However... the web interface does require your token submission to get the key so users beware. https://github.com/mustafachyi/NordVPN-WireGuard-Config-Generator |
Is it not possible to obtain the wg private key from Nordvpn's website directly? |
Perhaps I'm just dull, but I don't see a way to do it via the website and a quick google search has LOTS of people looking for how to get the wg key. The Nord website lets you create a token to use for login purposes, but they are not the same thing as the key. Happy to be wrong though! |
I am not sure how this works but the website that is linked in the project above works (https://github.com/mustafachyi/NordVPN-WireGuard-Config-Generator?tab=readme-ov-file) --> https://nord-configs-crafter.pages.dev/key I am curious as to how it gets this private key. |
You can see how it is generated here : import requests
def get_key(token):
if not token:
print("Error: Token is empty. Please provide a valid token.")
return
headers = {
'Authorization': f'token:{token}'
}
try:
response = requests.get("https://api.nordvpn.com/v1/users/services/credentials", headers=headers)
response.raise_for_status() # Check if the request was successful
data = response.json()
key = data.get('nordlynx_private_key')
if key:
print(f"Key: {key}")
else:
print("Key not found in the response")
except Exception as e:
print(f"Error fetching key: {e}")
if __name__ == "__main__":
token = input("Enter your token: ").strip()
get_key(token) You basically need to call a API endpoint with the token you got from the manual setup on the nordvpn website |
I'm not a developer, but since a different project has the ability to get the wireguard key via a token, a developer could theoretically use the same method within gluetun to get a wireguard key (looking at the above API). Once you have the WG key you really don't need to do this again, and since I was able to get mine things seem to be working well, but I'd say that its worth of a low priority request that you could submit your token via an environment variable and have gluetun automatically request and store the WG key if the token/api returns one. I'm putting this in the "me asking and not actually doing anything about it", so it's certainly low priority. But, if one of the developers here knows how to do this kind of work, I think it would make the program more feature complete. |
For me, it's now impossible to get Private Keys, mustafachyi website was working, but they changed it and i'm not able to get throught the process now... |
Same, unable to get a key from the website at this time. |
check the new update it should have all you need and more ! (just updated) |
I just got the token or |
URL to the Wiki page
https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/nordvpn.md#obtain-your-wireguard-private-key
What's incorrect?
Nordvpn - Obtain your Wireguard private key via docker no longer work
https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/nordvpn.md#obtain-your-wireguard-private-key
If you need TOKEN to test it, please let me know, I am happy to help.
docker run --rm --cap-add=NET_ADMIN
-e TOKEN='e9fxxxxx' ghcr.io/bubuntux/nordlynx:get_private_key
Waiting for daemon to start up...
A new version of NordVPN is available! Please update the application.
Welcome to NordVPN! You can now connect to VPN by using 'nordvpn connect'.
A new version of NordVPN is available! Please update the application.
Technology is already set to 'NORDLYNX'.
A new version of NordVPN is available! Please update the application.
Connecting to Singapore #514 (sg514.nordvpn.com)
Whoops! Connection failed. Please try again. If the problem persists, contact our customer support.
############################################################
Device "nordlynx" does not exist.
IP:
Unable to access interface: No such device
Private Key:
\(^O^)/
############################################################
The text was updated successfully, but these errors were encountered: