Git Product home page Git Product logo

Comments (3)

edgd1er avatar edgd1er commented on July 19, 2024

Nordvpn client help is rather discrete.

nordvpn login --help
nordvpn login
Usage: nordvpn login [command options] [arguments...]

Options:
   --nordaccount  (default: false)
   --callback     Usually used by the browser to finish Nord Account login flow. Also useful in headless setups. (default: false)
   --token        Use token login method. Does not support MFA. (default: false)
   --help, -h     show help

this page is a bit more detailed: https://support.nordvpn.com/Connectivity/Linux/1325531132/Installing-and-using-NordVPN-on-Debian-Ubuntu-Raspberry-Pi-Elementary-OS-and-Linux-Mint.htm

As I understood, nordaccount is a way to login through a web browser. a graphic display and a direct connection to receive the callback function are required. Nothing workable with docker.

I suggest you create a token and define it in `NORDVPN_LOGIǸ , even better use docker secrets if possible (swarm or docker compose).
Token are created through that url: https://my.nordaccount.com/dashboard/nordvpn/manual-configuration/

I don't understand your last phrase. manually logged in another container ? on the website ? on another computer. please elaborate.

from nordlynx-proxy.

parsahatami98 avatar parsahatami98 commented on July 19, 2024

Hello again
Yeah i know about the new policy of nordvpn
I have logged in to my friend nord account via nordvpn login --callback
I do not have access to get token because it's his account
But since i helped him a little bit in the payment i use it sometimes
So now in the linux debian i have logged in as you can see in the picture
Screenshot_2023-07-24-23-50-18-551_com.server.auditor.ssh.client.jpg

Now is it possible to use your code without nordvpn login requirement and skip the login part and use the nordvpn client to connect

from nordlynx-proxy.

edgd1er avatar edgd1er commented on July 19, 2024

I'm afraid this project will be of no use as the login/password or token are required. Nordvpn client need it to authenticate yourself with nordvpn's servers. furthermore this project use docker.

a solution would be to install wireguard on the debian you are connected to, set technology to wireguard, connect to a server and then export the wireguard configuration, then use this project to run using wireguard and the configuration extracted.

Here's some inspiration:

extractLynxConf() {
[[ ${GENERATE_WIREGUARD_CONF} != true ]] && return || true
if [[ ${TECHNOLOGY,,} != nordlynx ]]; then
log "Info: NORDPVN: Connection is not a Nordlynx (wireguard) type. Cannot extract wireguard information"
return
fi
if [[ -z $(command -v wg) ]]; then
log "Error: NORDPVN: wireguard kernel and tools not installed. installing required packages, using additionnal 317 MB of disk space."
apt-get update && apt-get install -y --no-install-recommends wireguard wireguard-tools
fi
wg showconf nordlynx >/etc/wireguard/wg0.conf
chmod 600 /etc/wireguard/wg0.conf
log "Wireguard configuration written to /etc/wireguard/wg0.conf"
}

wireguard's keys are renewed by nordvpn, they need to be extracted regularly, not sure when though.

As this solution requires to install packages, large ones (300Mb approx), please check with your friend if that's ok, should the debian server be his.

from nordlynx-proxy.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.