linux-app icon indicating copy to clipboard operation
linux-app copied to clipboard

Unable to add IPv6 leak protection connection/interface

Open numonedad opened this issue 4 years ago • 14 comments
trafficstars

Seeing this when trying to start on a headless Ubuntu

==> /home/drew/.cache/protonvpn/logs/protonvpn-cli.log <==
2021-10-01 13:25:55,232 — cli_wrapper.py — ERROR — connect:268 — Unable to add IPv6 leak protection connection/interface
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/protonvpn_cli/cli_wrapper.py", line 184, in connect
    protocol=protocol
  File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/api.py", line 145, in setup_connection
    self._env.connection_backend.setup(**data)
  File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/connection_backend/nm_client/nm_client.py", line 81, in setup
    self._pre_setup_connection(kwargs.get("entry_ip"))
  File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/connection_backend/nm_client/nm_client.py", line 223, in _pre_setup_connection
    ipv6_lp.manage(KillSwitchActionEnum.ENABLE)
  File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 62, in manage
    self.add_leak_protection()
  File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 103, in add_leak_protection
    subprocess_command
  File "/usr/lib/python3/dist-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 178, in run_subprocess
    raise exception(exception_msg)
protonvpn_nm_lib.exceptions.EnableIPv6LeakProtectionError: Unable to add IPv6 leak protection connection/interface
2021-10-01 13:27:09,167 — cli.py — INFO — __init__:27 —

numonedad avatar Oct 01 '21 13:10 numonedad

Found the answer here, you need permissions to modify network in dbus https://djangocas.dev/blog/linux/troubleshooting-protonvpn-EnableIPv6LeakProtectionError-Unable-to-add-IPv6-leak-protection-connection-interface/

apt-get install policykit-1-gnome

Create a file here

/etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla, the content as below:

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

Afterwards, connect was attempted even though it hangs forever and all egress traffic is blocked.

numonedad avatar Oct 01 '21 13:10 numonedad

Having the same issue. Raspberry Pi OS in headless mode. I tried the solution above but as already noted, it just hangs when trying to connect. I've been waiting for awhile and it still hasn't connected.

NickDiMucci avatar Feb 05 '22 04:02 NickDiMucci

Hey, please check this comment here

calexandru2018 avatar Apr 30 '22 20:04 calexandru2018

Having the same issue on Ubuntu Server 20.04 with Proton VPN CLI v3.12.0 (protonvpn-nm-lib v3.11.0; proton-client v0.7.1). The solution suggested by @numonedad makes protonvpn-cli trying the connection, but hanging indefinitely

alexdibella avatar Jul 25 '22 20:07 alexdibella

Having this issue on protonvpn-nm-lib 3.13.0, ProtonVPN CLI 3.12.0

-------------------------------------------------

-----------	Initialized protonvpn-cli	-----------

-------------------------------------------------
2022-09-19 22:34:03,208 — cli.py — INFO — __init__:29 — Proton VPN CLI v3.12.0 (protonvpn-nm-lib v3.13.0; proton-client v0.7.1)
2022-09-19 22:34:03,212 — cli.py — INFO — __init__:64 — CLI command: Namespace(command='c', version=False, help=False, get_logs=False)
2022-09-19 22:34:03,212 — cli.py — INFO — connect:128 — Options: Namespace(servername=None, fastest=False, random=False, cc=None, sc=False, p2p=False, tor=False, protocol=None, help=False)
2022-09-19 22:34:07,282 — cli_dialog.py — INFO — start:59 — Selected country: "Netherlands"
2022-09-19 22:34:09,450 — cli_dialog.py — INFO — start:63 — Selected server: "NL-FREE#126"
2022-09-19 22:34:10,226 — cli_dialog.py — INFO — start:67 — Selected protocol: "udp"
2022-09-19 22:34:12,094 — cli_wrapper.py — ERROR — connect:379 — Unable to add IPv6 leak protection connection/interface
Traceback (most recent call last):
  File "/nix/store/x4zgdzz3svhm4s150fhsm17mxd7gwrn4-protonvpn-cli-3.12.0/lib/python3.10/site-packages/protonvpn_cli/cli_wrapper.py", line 277, in connect
    self.protonvpn.setup_connection(
  File "/nix/store/8h1fwnyvkjv1xm37a9qb8xs0acmq8ig0-python3.9-protonvpn-nm-lib-3.13.0/lib/python3.9/site-packages/protonvpn_nm_lib/api.py", line 158, in setup_connection
    self._env.connection_backend.setup(**data)
  File "/nix/store/8h1fwnyvkjv1xm37a9qb8xs0acmq8ig0-python3.9-protonvpn-nm-lib-3.13.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/connection_backend/nm_client/nm_client.py", line 81, in setup
    self._pre_setup_connection(kwargs.get("entry_ip"))
  File "/nix/store/8h1fwnyvkjv1xm37a9qb8xs0acmq8ig0-python3.9-protonvpn-nm-lib-3.13.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/connection_backend/nm_client/nm_client.py", line 233, in _pre_setup_connection
    ipv6_lp.manage(KillSwitchActionEnum.ENABLE)
  File "/nix/store/8h1fwnyvkjv1xm37a9qb8xs0acmq8ig0-python3.9-protonvpn-nm-lib-3.13.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 62, in manage
    self.add_leak_protection()
  File "/nix/store/8h1fwnyvkjv1xm37a9qb8xs0acmq8ig0-python3.9-protonvpn-nm-lib-3.13.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 100, in add_leak_protection
    self.run_subprocess(
  File "/nix/store/8h1fwnyvkjv1xm37a9qb8xs0acmq8ig0-python3.9-protonvpn-nm-lib-3.13.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/killswitch/ipv6_leak_protection.py", line 178, in run_subprocess
    raise exception(exception_msg)
protonvpn_nm_lib.exceptions.EnableIPv6LeakProtectionError: Unable to add IPv6 leak protection connection/interface

WolfangAukang avatar Sep 19 '22 03:09 WolfangAukang