Skip to content
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

Reconnection issues #372

Open
Ciao121 opened this issue May 6, 2024 · 0 comments
Open

Reconnection issues #372

Ciao121 opened this issue May 6, 2024 · 0 comments

Comments

@Ciao121
Copy link

Ciao121 commented May 6, 2024

Describe the bug
I have an application that sometimes disconnects and reconnects the VPN. It can work for hours or days, but at some point ProtonVPN starts giving the classic "Authentication error" message. The application tries to reconnect, but I can't get it to re-establish a connection. I can stop the application, wait 10 minutes, restart the server and try again, but the error is always the same.
However, if I execute "protonvpn init" with the same parameters, the application is able to connect again. The file where the credentials are stored remains identical to the previous one.
I can't figure out where the problem might be.

Desktop (please complete the following information):

  • OS: Debian GNU/Linux 10 (buster)
  • Python Version: Python 3.7.3
  • ProtonVPN-CLI Version: ProtonVPN-CLI v2.2.12
@Ciao121 Ciao121 changed the title [BUG] Reconnection issues May 6, 2024
@Catalyst105
Copy link

Catalyst105 commented Jun 11, 2024

Hi! I'm on Elementary OS 7.1 (a fork of Ubuntu) but I hope this will work for you like it work for me.

What don't work

Sometime, the connection "pvpn-ipv6leak-protection" don't disconnect and cancel all connection. I don't really know how it works, it's maybe an issue.

How to solve it manually.

It's maybe absolutely not recommended solving it like that and maybe can make security issues, to this at your own risks !

Look on your connection list with this command : nmcli c
You must see something like that :

NAME UUID TYPE DEVICE
Proton VPN XX#XXX xxx-xxx vpn eno1
pvpn-ipv6leak-protection xxx-xxx dummy ipv6leakintrf0
proton0 xxx-xxx tun proton0
Wired connection 1 xxx-xxx ethernet eno1
virbr0 xxx-xxx bridge virbr0

You have to delete the "pvpn-ipv6leak-protection" with this command : nmcli c delete pvpn-ipv6leak-protection

Now your internet is normally back.

How to solve it automatically

I'm not an expert, and I'm bad at scripting, but this work for me, so I'm not responsible if this script could create problem and I hope someone can make a better one. I created a startup script with these commands : protonvpn-cli d & nmcli c delete pvpn-ipv6leak-protection & protonvpn c -f

At startup, the script close protonvpn, delete the connection if it exists and then start the fastest protonvpn server. Like that, I've always a VPN on at launch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants