[SOLVED] Anyone running Protonvpn under networkmanager?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm on current, and trying to run Protonvpn. I weaned myself off network setup via init scripts, because the vpn would drop out sporadically. Restarting the vpn would fix it. But it was an irritation.
So now I have Networkmanager, grabbed the deb2tgz script, ran the slackbuild, The pkg only contains a file in /etc/apt/sources.list.d/, one in /usr/share/doc/ & /usr/share/keyrings/.
Should I go back to the init scripts? Did I grab the wrong file?
Last edited by business_kid; 03-28-2024 at 11:56 AM.
Not with the Proton VPN client, but yes you can use NetworkManager if you download the OpenVPN configuration file from your Proton account and then import that file into NetworkManager. I did this on my last computer. The downside is every different Proton VPN server has its own configuration file. That is, you don't get the auto-selection feature that the ProtonVPN client has.
I'm on current, and trying to run Protonvpn. I weaned myself off network setup via init scripts, because the vpn would drop out sporadically. Restarting the vpn would fix it. But it was an irritation.
So now I have Networkmanager, grabbed the deb2tgz script, ran the slackbuild, The pkg only contains a file in /etc/apt/sources.list.d/, one in /usr/share/doc/ & /usr/share/keyrings/.
Should I go back to the init scripts? Did I grab the wrong file?
Yep
I have a wireguard conf that works fine
But the downloaded file cannot be included as is, I have to complete a new configuration
in NM by hands
Well, it transpires the maintainer of the Protonvpn Slackbuild has an @protonvpn.com email, so I've sent him a query. I'll post what I get back. The more I think about importing things into networkmanager, the more unwell I feel. Init scripts are nice.
I'll post the gist of what comes back (if anything). I have a backup of the old system which I can't restore, but I can pinch 'known good' stuff from. I've been doing that. /etc/rc.d/ stuff is all known good.
But the downloaded file cannot be included as is, I have to complete a new configuration
in NM by hands
Just to explain, my previous post was a reply to @drumz
But thanks for that, you have made up my mind for me. RC scripts it is for me. I had an alias for the community app where I could simply put 'vp <country code> and I would be logged on to the server of choice, It was useful for getting around outages, or deceiving geo-ip .
EDIT: @drumz: Thanks for spotting that. The email actually was sent to @protonmail.com.
Last edited by business_kid; 03-28-2024 at 03:03 PM.
Reason: To edit the edit
I use a couple of wireguard configs under NM which work fine. Downside is I lose access to full list of servers.
The community build works as well, however something has recently broken the status switch (protonvpn s) on my system. I don't know whether it is the recent upgrade or some other python module or other. Does anyone else experience this breakage, and if so any insight would be appreciated.
Feel free to carry on chatting about NM, but I have the linux-community-cli back running, and NM is not being used any more. Protonvpn issues copious error messages but version 2.2.12 works, whereas 2.2.11 does not. I have an issue raised on github, and we'll see what comes of it.
Feel free to carry on chatting about NM, but I have the linux-community-cli back running, and NM is not being used any more. Protonvpn issues copious error messages but version 2.2.12 works, whereas 2.2.11 does not. I have an issue raised on github, and we'll see what comes of it.
Did you do anything special? I tried setting up linux-community-cli on my new computer (Slackware 15.0) and it doesn't work. (I'm on the free VPN plan, and tried both UDP and TCP connection types.)
Code:
# protonvpn init
...
Writing configuration to disk...
[!] There was an error connecting to the ProtonVPN API.
[!] Please make sure your connection is working properly!
In the download linux-coomunity-cli directory, there is a file called requirements.txt. I ran (as root)
Code:
pip3 install -r requirements.txt
which gets me the required python3 modules. My /usr/bin/python symlink points at python3.9.
I also found that it only accepted my encrypted password, not what I had entered. I got that from the protonvpn site, IIRC. Protonvpn also only works as root, and doesn't work using sudo. Perhaps that's a config error. I get piles of crap from version 2.2.12, but it works, and I have an open issue about it.
Lastly, if you're on the free plan, and you error out after a check of that website, it's possible that you're connecting to the wrong server. I think there's only 3 countries offering free servers, of which I can remember only 2: NL & JP. So
Code:
protonvpn connect --cc nl
should get you online. If it works add it just after getting online in your init script startup and add 'protonvpn d' as the first line in your network stop routine.
EDIT: UDP works fine - no need to change it. It's smarter.
Last edited by business_kid; 03-29-2024 at 09:39 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.