Rafficer / linux-cli-community

Linux command-line client for ProtonVPN. Written in Python.
https://protonvpn.com
GNU General Public License v3.0
1.31k stars 198 forks source link

Can not connect #242

Open SCCOBN opened 4 years ago

SCCOBN commented 4 years ago

Mind you, from Windows I have no such problem, only in Linux and this began recently.

alex@mb1  ~  sudo protonvpn connect [sudo] пароль для alex: [!] There was an error connecting to the ProtonVPN API. [!] Please make sure your connection is working properly! ✘ alex@mb1  ~ 

delminskii commented 4 years ago

In accrodance with this line you have no access to api.protonvpn.ch endpoint. Please, try to ping it typing ping api.protonvpn.ch in your terminal/console. I'm afraid it has been blocked in Russia recently (in case this's your location of course).

m1llen1um commented 4 years ago

I'm located in Russia and I also have the same issue. No ping to api.protonvpn.ch.

I used to use AUR's version of protonvpn-cli - protonvpn-cli-ng then switched to the "official" pip version from the documentation and everywhere the result was the same.

Now I'm just log in and downloading ovpn configuration profiles from protonvpn's website and executing it in the terminal: sudo openvpn some-another-profile.protonvpn.com.udp.ovpn

Any suggestions on how I can get the cli working in Russia, maybe you can set up alternative domains/IPs?

Edit: hey, why I can still connect from my Windows machine with the protonvpn application?!

Edit2: the ping points the api.protonvpn.ch to 3.127.229.68. But when I connect to a remote server (Finland in my case) it points to another IP 185.159.159.170

calexandru2018 commented 4 years ago

The reason why it is working in window is because windows has implemented alternative routing.

The Linux clients are atm being rewriten, which will allow to (later) also implement alternative routing, thus bypassing such blocks as you're experiencing.

ghost commented 4 years ago

Hello, Nikolay! You are absolutely correct, there is an access problem - if I'm ping from host (windows Powershell) ping returning to me ping api.protonvpn.ch Pinging api.protonvpn.ch [3.127.229.68] with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 3.127.229.68: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), (pinging without VPN) What is possible here??

С Уважением, Кузьменков Кирилл

вт, 6 окт. 2020 г. в 20:28, Nikolay notifications@github.com:

In accrodance with this line https://github.com/ProtonVPN/linux-cli/blob/965e36af1fe29c60a01664745e051fe84cd8bcc0/protonvpn_cli/utils.py#L48 you have no access to api.protonvpn.ch endpoint. Please, try to ping it typing ping api.protonvpn.ch in your terminal/console. I'm afraid it has been blocked in Russia recently (in case this's your location of course).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ProtonVPN/linux-cli/issues/242#issuecomment-704431338, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGU3T562I5BM6BZJ73IRCTSJNHURANCNFSM4SFQEAGQ .

ghost commented 4 years ago

Hello Nikolay, yes I'm pinging from Russia...and no success so far...  can you please explain what does mean exactly the blocking here... means to use your services i will have to create another VPN?) Fckngtired of our never sleep services.. Is there any other way to solve thjs case?? Отправлено из Mail.ru для Android вторник, 06 октября 2020г., 20:28 +03:00 от Nikolay notifications@github.com :

In accrodance with this line you have no access to api.protonvpn.ch endpoint. Please, try to ping it typing ping api.protonvpn.ch in your terminal/console. I'm afraid it has been blocked in Russia recently (in case this's your location of course). — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or unsubscribe .

652436962 commented 4 years ago

There is already a VPN connection running. Terminating previous connection... Connecting to NL-FREE#1 via UDP... Connection failed.

amirhossein-ka commented 4 years ago

same thing in iran it was working about 3 month ago here but i get [!] There was an error connecting to the ProtonVPN API. [!] Please make sure your connection is working properly!

):

iktak commented 3 years ago

also protonvpn-cli on ubuntu not work in russion. need add bifurcation in this soft and have ping api.protonvpn.ch, now this address no work without vpn but protonvpn.com work, we waet it. this f provider full shit. i use gnome-network-manager with config but this very medium good hack.

i have low speed, i have drop connect is make me scrim

i no know what with this do. i want autostart protonvpn-cli, before in previous year i have very good autostart protonvpn-cli but also low speed on plus plan but i see it nice, and now is no work.