ProtonVPN / protonvpn-cli

Legacy protonvpn-cli: ProtonVPN Command-Line Tool for Linux and macOS. This has been superseded by https://github.com/ProtonVPN/protonvpn-cli-ng
Other
607 stars 98 forks source link

Error connecting to VPN #186

Closed pszucs closed 5 years ago

pszucs commented 5 years ago

I've checked the other issues with the same title but none of them seems to be the same as this one. The cli has worked fine until about a day or two ago.

Please see the contents of .protonvpn-cli/connection_logs:

Sun May 19 16:21:21 2019 us=384966 Current Parameter Settings:
Sun May 19 16:21:21 2019 us=385010   config = '/home/peter/.protonvpn-cli/protonvpn_openvpn_config.conf'
Sun May 19 16:21:21 2019 us=385019   mode = 0
Sun May 19 16:21:21 2019 us=385026   persist_config = DISABLED
Sun May 19 16:21:21 2019 us=385033   persist_mode = 1
Sun May 19 16:21:21 2019 us=385040   show_ciphers = DISABLED
Sun May 19 16:21:21 2019 us=385046   show_digests = DISABLED
Sun May 19 16:21:21 2019 us=385052   show_engines = DISABLED
Sun May 19 16:21:21 2019 us=385059   genkey = DISABLED
Sun May 19 16:21:21 2019 us=385065   key_pass_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385071   show_tls_ciphers = DISABLED
Sun May 19 16:21:21 2019 us=385077   connect_retry_max = 0
Sun May 19 16:21:21 2019 us=385084 Connection profiles [0]:
Sun May 19 16:21:21 2019 us=385090   proto = udp
Sun May 19 16:21:21 2019 us=385096   local = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385103   local_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385109   remote = '185.94.189.188'
Sun May 19 16:21:21 2019 us=385115   remote_port = '80'
Sun May 19 16:21:21 2019 us=385121   remote_float = DISABLED
Sun May 19 16:21:21 2019 us=385127   bind_defined = DISABLED
Sun May 19 16:21:21 2019 us=385133   bind_local = DISABLED
Sun May 19 16:21:21 2019 us=385139   bind_ipv6_only = DISABLED
Sun May 19 16:21:21 2019 us=385146   connect_retry_seconds = 5
Sun May 19 16:21:21 2019 us=385152   connect_timeout = 120
Sun May 19 16:21:21 2019 us=385158   socks_proxy_server = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385164   socks_proxy_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385171   tun_mtu = 1500
Sun May 19 16:21:21 2019 us=385177   tun_mtu_defined = ENABLED
Sun May 19 16:21:21 2019 us=385183   link_mtu = 1500
Sun May 19 16:21:21 2019 us=385189   link_mtu_defined = DISABLED
Sun May 19 16:21:21 2019 us=385196   tun_mtu_extra = 32
Sun May 19 16:21:21 2019 us=385202   tun_mtu_extra_defined = ENABLED
Sun May 19 16:21:21 2019 us=385208   mtu_discover_type = -1
Sun May 19 16:21:21 2019 us=385214   fragment = 0
Sun May 19 16:21:21 2019 us=385220   mssfix = 1450
Sun May 19 16:21:21 2019 us=385227   explicit_exit_notification = 0
Sun May 19 16:21:21 2019 us=385233 Connection profiles [1]:
Sun May 19 16:21:21 2019 us=385239   proto = udp
Sun May 19 16:21:21 2019 us=385245   local = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385251   local_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385258   remote = '185.94.189.188'
Sun May 19 16:21:21 2019 us=385264   remote_port = '443'
Sun May 19 16:21:21 2019 us=385270   remote_float = DISABLED
Sun May 19 16:21:21 2019 us=385276   bind_defined = DISABLED
Sun May 19 16:21:21 2019 us=385282   bind_local = DISABLED
Sun May 19 16:21:21 2019 us=385288   bind_ipv6_only = DISABLED
Sun May 19 16:21:21 2019 us=385294   connect_retry_seconds = 5
Sun May 19 16:21:21 2019 us=385301   connect_timeout = 120
Sun May 19 16:21:21 2019 us=385307   socks_proxy_server = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385313   socks_proxy_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385319   tun_mtu = 1500
Sun May 19 16:21:21 2019 us=385325   tun_mtu_defined = ENABLED
Sun May 19 16:21:21 2019 us=385331   link_mtu = 1500
Sun May 19 16:21:21 2019 us=385337   link_mtu_defined = DISABLED
Sun May 19 16:21:21 2019 us=385344   tun_mtu_extra = 32
Sun May 19 16:21:21 2019 us=385350   tun_mtu_extra_defined = ENABLED
Sun May 19 16:21:21 2019 us=385356   mtu_discover_type = -1
Sun May 19 16:21:21 2019 us=385362   fragment = 0
Sun May 19 16:21:21 2019 us=385368   mssfix = 1450
Sun May 19 16:21:21 2019 us=385375   explicit_exit_notification = 0
Sun May 19 16:21:21 2019 us=385381 Connection profiles [2]:
Sun May 19 16:21:21 2019 us=385387   proto = udp
Sun May 19 16:21:21 2019 us=385393   local = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385399   local_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385405   remote = '185.94.189.188'
Sun May 19 16:21:21 2019 us=385413   remote_port = '4569'
Sun May 19 16:21:21 2019 us=385419   remote_float = DISABLED
Sun May 19 16:21:21 2019 us=385425   bind_defined = DISABLED
Sun May 19 16:21:21 2019 us=385432   bind_local = DISABLED
Sun May 19 16:21:21 2019 us=385441   bind_ipv6_only = DISABLED
Sun May 19 16:21:21 2019 us=385448   connect_retry_seconds = 5
Sun May 19 16:21:21 2019 us=385454   connect_timeout = 120
Sun May 19 16:21:21 2019 us=385460   socks_proxy_server = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385466   socks_proxy_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385473   tun_mtu = 1500
Sun May 19 16:21:21 2019 us=385479   tun_mtu_defined = ENABLED
Sun May 19 16:21:21 2019 us=385485   link_mtu = 1500
Sun May 19 16:21:21 2019 us=385491   link_mtu_defined = DISABLED
Sun May 19 16:21:21 2019 us=385497   tun_mtu_extra = 32
Sun May 19 16:21:21 2019 us=385503   tun_mtu_extra_defined = ENABLED
Sun May 19 16:21:21 2019 us=385509   mtu_discover_type = -1
Sun May 19 16:21:21 2019 us=385515   fragment = 0
Sun May 19 16:21:21 2019 us=385522   mssfix = 1450
Sun May 19 16:21:21 2019 us=385528   explicit_exit_notification = 0
Sun May 19 16:21:21 2019 us=385534 Connection profiles [3]:
Sun May 19 16:21:21 2019 us=385540   proto = udp
Sun May 19 16:21:21 2019 us=385546   local = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385552   local_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385558   remote = '185.94.189.188'
Sun May 19 16:21:21 2019 us=385564   remote_port = '1194'
Sun May 19 16:21:21 2019 us=385570   remote_float = DISABLED
Sun May 19 16:21:21 2019 us=385576   bind_defined = DISABLED
Sun May 19 16:21:21 2019 us=385582   bind_local = DISABLED
Sun May 19 16:21:21 2019 us=385588   bind_ipv6_only = DISABLED
Sun May 19 16:21:21 2019 us=385595   connect_retry_seconds = 5
Sun May 19 16:21:21 2019 us=385601   connect_timeout = 120
Sun May 19 16:21:21 2019 us=385607   socks_proxy_server = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385613   socks_proxy_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385619   tun_mtu = 1500
Sun May 19 16:21:21 2019 us=385625   tun_mtu_defined = ENABLED
Sun May 19 16:21:21 2019 us=385631   link_mtu = 1500
Sun May 19 16:21:21 2019 us=385637   link_mtu_defined = DISABLED
Sun May 19 16:21:21 2019 us=385644   tun_mtu_extra = 32
Sun May 19 16:21:21 2019 us=385650   tun_mtu_extra_defined = ENABLED
Sun May 19 16:21:21 2019 us=385656   mtu_discover_type = -1
Sun May 19 16:21:21 2019 us=385663   fragment = 0
Sun May 19 16:21:21 2019 us=385669   mssfix = 1450
Sun May 19 16:21:21 2019 us=385675   explicit_exit_notification = 0
Sun May 19 16:21:21 2019 us=385681 Connection profiles [4]:
Sun May 19 16:21:21 2019 us=385687   proto = udp
Sun May 19 16:21:21 2019 us=385694   local = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385700   local_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385706   remote = '185.94.189.188'
Sun May 19 16:21:21 2019 us=385712   remote_port = '5060'
Sun May 19 16:21:21 2019 us=385718   remote_float = DISABLED
Sun May 19 16:21:21 2019 us=385724   bind_defined = DISABLED
Sun May 19 16:21:21 2019 us=385731   bind_local = DISABLED
Sun May 19 16:21:21 2019 us=385737   bind_ipv6_only = DISABLED
Sun May 19 16:21:21 2019 us=385743   connect_retry_seconds = 5
Sun May 19 16:21:21 2019 us=385759   connect_timeout = 120
Sun May 19 16:21:21 2019 us=385765   socks_proxy_server = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385771   socks_proxy_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385777   tun_mtu = 1500
Sun May 19 16:21:21 2019 us=385783   tun_mtu_defined = ENABLED
Sun May 19 16:21:21 2019 us=385789   link_mtu = 1500
Sun May 19 16:21:21 2019 us=385795   link_mtu_defined = DISABLED
Sun May 19 16:21:21 2019 us=385800   tun_mtu_extra = 32
Sun May 19 16:21:21 2019 us=385806   tun_mtu_extra_defined = ENABLED
Sun May 19 16:21:21 2019 us=385812   mtu_discover_type = -1
Sun May 19 16:21:21 2019 us=385818   fragment = 0
Sun May 19 16:21:21 2019 us=385824   mssfix = 1450
Sun May 19 16:21:21 2019 us=385830   explicit_exit_notification = 0
Sun May 19 16:21:21 2019 us=385836 Connection profiles END
Sun May 19 16:21:21 2019 us=385842   remote_random = ENABLED
Sun May 19 16:21:21 2019 us=385848   ipchange = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385854   dev = 'tun'
Sun May 19 16:21:21 2019 us=385860   dev_type = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385868   dev_node = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385874   lladdr = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385881   topology = 1
Sun May 19 16:21:21 2019 us=385886   ifconfig_local = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385892   ifconfig_remote_netmask = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385898   ifconfig_noexec = DISABLED
Sun May 19 16:21:21 2019 us=385904   ifconfig_nowarn = DISABLED
Sun May 19 16:21:21 2019 us=385910   ifconfig_ipv6_local = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385916   ifconfig_ipv6_netbits = 0
Sun May 19 16:21:21 2019 us=385921   ifconfig_ipv6_remote = '[UNDEF]'
Sun May 19 16:21:21 2019 us=385927   shaper = 0
Sun May 19 16:21:21 2019 us=385933   mtu_test = 0
Sun May 19 16:21:21 2019 us=385939   mlock = DISABLED
Sun May 19 16:21:21 2019 us=385945   keepalive_ping = 0
Sun May 19 16:21:21 2019 us=385951   keepalive_timeout = 0
Sun May 19 16:21:21 2019 us=385957   inactivity_timeout = 0
Sun May 19 16:21:21 2019 us=385963   ping_send_timeout = 0
Sun May 19 16:21:21 2019 us=385969   ping_rec_timeout = 0
Sun May 19 16:21:21 2019 us=385975   ping_rec_timeout_action = 0
Sun May 19 16:21:21 2019 us=385980   ping_timer_remote = DISABLED
Sun May 19 16:21:21 2019 us=385986   remap_sigusr1 = 0
Sun May 19 16:21:21 2019 us=385992   persist_tun = ENABLED
Sun May 19 16:21:21 2019 us=385998   persist_local_ip = DISABLED
Sun May 19 16:21:21 2019 us=386003   persist_remote_ip = DISABLED
Sun May 19 16:21:21 2019 us=386009   persist_key = ENABLED
Sun May 19 16:21:21 2019 us=386015   passtos = DISABLED
Sun May 19 16:21:21 2019 us=386021   resolve_retry_seconds = 1000000000
Sun May 19 16:21:21 2019 us=386026   resolve_in_advance = DISABLED
Sun May 19 16:21:21 2019 us=386032   username = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386038   groupname = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386044   chroot_dir = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386049   cd_dir = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386055   writepid = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386061   up_script = '/etc/openvpn/update-resolv-conf'
Sun May 19 16:21:21 2019 us=386067   down_script = '/etc/openvpn/update-resolv-conf'
Sun May 19 16:21:21 2019 us=386073   down_pre = DISABLED
Sun May 19 16:21:21 2019 us=386079   up_restart = DISABLED
Sun May 19 16:21:21 2019 us=386085   up_delay = DISABLED
Sun May 19 16:21:21 2019 us=386091   daemon = ENABLED
Sun May 19 16:21:21 2019 us=386107   inetd = 0
Sun May 19 16:21:21 2019 us=386114   log = ENABLED
Sun May 19 16:21:21 2019 us=386139   suppress_timestamps = DISABLED
Sun May 19 16:21:21 2019 us=386146   machine_readable_output = DISABLED
Sun May 19 16:21:21 2019 us=386162   nice = 0
Sun May 19 16:21:21 2019 us=386169   verbosity = 4
Sun May 19 16:21:21 2019 us=386175   mute = 0
Sun May 19 16:21:21 2019 us=386181   gremlin = 0
Sun May 19 16:21:21 2019 us=386186   status_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386192   status_file_version = 1
Sun May 19 16:21:21 2019 us=386198   status_file_update_freq = 60
Sun May 19 16:21:21 2019 us=386204   occ = ENABLED
Sun May 19 16:21:21 2019 us=386210   rcvbuf = 0
Sun May 19 16:21:21 2019 us=386216   sndbuf = 0
Sun May 19 16:21:21 2019 us=386222   mark = 0
Sun May 19 16:21:21 2019 us=386228   sockflags = 0
Sun May 19 16:21:21 2019 us=386234   fast_io = ENABLED
Sun May 19 16:21:21 2019 us=386240   comp.alg = 1
Sun May 19 16:21:21 2019 us=386245   comp.flags = 0
Sun May 19 16:21:21 2019 us=386251   route_script = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386257   route_default_gateway = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386263   route_default_metric = 0
Sun May 19 16:21:21 2019 us=386268   route_noexec = DISABLED
Sun May 19 16:21:21 2019 us=386274   route_delay = 0
Sun May 19 16:21:21 2019 us=386280   route_delay_window = 30
Sun May 19 16:21:21 2019 us=386286   route_delay_defined = DISABLED
Sun May 19 16:21:21 2019 us=386292   route_nopull = DISABLED
Sun May 19 16:21:21 2019 us=386297   route_gateway_via_dhcp = DISABLED
Sun May 19 16:21:21 2019 us=386303   allow_pull_fqdn = DISABLED
Sun May 19 16:21:21 2019 us=386309   management_addr = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386318   management_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386324   management_user_pass = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386329   management_log_history_cache = 250
Sun May 19 16:21:21 2019 us=386335   management_echo_buffer_size = 100
Sun May 19 16:21:21 2019 us=386341   management_write_peer_info_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386347   management_client_user = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386353   management_client_group = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386358   management_flags = 0
Sun May 19 16:21:21 2019 us=386364   shared_secret_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386370   key_direction = 2
Sun May 19 16:21:21 2019 us=386376   ciphername = 'AES-256-CBC'
Sun May 19 16:21:21 2019 us=386382   ncp_enabled = ENABLED
Sun May 19 16:21:21 2019 us=386388   ncp_ciphers = 'AES-256-GCM:AES-128-GCM'
Sun May 19 16:21:21 2019 us=386393   authname = 'SHA512'
Sun May 19 16:21:21 2019 us=386399   prng_hash = 'SHA1'
Sun May 19 16:21:21 2019 us=386405   prng_nonce_secret_len = 16
Sun May 19 16:21:21 2019 us=386411   keysize = 0
Sun May 19 16:21:21 2019 us=386417   engine = DISABLED
Sun May 19 16:21:21 2019 us=386423   replay = ENABLED
Sun May 19 16:21:21 2019 us=386429   mute_replay_warnings = DISABLED
Sun May 19 16:21:21 2019 us=386434   replay_window = 64
Sun May 19 16:21:21 2019 us=386440   replay_time = 15
Sun May 19 16:21:21 2019 us=386457   packet_id_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386463   use_iv = ENABLED
Sun May 19 16:21:21 2019 us=386469   test_crypto = DISABLED
Sun May 19 16:21:21 2019 us=386476   tls_server = DISABLED
Sun May 19 16:21:21 2019 us=386482   tls_client = ENABLED
Sun May 19 16:21:21 2019 us=386488   key_method = 2
Sun May 19 16:21:21 2019 us=386494   ca_file = '[[INLINE]]'
Sun May 19 16:21:21 2019 us=386500   ca_path = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386507   dh_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386513   cert_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386519   extra_certs_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386525   priv_key_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386531   pkcs12_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386537   cipher_list = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386544   tls_verify = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386550   tls_export_cert = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386556   verify_x509_type = 0
Sun May 19 16:21:21 2019 us=386562   verify_x509_name = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386568   crl_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386574   ns_cert_type = 0
Sun May 19 16:21:21 2019 us=386580   remote_cert_ku[i] = 65535
Sun May 19 16:21:21 2019 us=386587   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386593   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386599   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386605   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386611   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386617   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386633   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386639   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386645   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386651   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386657   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386662   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386668   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386674   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386680   remote_cert_ku[i] = 0
Sun May 19 16:21:21 2019 us=386685   remote_cert_eku = 'TLS Web Server Authentication'
Sun May 19 16:21:21 2019 us=386691   ssl_flags = 0
Sun May 19 16:21:21 2019 us=386697   tls_timeout = 2
Sun May 19 16:21:21 2019 us=386703   renegotiate_bytes = -1
Sun May 19 16:21:21 2019 us=386709   renegotiate_packets = 0
Sun May 19 16:21:21 2019 us=386715   renegotiate_seconds = 0
Sun May 19 16:21:21 2019 us=386720   handshake_window = 60
Sun May 19 16:21:21 2019 us=386726   transition_window = 3600
Sun May 19 16:21:21 2019 us=386732   single_session = DISABLED
Sun May 19 16:21:21 2019 us=386740   push_peer_info = DISABLED
Sun May 19 16:21:21 2019 us=386747   tls_exit = DISABLED
Sun May 19 16:21:21 2019 us=386752   tls_auth_file = '[[INLINE]]'
Sun May 19 16:21:21 2019 us=386758   tls_crypt_file = '[UNDEF]'
Sun May 19 16:21:21 2019 us=386764   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386770   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386776   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386781   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386787   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386793   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386799   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386805   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386810   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386816   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386822   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386827   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386833   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386839   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386845   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386850   pkcs11_protected_authentication = DISABLED
Sun May 19 16:21:21 2019 us=386856   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386862   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386868   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386874   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386880   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386885   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386891   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386897   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386903   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386909   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386914   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386920   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386926   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386932   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386937   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386943   pkcs11_private_mode = 00000000
Sun May 19 16:21:21 2019 us=386949   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=386955   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=386960   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=386966   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=386972   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=386977   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=386983   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=386989   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=386994   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=387000   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=387006   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=387011   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=387017   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=387023   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=387029   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=387034   pkcs11_cert_private = DISABLED
Sun May 19 16:21:21 2019 us=387040   pkcs11_pin_cache_period = -1
Sun May 19 16:21:21 2019 us=387046   pkcs11_id = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387052   pkcs11_id_management = DISABLED
Sun May 19 16:21:21 2019 us=387058   server_network = 0.0.0.0
Sun May 19 16:21:21 2019 us=387064   server_netmask = 0.0.0.0
Sun May 19 16:21:21 2019 us=387074   server_network_ipv6 = ::
Sun May 19 16:21:21 2019 us=387084   server_netbits_ipv6 = 0
Sun May 19 16:21:21 2019 us=387090   server_bridge_ip = 0.0.0.0
Sun May 19 16:21:21 2019 us=387097   server_bridge_netmask = 0.0.0.0
Sun May 19 16:21:21 2019 us=387103   server_bridge_pool_start = 0.0.0.0
Sun May 19 16:21:21 2019 us=387110   server_bridge_pool_end = 0.0.0.0
Sun May 19 16:21:21 2019 us=387115   ifconfig_pool_defined = DISABLED
Sun May 19 16:21:21 2019 us=387122   ifconfig_pool_start = 0.0.0.0
Sun May 19 16:21:21 2019 us=387128   ifconfig_pool_end = 0.0.0.0
Sun May 19 16:21:21 2019 us=387135   ifconfig_pool_netmask = 0.0.0.0
Sun May 19 16:21:21 2019 us=387141   ifconfig_pool_persist_filename = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387147   ifconfig_pool_persist_refresh_freq = 600
Sun May 19 16:21:21 2019 us=387152   ifconfig_ipv6_pool_defined = DISABLED
Sun May 19 16:21:21 2019 us=387158   ifconfig_ipv6_pool_base = ::
Sun May 19 16:21:21 2019 us=387165   ifconfig_ipv6_pool_netbits = 0
Sun May 19 16:21:21 2019 us=387171   n_bcast_buf = 256
Sun May 19 16:21:21 2019 us=387177   tcp_queue_limit = 64
Sun May 19 16:21:21 2019 us=387183   real_hash_size = 256
Sun May 19 16:21:21 2019 us=387188   virtual_hash_size = 256
Sun May 19 16:21:21 2019 us=387194   client_connect_script = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387200   learn_address_script = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387206   client_disconnect_script = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387211   client_config_dir = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387217   ccd_exclusive = DISABLED
Sun May 19 16:21:21 2019 us=387223   tmp_dir = '/tmp'
Sun May 19 16:21:21 2019 us=387229   push_ifconfig_defined = DISABLED
Sun May 19 16:21:21 2019 us=387235   push_ifconfig_local = 0.0.0.0
Sun May 19 16:21:21 2019 us=387243   push_ifconfig_remote_netmask = 0.0.0.0
Sun May 19 16:21:21 2019 us=387249   push_ifconfig_ipv6_defined = DISABLED
Sun May 19 16:21:21 2019 us=387256   push_ifconfig_ipv6_local = ::/0
Sun May 19 16:21:21 2019 us=387262   push_ifconfig_ipv6_remote = ::
Sun May 19 16:21:21 2019 us=387268   enable_c2c = DISABLED
Sun May 19 16:21:21 2019 us=387274   duplicate_cn = DISABLED
Sun May 19 16:21:21 2019 us=387280   cf_max = 0
Sun May 19 16:21:21 2019 us=387286   cf_per = 0
Sun May 19 16:21:21 2019 us=387291   max_clients = 1024
Sun May 19 16:21:21 2019 us=387297   max_routes_per_client = 256
Sun May 19 16:21:21 2019 us=387303   auth_user_pass_verify_script = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387309   auth_user_pass_verify_script_via_file = DISABLED
Sun May 19 16:21:21 2019 us=387315   auth_token_generate = DISABLED
Sun May 19 16:21:21 2019 us=387321   auth_token_lifetime = 0
Sun May 19 16:21:21 2019 us=387326   port_share_host = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387332   port_share_port = '[UNDEF]'
Sun May 19 16:21:21 2019 us=387338   client = ENABLED
Sun May 19 16:21:21 2019 us=387344   pull = ENABLED
Sun May 19 16:21:21 2019 us=387350   auth_user_pass_file = '/home/peter/.protonvpn-cli/protonvpn_openvpn_credentials'
Sun May 19 16:21:21 2019 us=387356 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep  5 2018
Sun May 19 16:21:21 2019 us=387366 library versions: OpenSSL 1.1.1b  26 Feb 2019, LZO 2.08
Sun May 19 16:21:21 2019 us=387785 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun May 19 16:21:21 2019 us=388070 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sun May 19 16:21:21 2019 us=388084 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sun May 19 16:21:21 2019 us=388145 Control Channel MTU parms [ L:1654 D:1140 EF:110 EB:0 ET:0 EL:3 ]
Sun May 19 16:21:21 2019 us=388167 Data Channel MTU parms [ L:1654 D:1450 EF:122 EB:411 ET:32 EL:3 ]
Sun May 19 16:21:21 2019 us=388187 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1634,tun-mtu 1532,proto UDPv4,comp-lzo,keydir 1,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-client'
Sun May 19 16:21:21 2019 us=388194 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1634,tun-mtu 1532,proto UDPv4,comp-lzo,keydir 0,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-server'
Sun May 19 16:21:21 2019 us=388208 TCP/UDP: Preserving recently used remote address: [AF_INET]185.94.189.188:443
Sun May 19 16:21:21 2019 us=388229 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun May 19 16:21:21 2019 us=388236 UDP link local: (not bound)
Sun May 19 16:21:21 2019 us=388242 UDP link remote: [AF_INET]185.94.189.188:443
Sun May 19 16:21:21 2019 us=421195 TLS: Initial packet from [AF_INET]185.94.189.188:443, sid=c036a665 324c1c46
Sun May 19 16:21:21 2019 us=421289 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun May 19 16:21:21 2019 us=487303 VERIFY OK: depth=2, C=CH, O=ProtonVPN AG, CN=ProtonVPN Root CA
Sun May 19 16:21:21 2019 us=487581 VERIFY OK: depth=1, C=CH, O=ProtonVPN AG, CN=ProtonVPN Intermediate CA 1
Sun May 19 16:21:21 2019 us=487827 VERIFY KU OK
Sun May 19 16:21:21 2019 us=487839 Validating certificate extended key usage
Sun May 19 16:21:21 2019 us=487847 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Sun May 19 16:21:21 2019 us=487854 VERIFY EKU OK
Sun May 19 16:21:21 2019 us=487860 VERIFY OK: depth=0, CN=fr-06.protonvpn.com
Sun May 19 16:21:21 2019 us=546406 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 4096 bit RSA
Sun May 19 16:21:21 2019 us=546437 [fr-06.protonvpn.com] Peer Connection Initiated with [AF_INET]185.94.189.188:443
Sun May 19 16:21:22 2019 us=774226 SENT CONTROL [fr-06.protonvpn.com]: 'PUSH_REQUEST' (status=1)
Sun May 19 16:21:28 2019 us=32873 SENT CONTROL [fr-06.protonvpn.com]: 'PUSH_REQUEST' (status=1)
Sun May 19 16:21:28 2019 us=58056 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 10.8.8.1,sndbuf 524288,rcvbuf 524288,explicit-exit-notify,comp-lzo no,route-gateway 10.8.1.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.8.1.14 255.255.255.0,peer-id 14,cipher AES-256-GCM'
Sun May 19 16:21:28 2019 us=58277 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:5 is ignored by previous <connection> blocks 
Sun May 19 16:21:28 2019 us=58414 OPTIONS IMPORT: timers and/or timeouts modified
Sun May 19 16:21:28 2019 us=58451 OPTIONS IMPORT: explicit notify parm(s) modified
Sun May 19 16:21:28 2019 us=58476 OPTIONS IMPORT: compression parms modified
Sun May 19 16:21:28 2019 us=58499 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
Sun May 19 16:21:28 2019 us=58537 Socket Buffers: R=[212992->425984] S=[212992->425984]
Sun May 19 16:21:28 2019 us=58560 OPTIONS IMPORT: --ifconfig/up options modified
Sun May 19 16:21:28 2019 us=58581 OPTIONS IMPORT: route options modified
Sun May 19 16:21:28 2019 us=58601 OPTIONS IMPORT: route-related options modified
Sun May 19 16:21:28 2019 us=58622 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun May 19 16:21:28 2019 us=58642 OPTIONS IMPORT: peer-id set
Sun May 19 16:21:28 2019 us=58664 OPTIONS IMPORT: adjusting link_mtu to 1657
Sun May 19 16:21:28 2019 us=58684 OPTIONS IMPORT: data channel crypto options modified
Sun May 19 16:21:28 2019 us=58707 Data Channel: using negotiated cipher 'AES-256-GCM'
Sun May 19 16:21:28 2019 us=58746 Data Channel MTU parms [ L:1585 D:1450 EF:53 EB:411 ET:32 EL:3 ]
Sun May 19 16:21:28 2019 us=58914 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Sun May 19 16:21:28 2019 us=58953 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Sun May 19 16:21:28 2019 us=59241 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 IFACE=wlp3s0 HWADDR=20:68:9d:52:cf:d7
Sun May 19 16:21:28 2019 us=59864 TUN/TAP device tun0 opened
Sun May 19 16:21:28 2019 us=59988 TUN/TAP TX queue length set to 100
Sun May 19 16:21:28 2019 us=60044 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Sun May 19 16:21:28 2019 us=60096 /sbin/ip link set dev tun0 up mtu 1500
Sun May 19 16:21:28 2019 us=63086 /sbin/ip addr add dev tun0 10.8.1.14/24 broadcast 10.8.1.255
Sun May 19 16:21:28 2019 us=66064 /etc/openvpn/update-resolv-conf tun0 1500 1585 10.8.1.14 255.255.255.0 init
Sun May 19 16:21:28 2019 us=70363 /sbin/ip route add 185.94.189.188/32 via 192.168.0.1
Sun May 19 16:21:28 2019 us=73516 /sbin/ip route add 0.0.0.0/1 via 10.8.1.1
Sun May 19 16:21:28 2019 us=78984 /sbin/ip route add 128.0.0.0/1 via 10.8.1.1
Sun May 19 16:21:28 2019 us=80668 Initialization Sequence Completed
Sun May 19 16:22:27 2019 us=816657 event_wait : Interrupted system call (code=4)
Sun May 19 16:22:27 2019 us=816696 SIGTERM received, sending exit notification to peer
Sun May 19 16:22:28 2019 us=343257 event_wait : Interrupted system call (code=4)
Sun May 19 16:22:28 2019 us=343506 TCP/UDP: Closing socket
Sun May 19 16:22:28 2019 us=345285 /sbin/ip route del 185.94.189.188/32
Sun May 19 16:22:28 2019 us=348495 /sbin/ip route del 0.0.0.0/1
Sun May 19 16:22:28 2019 us=350373 /sbin/ip route del 128.0.0.0/1
Sun May 19 16:22:28 2019 us=352194 Closing TUN/TAP interface
Sun May 19 16:22:28 2019 us=352252 /sbin/ip addr del dev tun0 10.8.1.14/24
Sun May 19 16:22:28 2019 us=390197 /etc/openvpn/update-resolv-conf tun0 1500 1585 10.8.1.14 255.255.255.0 init
Sun May 19 16:22:28 2019 us=391821 SIGTERM[hard,] received, process exiting

There's a 60+ seconds gap between the

Sun May 19 16:21:28 2019 us=80668 Initialization Sequence Completed

and the

Sun May 19 16:22:28 2019 us=343257 event_wait : Interrupted system call (code=4)

lines. The script displays the 'Connecting...' message and then it seems it hits a timeout limit (after about a minute) and I'll get the error:

Error connecting to VPN.

What's interesting is that I was able to connect using my phone's internet (wi-fi hotspot) but I'm not able to via the router (home network).

At this point I thought it must be an ISP / router issue, however, my phone is able to connect to protonvpn servers using the android app on the same (home) network.

xilopaint commented 5 years ago

Do you have a firewall?

pszucs commented 5 years ago

It seems to be inactive:

sudo ufw status
Status: inactive

sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
xilopaint commented 5 years ago

Please, try sudo pvpn -cc US tcp

pszucs commented 5 years ago

Same result. When the script outputs the error message ("Error connecting to VPN"), there are some entries being logged in the syslog, do you think it's something to do with the issue?

May 20 11:47:24 machine kernel: [34788.803462] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
May 20 11:47:24 machine avahi-daemon[822]: Joining mDNS multicast group on interface lo.IPv6 with address ::1.
May 20 11:47:24 machine avahi-daemon[822]: New relevant interface lo.IPv6 for mDNS.
May 20 11:47:24 machine avahi-daemon[822]: Registering new address record for ::1 on lo.*.
...
May 20 11:47:25 machine NetworkManager[838]: <info>  [1558349245.5517] devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0)
May 20 11:47:25 machine NetworkManager[838]: <info>  [1558349245.5850] device (tun0): state change: activated -> unmanaged (reason 'unmanaged', sys-iface-state: 'removed')
May 20 11:47:25 machine dbus-daemon[832]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.16' (uid=0 pid=838 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
May 20 11:47:25 machine systemd[1]: Starting Network Manager Script Dispatcher Service...
May 20 11:47:25 machine dbus-daemon[832]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 20 11:47:25 machine systemd[1]: Started Network Manager Script Dispatcher Service.
May 20 11:47:25 machine nm-dispatcher: req:1 'down' [tun0]: new request (2 scripts)
May 20 11:47:25 machine nm-dispatcher: req:1 'down' [tun0]: start running ordered scripts...
May 20 11:47:25 machine nm-applet[1629]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
May 20 11:47:25 machine nm-applet[1629]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
May 20 11:47:25 machine wingpanel[1613]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
May 20 11:47:25 machine nm-applet[1629]: Can't set a parent on widget which has a parent
May 20 11:47:25 machine nm-applet[1629]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
May 20 11:47:25 machine nm-applet[1629]: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
May 20 11:47:25 machine nm-applet[1629]: Can't set a parent on widget which has a parent
May 20 11:47:25 machine io.elementary.cerbere.desktop[1608]: Failed to register: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
May 20 11:47:26 machine systemd-resolved[766]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
May 20 11:47:26 machine systemd-resolved[766]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
May 20 11:47:26 machine avahi-daemon[822]: Joining mDNS multicast group on interface wlp3s0.IPv6 with address fe80::e6a0:7ee5:1070:31b9.
May 20 11:47:26 machine avahi-daemon[822]: New relevant interface wlp3s0.IPv6 for mDNS.
May 20 11:47:26 machine avahi-daemon[822]: Registering new address record for fe80::e6a0:7ee5:1070:31b9 on wlp3s0.*.
xilopaint commented 5 years ago

What's the output for pvpn --status? You can hide your public IP.

pszucs commented 5 years ago

Here's the output:

[OpenVPN Status]: Not Running
[ProtonVPN Status]: Not Running
[Internet Status]: Online
[Public IP Address]:
xilopaint commented 5 years ago

Is https://api.protonmail.ch/vpn/logicals accessible from your browser? You should get a json response.

pszucs commented 5 years ago

Yes, it is.

cantalupo555 commented 5 years ago

@pszucs Try installing on a clean operating system or virtual machine and see if it works.

I use the linux distribution called Solus and everything works fine.

pszucs commented 5 years ago

@cantalupo555 I can't re-install an OS every time I encounter an issue with a software I'm using. I'm glad you like Solus, but installing it is not an option for me.

cantalupo555 commented 5 years ago

@cantalupo555 I can't re-install an OS every time I encounter an issue with a software I'm using. I'm glad you like Solus, but installing it is not an option for me.

I understand, test your work environment on a virtual machine...

Have you tried using the .ovpn file?

xilopaint commented 5 years ago

@pszucs please, try to connect with openvpn directly using a config file. If it works the problem should be on your end.

pszucs commented 5 years ago

I've tried the .ovpn file and the network manager as well, neither of them worked.

I found a live usb stick with Ubuntu on it and gave it a go. The first attempt failed (same error), but the consecutive tests (3-4 connection attempts) were successful.

Got back to my main OS and the same happened: the first connect failed and the following 4-5 ones were successful but then it failed to connect again.

I did some further testing to see if I was accidentally trying to connect to a server that is at 100% usage but found that was not the problem - I'm still unable to connect to them.

cantalupo555 commented 5 years ago

I've tried the .ovpn file and the network manager as well, neither of them worked.

I found a live usb stick with Ubuntu on it and gave it a go. The first attempt failed (same error), but the consecutive tests (3-4 connection attempts) were successful.

Got back to my main OS and the same happened: the first connect failed and the following 4-5 ones were successful but then it failed to connect again.

I did some further testing to see if I was accidentally trying to connect to a server that is at 100% usage but found that was not the problem - I'm still unable to connect to them.

As I thought, the problem is with your system...

xilopaint commented 5 years ago

I've tried the .ovpn file and the network manager as well, neither of them worked.

Have you tried sudo openvpn <config_file.ovpn>?

pszucs commented 5 years ago

Yes. At the end it shows the 'Initialization Sequence Completed' message, which, I guess, it means I'm connected to the server, however, I'm unable to browse the web, ping other servers, etc.

The only difference I can see between executing sudo openvpn config <config_file.ovpn> and the protonvpn-cli is that when the former one is executed, after outputting the 'Initialization Sequence Completed' message it just hangs, whereas when using protonvpn-cli there's a 'SIGTERM' after about a minute:

Sun May 19 16:22:27 2019 us=816657 event_wait : Interrupted system call (code=4)
Sun May 19 16:22:27 2019 us=816696 SIGTERM received, sending exit notification to peer

So the above two lines are printed when using protonvpn-cli and also when pressing ctrl+c if sudo openvpn ... is executed.

xilopaint commented 5 years ago

protonvpn-cli is just a wrapper for openvpn so if the latter is not working for you there's nothing we can do on the CLI side. The problem is with your setup.

pszucs commented 5 years ago

OK, thanks for taking a look.

pszucs commented 5 years ago

In case anyone is experiencing the same issue, here's what's worked for me (thanks to Bodan @ ProtonVPN):

It turned out that in my case I was connected to the ProtonVPN server, but the nameserver in the /etc/resolv.conf file was not being updated - most likely because of some permission issue. This resulted in me not being able to visit websites using their domain name (but was able to using their IP addresses), ssh, etc. also worked.

Steps to follow:

(as part of the debugging process I set the immutable flag for resolv.conf so you might not need the first one)

sudo chattr -i /etc/resolv.conf​
sudo pvpn --uninstall
sudo rm -f /etc/openvpn/update-resolv-conf*
sudo wget "https://github.com/ProtonVPN/protonvpn-cli/raw/master/protonvpn-cli.sh" -O "protonvpn-cli.sh" && sudo bash protonvpn-cli.sh --install
sudo wget "https://raw.githubusercontent.com/ProtonVPN/scripts/master/update-resolv-conf.sh" -O "/etc/openvpn/update-resolv-conf"
sudo chmod +x "/etc/openvpn/update-resolv-conf"
sudo pvpn --init
xilopaint commented 5 years ago

Do you know why your update-resolv-conf script lost the executable permission?

pszucs commented 5 years ago

I have no idea. I went through the apt upgrade history to see if there was any package/lib that might have been related to networking and found Nutty (https://github.com/babluboy/nutty) that I installed recently.

I don't remember having these connectivity issues after installing it so I'm not sure if it's to blame. Perhaps one of its dependencies? I don't know. :|