sebasmonia / nordvpn-client

Unofficial NordVPN client - an excuse to practice Common Lisp and a way to manage my VPN on Fedora Silverblue
MIT License
11 stars 0 forks source link

Any way for the software to auto search best connection and connect without any user intervention? #3

Open andyktaylor opened 9 months ago

andyktaylor commented 9 months ago

Love the program, great work!

As per title, how can I:

  1. Have the program auto start at login
  2. Automatically search best connection and connect to it

Thank you!

andyktaylor commented 9 months ago

Also another ask, as I'm pretty new to linux as a whole, is there a way to make a simple script that I can click to terminate my OpenVPN connection?

I know the temrinal command sudo killall openvpn will do it, but not sure how to make a clickable file that can run

sebasmonia commented 9 months ago

Hi @andyktaylor , about closing your connection using clicks, it depends on the Desktop Environment you are running. With Gnome, you can right-click on the top right corner of the screen to disable the VPN: image

For auto-start, take a look at https://github.com/sebasmonia/nordvpn-client#installation and the .desktop file included in the repository

For start and auto-connect, would adding a parameter work? nordvpn-client auto or nordvpn --auto to trigger that.

andyktaylor commented 9 months ago

Hi @andyktaylor , about closing your connection using clicks, it depends on the Desktop Environment you are running. With Gnome, you can right-click on the top right corner of the screen to disable the VPN: image

For auto-start, take a look at https://github.com/sebasmonia/nordvpn-client#installation and the .desktop file included in the repository

For start and auto-connect, would adding a parameter work? nordvpn-client auto or nordvpn --auto to trigger that.

nordvpn-client auto doesn't seem to do anything, it opens the window, but the detect best local server is still selectable and it doesn't populate anything. Any other suggestions please?

sebasmonia commented 6 months ago

Hey @andyktaylor sorry for the long wait. Life got crazy :)

I was asking if you think that would be a good way to handle it, adding the --auto parameter. Will take a look at it tomorrow and report back!

sebasmonia commented 6 months ago

If you try the latest version, it will auto-connect with --auto. Although since I don't have a NordVPN account anymore, I couldn't do the test 100%, I was prompted for a password, and the UI completed all the steps. I am optimistic :)