Bug 32969 - protonvpn-cli (community) no longer works - but should; it has been replaced by a new Linux native client.
Summary: protonvpn-cli (community) no longer works - but should; it has been replaced ...
Status: NEEDINFO
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL: https://github.com/Rafficer/linux-cli...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-14 21:53 CET by Holger Mainz
Modified: 2024-06-21 18:02 CEST (History)
2 users (show)

See Also:
Source RPM: python-protonvpn-cli-2.2.11-2.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Holger Mainz 2024-03-14 21:53:13 CET
Sup lads. 

I dunno, if that can be solved by a fresh package.

python3-protonvpn-cli - Linux command-line client 2.2.11-2 does not work anymore. Konsole gives back:

[quote]
# protonvpn c

ProtonVPN now offers an official Linux app which includes a graphical user interface.
Visit https://protonvpn.com/support/official-linux-client to upgrade.
[!] There was an error with accessing the ProtonVPN API.
[!] Please make sure your connection is working properly!
[!] HTTP Error Code: 422 [/quote]

, while the proton support states : 

Hi! The community CLI is no longer supported, since we've introduced new features and are continuing to add new features in the new Linux native client that aren't compatible with the community CLI. In addition to this, the community CLI hasn't been actively maintained in the past few years.

If you're on a supported distro, please consider trying the latest version of our native Linux client: https://protonvpn.com/support/linux-vpn-setup/

Otherwise, you could also consider a manual configuration: https://protonvpn.com/support/wireguard-manual-linux/

I wonder if that can be solved by a simple update on our repos ?
Comment 1 Lewis Smith 2024-03-16 09:26:57 CET
Thank you for the report.

The 'community' CLI site https://github.com/Rafficer/linux-cli-community says:
"Important information
The official ProtonVPN Linux app
[https://protonvpn.com/blog/protonvpn-linux-app/]
is available for Debian 10, Ubuntu 20+, Mint 19+, MX Linux 19+, Fedora 31+ and Archlinux / Manjaro. Where possible, we recommend that you upgrade to the official app. The community Linux client described below remains available for those who need it."

The 'old' version remains valid, and should work; if not recommended.

Holger: did you - or can you - try "a manual configuration:
 https://protonvpn.com/support/wireguard-manual-linux/ "

Await your answer. I suspect for Mageia 9 we will keep the current pkg, but replace it for Mageia 10.

URL: (none) => https://github.com/Rafficer/linux-cli-community, https://protonvpn.com/blog/protonvpn-linux-app/
Summary: protonvpn outdated => protonvpn-cli (community) no longer works - but should; it has been replaced by a new Linux native client.
CC: (none) => lewyssmith
Source RPM: (none) => python-protonvpn-cli-2.2.11-2.mga9.src.rpm

Comment 2 Holger Mainz 2024-03-18 00:14:12 CET
Hello,

i have installed it already. The invoke command shuts down all internet. Servers can not be picked anymore.

# wg-quick up myconfigfile
Warning: `/etc/wireguard/myconfigfile.conf' is world accessible
[#] ip link add myconfigfile type wireguard
[#] wg setconf myconfigfile /dev/fd/63
[#] ip -4 address add 10.2.0.2/32 dev myconfigfile
[#] ip link set mtu 1420 up dev myconfigfile
[#] resolvconf -a tun.myconfigfile -m 0 -x
[#] wg set myconfigfile fwmark portnumber
[#] ip -4 route add 0.0.0.0/0 dev myconfigfile table portnumber
[#] ip -4 rule add not fwmark portnumber table portnumber
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] iptables-restore -n

# wg-quick down myconfigfile
Warning: `/etc/wireguard/myconfigfile.conf' is world accessible
[#] ip -4 rule delete table +++++
[#] ip -4 rule delete table main suppress_prefixlength 0
[#] ip link delete dev myconfigfile
[#] resolvconf -d tun.myconfigfile -f
[#] iptables-restore -n

I have seen, we had an update on proton, i have gotten it, but i keep it idle in order to prevent a crash among the protocols.
Comment 3 Holger Mainz 2024-03-18 00:22:02 CET
I wonder if we should deal with that in one bug. 

For cli users, there is a tray available, that shows vpn traffic on or off. However, with

#dnf install libappindicator-gtk3 gnome-shell-extension-appindicator gnome-extensions-app

the gnome-extensions-app can not be found. Maybe it is missing or - more probable - it is my fault.

:-)
Comment 4 Lewis Smith 2024-03-19 20:38:55 CET
I do not understand the pkgs you tried to install:
libappindicator-gtk3      - can find nothing like it
gnome-shell-extension-appindicator     - exists
gnome-extensions-app      - nothing like it found
 
The nearest packages I could find were:
- gnome-shell-extension-appindicator
- gnome-shell-extensions-apps-menu

(In reply to Holger  Mainz from comment #2)
> i have installed it already. The invoke command shuts down all internet.
> Servers can not be picked anymore.
Installed (& tried) what?

> I have seen, we had an update on proton, i have gotten it, but i keep it
> idle in order to prevent a crash among the protocols.
The version python3-protonvpn-cli/python-protonvpn-cli-2.2.11-2.mga9 you reported about is the only one; there is no more recent one, even in updates_testing. So I do not understand "an update on proton, i have gotten it".
Comment 5 Holger Mainz 2024-03-21 22:14:35 CET
(In reply to Lewis Smith from comment #4)
> I do not understand the pkgs you tried to install:
> libappindicator-gtk3      - can find nothing like it
> gnome-shell-extension-appindicator     - exists
> gnome-extensions-app      - nothing like it found

----> Per site, there is a tray and the mandatory packages are given by https://protonvpn.com/support/official-linux-vpn-fedora/ :  

By default, the GNOME desktop doesn’t support tray icons. To enable this functionality:
1. Run: sudo dnf install libappindicator-gtk3 gnome-shell-extension-appindicator gnome-extensions-app
a.s.o. 

libappindicator-gtk3 & gnome-shell-extension-appindicator seem to have been somewhat been merged.
Good hint : Maybe # dnf install gnome-shell-extensions-apps-menu does the job.

>  
> The nearest packages I could find were:
> - gnome-shell-extension-appindicator
> - gnome-shell-extensions-apps-menu
> 
> (In reply to Holger  Mainz from comment #2)
> > i have installed it already. The invoke command shuts down all internet.
> > Servers can not be picked anymore.
> Installed (& tried) what?

---> I have installed the wireguard client and started it via wg-quick up "my configfilename w/o .conf ending" ( downloaded from account )

> 
> > I have seen, we had an update on proton, i have gotten it, but i keep it
> > idle in order to prevent a crash among the protocols.
> The version python3-protonvpn-cli/python-protonvpn-cli-2.2.11-2.mga9 you
> reported about is the only one; there is no more recent one, even in
> updates_testing. So I do not understand "an update on proton, i have gotten
> it".

----> Afaik, the predecessor of the current package was protonvpn-stable-release-1.0.1-2.noarch.rpm
So, it looks like there was an update.
Comment 6 Lewis Smith 2024-03-22 21:33:53 CET
Just lost a lot of comment...

> ----> Per site, there is a tray and the mandatory packages are given by
> https://protonvpn.com/support/official-linux-vpn-fedora/ :  
> By default, the GNOME desktop doesn’t support tray icons. To enable this
> functionality:
> 1. Run: sudo dnf install libappindicator-gtk3
> gnome-shell-extension-appindicator gnome-extensions-app
This is all Fedora stuff.
 
> libappindicator-gtk3 & gnome-shell-extension-appindicator seem to have been
> somewhat been merged.
> Good hint : Maybe # dnf install gnome-shell-extensions-apps-menu does the
> job.
So try & report back. Gnome Systray needed fiddling to get it for Mageia 8, and changed for M9; I do not know how to get it now

> ---> I have installed the wireguard client and started it via wg-quick up
> "my configfilename w/o .conf ending" ( downloaded from account )
For info:
Name        : wireguard-tools
Summary     : Fast, modern, secure VPN tunnel
WireGuard is a novel VPN that runs inside the Linux Kernel
This package provides the wg binary for controlling WireGuard

> ----> Afaik, the predecessor of the current package was
> protonvpn-stable-release-1.0.1-2.noarch.rpm
> So, it looks like there was an update.
I do not know where you got this, but we only have:
 python-protonvpn-cli-2.2.11-2.mga9.src.rpm
in Mageia less than a year.
Comment 7 Holger Mainz 2024-03-30 20:41:08 CET
Still getting errors : 

I did [root@localhost home]# protonvpn configure

ProtonVPN now offers an official Linux app which includes a graphical user interface.
Visit https://protonvpn.com/support/official-linux-client to upgrade.
What do you want to change?

1) Username and Password
2) ProtonVPN Plan
3) Default Protocol
4) DNS Management
5) Kill Switch
6) Split Tunneling
7) Purge Configuration

Please enter your choice or leave empty to quit:

followed by the normal command

# protonvpn c

ProtonVPN now offers an official Linux app which includes a graphical user interface.
Visit https://protonvpn.com/support/official-linux-client to upgrade.
[!] There was an error with accessing the ProtonVPN API.
[!] Please make sure your connection is working properly!
[!] HTTP Error Code: 422
[root@localhost home]#

Will take it to the support and report back. Happy easter !
Comment 8 Lewis Smith 2024-03-31 21:05:01 CEST
Thanks. Await your feedback from upstream.

In the meantime, can you try the 'new Linux client' if you can get an RPM of it?
Comment 9 Marja Van Waes 2024-06-21 18:02:45 CEST
(In reply to Lewis Smith from comment #8)
> Thanks. Await your feedback from upstream.
> 
> In the meantime, can you try the 'new Linux client' if you can get an RPM of
> it?

No reply.

Changing Status: to NEEDINFO

Status: NEW => NEEDINFO
CC: (none) => marja11


Note You need to log in before you can comment on or make changes to this bug.