LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2020, 08:02 AM   #1
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,023

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Looking for info/help running ProtonVPN on Slackware64-current


I've been using ProtonVPN now for about two weeks (paid account). I have my router connect to their servers and everything works but is slow. I have been trying to get their protonvpn_cli application to work directly on my Slackware box but no joy so far. It installs fine with pip3, initializes without a hitch but when I try to connect it just says that it encountered an "error" and to check my internet connection (which is fine). After a connection attempt using the protonvpn app I lose all ability to access dns servers. Browser(s) just say that they can't resolve the address. All is fine after rebooting. Their help desk people and documentation are all apt-get centric. Of their prerequisites the only one that I didn't get was network-manager-openvpn-gnome so, fingers crossed I installed NetworkManager-openvpn from Slackbuilds.

So, I'm curious if anyone has gotten protonvpn_cli to run on a Slack64-current box??? If so I'd like to know how. Many thanks if you have experience.
 
Old 08-07-2020, 08:44 AM   #2
biker_rat
Member
 
Registered: Feb 2010
Posts: 369

Rep: Reputation: 220Reputation: 220Reputation: 220
Starting from scratch it took me 10 minutes to get it to work using the free account on this slackware64-current laptop. Did you use pip3 as su or as an ordinary user (I used su)? Did you log into your protonVPN account at the protonVPN website to get your openvpn user name & password? They are different than your protonmail email username and password and you need them to use protonvpn_cli. You are allowed to customize them to something you can memorize (the initial ones are long random strings). The free server is pretty fast (throttled to 100Mbit/sec).

Last edited by biker_rat; 08-07-2020 at 08:45 AM.
 
Old 08-07-2020, 08:55 AM   #3
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,023

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Thanks for the response. I used pip3 although on my machine pip is a link to pip3. Yes, I got the UN/PW correct.
 
Old 08-07-2020, 09:31 AM   #4
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,023

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
biker_rat, when you use protonvpn_cli to connect does it modify your /etc/resolv.conf?? When I do and when my dns resolution has gone in the toilet my resolv.conf has been changed to

Code:
# ProtonVPN DNS Servers. Managed by ProtonVPN-CLI.
nameserver 10.50.0.1
and all of the normal entries have been commented out.
 
Old 08-07-2020, 09:57 AM   #5
biker_rat
Member
 
Registered: Feb 2010
Posts: 369

Rep: Reputation: 220Reputation: 220Reputation: 220
It did not modify my /etc/resolv.conf. /etc/resolv.conf still points to my router.
-Edit, the above is wrong. While it is running it points at 10.50.0.1, same as yours. It goes back to the original (pointing at router) when I disconnect.

Last edited by biker_rat; 08-07-2020 at 10:02 AM.
 
Old 08-07-2020, 10:29 AM   #6
biker_rat
Member
 
Registered: Feb 2010
Posts: 369

Rep: Reputation: 220Reputation: 220Reputation: 220
I was able to connect to protonVPN using the openvpn configuration files available in the protonVPN account page and NetworK Manager applets native openvpn gui as well. You can write a bash script to create a killswitch using the ufw program. You just have to remember to call the command ufw allow out to x.x.x.x were x.x.x.x is the DNS server that appears in /etc/resolv.conf after the vpn connection is made and your kill switch script is run so that DNS will work.
 
Old 08-07-2020, 11:17 AM   #7
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,023

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Which specific openvpn config file did you pick?
 
Old 08-07-2020, 12:00 PM   #8
biker_rat
Member
 
Registered: Feb 2010
Posts: 369

Rep: Reputation: 220Reputation: 220Reputation: 220
Netherlands free server #1 udp.
 
Old 08-08-2020, 03:39 AM   #9
ceed
Member
 
Registered: Jul 2014
Distribution: Slackware_x64 15
Posts: 68

Rep: Reputation: Disabled
Hi 3rensh,

1. did you install with full root path? i.e.: su -

2. you must be have the full root path (i.e. su -) when you call protonvpn, otherwise it will bork when it in turn calls openvpn. Sudo will not suffice.

3. the above resolv.conf reported by you is the correct behaviour; however, in your case the script is not completing leaving you with the protonvpn dns but no vpn. Calling "protonvpn d" will take you back to your normal dns servers in the same way as you would disconnect from a successful vpn session.

4. the program has a killswitch built in: see "protonvpn configure"

5. It's a great vpn service. I've been using the paid basic tier for over a year now and I don't notice any significant lag.

I hope this is clear, helpful and you find success.
 
Old 08-08-2020, 06:00 AM   #10
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,023

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Thank you biker_rat and ceed. I just put on my dunce cap. The problem was I hadn't cleared my iptables and the port was blocked. Clearing them allowed a connection. Oh yeah, tut mir leid. I had shut down my shorewall FW but didn't clear the iptables. I guess now I need to figure out how to configure shorewall to allow protonvpn but that's another story. Probably just open port 1194. Thanks again for your input.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: ProtonVPN adopts GPLv3, Mozilla Thunderbird gets new home, and more news LXer Syndicated Linux News 0 02-02-2020 02:03 PM
Instructions for installing/setup of protonVPN on Slackware 14.2 - Multilib endless-rain Slackware - Installation 15 08-04-2018 03:53 AM
Instructions/Steps for installing/setup of protonVPN on Slackware 14.2 - Multilib. endless-rain Slackware 1 08-01-2018 10:12 AM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration