Error al iniciar ProtonVPN desde CLI usando SSH

Error al iniciar ProtonVPN desde CLI usando SSH

Si estoy físicamente en mi escritorio, puedo iniciar protonvpn sin problemas usando el comando protonvpn-cli c.

Sin embargo, cuando me conecto de forma remota a través de una conexión SSH y ejecuto el mismo comando, aparece este error: Unable to setup reconnect. Please make sure that you have access to internet or that you've previously connected to another server.

Todavía no he tenido suerte buscando en los foros, por lo que agradecería cualquier ayuda.

Actualmente estoy ejecutando Ubuntu 20.04.3 LTS y usando el paquete oficial ProtonVPN (https://protonvpn.com/support/linux-ubuntu-vpn-setup/)

Respuesta1

Después de buscar, ¡finalmente encontré esta solución!

https://djangocas.dev/blog/linux/troubleshooting-protonvpn-EnableIPv6LeakProtectionError-Unable-to-add-IPv6-leak-protection-connection-interface/

Para solucionar este problema, necesitamos agregar una PolicyKitregla para el archivo NetworkManager.

Utilice root para crear un nombre de archivo /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla, el contenido es el siguiente:

Identity=unix-user:<your username>
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yes

Reemplace <your username>con su nombre de usuario de Linux.

Para múltiples nombres de usuario:

Identity=unix-user:<username1>;unix-user:<username2>

Verifique que PolicyKitel Agente de autenticación exista o no:

# ls /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
ls: cannot access '/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1': No such file or directory

Si el archivo no existe, instálelo de la siguiente manera apt-get install policykit-1-gnome:

# apt-get install policykit-1-gnome

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  policykit-1-gnome
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 68.2 kB of archives.
After this operation, 508 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 policykit-1-gnome amd64 0.105-7 [68.2 kB]
Fetched 68.2 kB in 0s (752 kB/s)
Selecting previously unselected package policykit-1-gnome.
(Reading database ... 133186 files and directories currently installed.)
Preparing to unpack .../policykit-1-gnome_0.105-7_amd64.deb ...
Unpacking policykit-1-gnome (0.105-7) ...
Setting up policykit-1-gnome (0.105-7) ...

Si policykit-1-gnomeno existe, intente utilizar apt-cachela búsqueda PolicyKit Authentication Agentpara obtener el nombre del paquete correcto:

# apt-cache search PolicyKit Authentication Agent
lxqt-policykit - LXQt authentication agent for PolicyKit
lxpolkit - LXDE PolicyKit authentication agent
mate-polkit - MATE authentication agent for PolicyKit-1
mate-polkit-bin - MATE authentication agent for PolicyKit-1 (executable wrapper script)
mate-polkit-common - MATE authentication agent for PolicyKit-1 (common files)
libpolkit-agent-1-0 - PolicyKit Authentication Agent API
libpolkit-agent-1-dev - PolicyKit Authentication Agent API - development files
policykit-1-gnome - authentication agent for PolicyKit
polkit-kde-agent-1 - KDE dialogs for PolicyKit
ukui-polkit - UKUI authentication agent for PolicyKit-1

Luego intente ejecutar protonvpn-cliConnect nuevamente. Usted debe ser bueno para ir

información relacionada