Forum › Forums › General › Tips and Tricks › Protonvpn
- This topic has 4 replies, 4 voices, and was last updated Jul 26-9:08 am by Girafenaine.
-
AuthorPosts
-
June 11, 2022 at 6:42 pm #84452Member
Vincent17
I have been connecting to protonvpn by ovpn config files. This is not ideal since you have to pick a server without knowing if it is busy. protonvpn-cli, which can choose the fastest server, depends on systemd. Luckily, some people have made a python application that works like protonvpn-cli. https://github.com/Rafficer/linux-cli-community
$ sudo apt install -y openvpn dialog python3-pip python3-setuptools $ sudo pip3 install protonvpn-cli $ sudo protonvpn init #----------------------# $ sudo protonvpn c -f Connecting to NL-FREE#26 via TCP... Connected!I use it on antiX-21_386-base. I hope this is useful.
June 22, 2022 at 10:22 am #85014Memberclementishutin
June 22, 2022 at 6:59 pm #85047Member
andyprough
::I have been connecting to protonvpn by ovpn config files. This is not ideal since you have to pick a server without knowing if it is busy. protonvpn-cli, which can choose the fastest server, depends on systemd. Luckily, some people have made a python application that works like protonvpn-cli. https://github.com/Rafficer/linux-cli-community
$ sudo apt install -y openvpn dialog python3-pip python3-setuptools $ sudo pip3 install protonvpn-cli $ sudo protonvpn init #----------------------# $ sudo protonvpn c -f Connecting to NL-FREE#26 via TCP... Connected!I use it on antiX-21_386-base. I hope this is useful.
Yeah, this is pretty much how I do it on antiX 64 bit. I had not even tried it on 32-bit, it’s good to see that it works there. I get really tired of typing in all the long commands, so I make lots of bash aliases for it. For example, I have bash aliases for the connecting to the fastest local server (“pvf”), for specific local servers (ie, “pvf12” for server #12 in my area), for the fastest server in my favorite foreign country, for making config changes (“pvc”), and for checking the status (“pvs”) and for disconnecting from the service (“pvd”).
And then I combine aliases in crazy ways. For example, check out this alias which uses printf and pipes to automatically configure and connect protonvpn for me:
alias pvfc='printf "4\n1\n" | pvc && printf "5\n1\n" | pvc && pvf && sleep 6 && pvs'What that says is “tell protonvpn config to choose options 4 & 1 for enabling the DNS leak protection”, and then “tell protonvpn config to choose options 5 & 1 to enable the kill switch”, and then “connect to the fastest local server”, and then “tell bash to sleep for 6 seconds while protonvpn connects”, and then “check the status of the vpn connection and print it to the terminal for me”.
Instead of all that, I just type “pvfc”.
There’s more you can do, especially if you want to combine it with randomizing your mac address via the macchanger command, but that gets pretty esoteric. If anyone is interested in learning more you can leave a message here and I’ll be happy to give more advanced stuff.
June 23, 2022 at 2:21 am #85067MemberVincent17
::WHich device are you using it on?
An old MSI netbook: inxi here: https://www.antixforum.com/forums/topic/thank-you-2/
As I remember, I installed pvpn from the antiX repo in antiX-17, but it hasn’t appeared yet for antiX-21.July 26, 2022 at 9:08 am #86548Member
Girafenaine
::Hello Vincent17,
Thanks for pointing this python openvpn-cli out.
I use openvpn to connect to proton vpn servers. With some scripts and shortcuts :
– my system is connected through proton vpn server automatically at startup (just with openvpn service, no customization here)
– I can switch vpn on or off by a “Ctrl+Shift+W” or “Ctrl+Shift+X” shortcut
– I can open a without-vpn-session on muy browser with “Shift+F6” (instead of only F6 to a normal, vpn protected session). I use firejail abilities for managing “network name spaces” to do such a thing (create a network name space that does not know about the vpn, just for this browser session. I can have a vpn protected browser window, and simultaneous browser window without any vpn. The last one uses a much more private-conscious profile, without customisations, no access to my files, no web history…).I had to choose a server to connect to, and it’s the always the same. It seems to work well. I understand it’s interesting to check for availibity and speed of the server, to choose a good one at each connection. That would be the main interest for me to “upgrade” to openvpn-cli.
1. Are there any other advantages over a simple openvpn solution ?
2. I once gave a try to official openvpn-cli on MX Linux 21. It installed and started, but I felt it needed NetworkManager to work. As I use connman (on MX Linux as well), I gave up there. I may have been wrong, as it seems that only systemd is a dependency. That’s could be the reason why it does not work well. So I could be interested in the python version… but now that I have a working vpn, I check why it could be better… hence my first point 🙂
Girafenaine
----
Antix 19 - Fluxbox - Live USB stick and frugal / MX 19 - Fluxbox - Dell XPS 7590 -
AuthorPosts
- You must be logged in to reply to this topic.