-
Notifications
You must be signed in to change notification settings - Fork 198
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
[Enhancement] Autostart on Ubuntu 19.04 #10
Comments
I've written a guide for this now, you can access it currently here: https://github.com/ProtonVPN/protonvpn-cli-ng/blob/master/USAGE.md#via-systemd-service Would be great if you could give feedback if it worked as expected for you or if anything was unclear! |
Thanks for the doc! My systemd file looks the following, but it won't autoconnect at startup:
The status shows:
I've also found this instruction, that should automatically reconnect, if the connection drops. Does this also apply to your config? |
Seems like your system didn't have access to the internet when it booted. You could try changing the As there is no "waiting for connection" in ProtonVPN-CLI currently, you need to have a working internet connection before this fires up. |
Even with But if I manually executed What about additional settings, like in the instruction linked above, to automatically reconnect on connection drops? |
You can add a You can also try delaying the unit file, but this may as well have unexpected side effects: https://stackoverflow.com/questions/43001223/how-to-ensure-that-there-is-a-delay-before-a-service-is-started-in-systemd |
Adding
did the trick! Kudos to @Hofer-Julian! With
is not necessary? |
Depends if you want that. This would just allow you to properly disconnect by using The purpose of the guide that I wrote is just to have a "one-shot" auto connect and then manage any further interaction with the CLI. If this is resolved, please close the issue :) |
I take my words back!
or
only work with an already established internet connection at startup. With a cold boot I still get this error message, because I don't have an internet connection when booting. I've tried
and
, but only the hackish
works. But my aim is to connect to the internet only through a VPN, without ever to reveal my true IP. Any ideas how to accomplish that? |
As said before, you need a working internet connection before being able to start ProtonVPN-CLI. There is currently no "waiting for connection". I think adding this however makes sense, so I will keep this issue open and hopefully get to this in the near future. |
Thanks!
|
This fixes the issues described in #10
I just searched for a problem I had with the new protonvpn cli, just to find my name mentioned together the solution. On Fedora 31 I also had to add
for it to work. |
This should generally be fixed when #46 is merged and released :) |
This fixes the issues described in #10
This fixes the issues described in #10
This fixes the issues described in #10
With the merge of #46 this should no longer be an issue. Wait for the next version to be released (hopefully by the end of this week) and then use the PVPN_WAIT feature :) |
For people who are having issues installing protonvpn to start at boot I wrote a simple python script to take care of the work for you: |
What would be the proper way to configure this program to automatically connect to a VPN at system startup in the background on Ubuntu 19.04?
The text was updated successfully, but these errors were encountered: