LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2023, 07:08 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,412

Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Protonvpn connection issue


I'm using the protonvpn-cli-2.2.11, because I can and very much want to go around networkmanager. I'm a slackware64-15.0 user, so I don't have to suffer that <...sentence deteriorates into expletives>. I can take it or leave it.

I connect via the protonvpn script added to the init scripts (Yes, no systemd) and run the protonvpn-cli to connect. It modifies the route, & etc/resolv.conf. Protonvpn-cli has one short script in /usr/bin and is otherwise much like a python module with small scripts aplenty.

Occasionally, the vpn is liable to hang, In this state, I can't browse. Curiously, running downloads will complete. /etc/resolv.conf sometimes has gone back to it's 'no vpn' state. other times it looks connected. 'Route' throws up the headers, pauses 5-10 second and shows me connected to the vpn. But I'm not. The script has a 'status' option which shows me connected. But if I reconnect, my browsing is fine - until the next time, whenever that is. It might happen 3 times in a morning, the be ok for weeks. Suspending my pc does it reliably.

Any fixes, guesses as to the issue, or tests to narrow this down are welcome and will be tried.
 
Old 07-30-2023, 02:34 PM   #2
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 578

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
until the next time, whenever that is. It might happen 3 times in a morning, the be ok for weeks.
Hi,
Don't use this specific vpn software but does it have a debug mode?
That would be handy.
 
Old 07-31-2023, 04:39 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,412

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
No debug mode. It's a bunch of python scripts which are a remake of a bash script and probably added a few options. It does have the advantage that I can choose my exit point. My transfers are encrypted until the vpn exit point. So a local server in a small country mightn't offer as much protection as say an Australian or Japanese one.


EDIT: I don't actually need protection currently, but may need it some day.

Last edited by business_kid; 07-31-2023 at 04:47 AM.
 
Old 07-31-2023, 02:30 PM   #4
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 578

Rep: Reputation: Disabled
Good news, there is a way to debug if still valid
https://github.com/ProtonVPN/protonvpn-cli/issues/92

Look into the scripts for where it calls the executable and modify it?
 
Old 08-01-2023, 08:30 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,412

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Hmmm.

I checked that site. I'm using the python rewrite of the bash script protonvpn-cli.sh.

You'd hardly call a python script '.sh' would you? I think this is the github site
https://github.com/Rafficer/linux-cli-community bacause IIRC that's what I built in the slackbuild (if there was a slackbuild). I threw this thing together one afternoon anyhow, and honestly don't remember how.

But I never checked that github site for a relevant issue, or posted one. I'll go that road, and report back.

EDIT: Just thinking: Bash scripts are clunky, but might be better than a dodgy python mess. Only, I can't log into github ATM because my email server is offline - again! I have email verification set up on github. As soon as I can get in, I'll drop that email and switch email provider. It's been three days now and they don't care or won't pay the ransom .

www.mail.com works. My password is accepted, and I'm transferred to login.mail.com, which times out.

Last edited by business_kid; 08-01-2023 at 08:40 AM.
 
Old 08-01-2023, 02:56 PM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,412

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Now it's going out to lunch again... I'm checking stuff.
  • /etc/resolv.conf has no vpn lines - just my standard stuff. It thinks I'm disconnected.
  • route takes 5 seconds but throws out vpn lines. It thinks I'm connected.
  • dig responds.
  • whois doesn't respond, or the browser.
  • protonvpn status goes out to lunch. No timeout.
I issued a 'reconnect' command. It replied
Code:
There is already a VPN connection Running.
Terminating existing connection.
I'll chase the Issues on that site I posted, or post one myself. I can get into my mail by using a NY vpn server, so it thinks I'm from the States.

I'll try tomorrow on that github site. It's late here
 
Old 08-11-2023, 05:15 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,412

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Okay. This has taken an unexpected turn.

The problem got drastic. I disconnected the vpn by habit, and the problem persisted. I rang my isp, and they did their "look-up-the-router" trick. That seemed good. I pinged my dns server and it timed out. He asked me to try a different pc, so I dragged myself off to my RazPi and that was fine.

I'll post the network issue as a new thread. If the vpn issue persists, I'll mark this unsolved and update.
 
Old 08-11-2023, 05:34 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
I use ProtonVPN, it never crossed my mind to use their script. I simply fire up openvpn and use the config(s) I downloaded from Proton.

Edit: But I use my own private DNS, I do not need theirs.

Last edited by Emerson; 08-11-2023 at 05:35 PM.
 
Old 08-12-2023, 07:22 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,412

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
I seem sorted at this stage. Don't know what it was, maybe a disk issue but I restored a backup and sorted it that way.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:41 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