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

[BUG] Many UDP free servers no longer connecting #356

Open autogris opened 1 year ago

autogris commented 1 year ago

Currently many of the UDP free servers in Netherlands gives authentication error, forcing the user to try several times until finding a server that works. Maybe the server list must be updated?

To Reproduce Steps to reproduce the behavior:

  1. Run at the terminal "protonvpn c --cc nl -p udp"
  2. Connection authentication fails at several servers like NL-FREE#157 for instance
  3. Repeating the command eventually finds a working server

Expected behavior The application should only try to connect to working server.

Log Messages (~/.pvpn-cli/pvpn-cli.log)

protonvpn-cli — DEBUG — cli:89 — ###########################
protonvpn-cli — DEBUG — cli:90 — ### NEW PROCESS STARTED ###
protonvpn-cli — DEBUG — cli:91 — ###########################
protonvpn-cli — DEBUG — cli:92 — ['/usr/bin/protonvpn', 'c', '--cc', 'nl', '-p', 'udp']
protonvpn-cli — DEBUG — cli:93 — USER: [redacted]
protonvpn-cli — DEBUG — cli:94 — CONFIG_DIR: /home/[redacted]/.pvpn-cli
protonvpn-cli — DEBUG — cli:97 — Arguments
: False, '--help': False, '--p2p': False, '--random': False, '--sc': False, '--tor': False, '--version': False, '-p': 'udp', '<servername>': None, 'c': True, 'configure': False, 'connect': False, 'd': False, 'disconnect': False, 'examples': False, 'init': False, 'r': False, 'reconnect': False, 'refresh': False, 's': False, 'status': False}
protonvpn-cli — DEBUG — country_f:170 — Starting fastest country connect
protonvpn-cli — DEBUG — disconnect:307 — Initiating disconnect
protonvpn-cli — DEBUG — is_connected:197 — Checking connection Status. OpenVPN processes: 0
protonvpn-cli — DEBUG — manage_dns:608 — Restoring DNS
protonvpn-cli — DEBUG — manage_dns:625 — No Backupfile found
protonvpn-cli — DEBUG — manage_ipv6:688 — Restoring ip6tables
protonvpn-cli — DEBUG — manage_ipv6:703 — No Backupfile found
protonvpn-cli — DEBUG — manage_killswitch:778 — Restoring iptables
protonvpn-cli — DEBUG — manage_killswitch:787 — No Backupfile found
protonvpn-cli — DEBUG — disconnect:347 — No connection found
protonvpn-cli — DEBUG — call_api:38 — Initiating API Call: https://api.protonvpn.ch/vpn/logicals
protonvpn-cli — DEBUG — call_api:67 — Successful json response
protonvpn-cli — DEBUG — pull_server_data:89 — SERVER_INFO_FILE written
protonvpn-cli — DEBUG — pull_server_data:96 — last_api_call updated
protonvpn-cli — DEBUG — get_servers:103 — Reading servers from file
protonvpn-cli — DEBUG — get_fastest_server:172 — Returning fastest server with pool size 4
protonvpn-cli — DEBUG — openvpn_connect:442 — Initiating OpenVPN connection
protonvpn-cli — DEBUG — openvpn_connect:443 — Connecting to NL-FREE#157 via UDP
protonvpn-cli — DEBUG — get_servers:103 — Reading servers from file
protonvpn-cli — DEBUG — render_j2_template:257 — Rendered /home/[redacted]/.pvpn-cli/connect.ovpn from openvpn_template.j2
protonvpn-cli — DEBUG — disconnect:307 — Initiating disconnect
protonvpn-cli — DEBUG — is_connected:197 — Checking connection Status. OpenVPN processes: 0
protonvpn-cli — DEBUG — manage_dns:608 — Restoring DNS
protonvpn-cli — DEBUG — manage_dns:625 — No Backupfile found
protonvpn-cli — DEBUG — manage_ipv6:688 — Restoring ip6tables
protonvpn-cli — DEBUG — manage_ipv6:703 — No Backupfile found
protonvpn-cli — DEBUG — manage_killswitch:778 — Restoring iptables
protonvpn-cli — DEBUG — manage_killswitch:787 — No Backupfile found
protonvpn-cli — DEBUG — disconnect:347 — No connection found
protonvpn-cli — DEBUG — get_ip_info:145 — Getting IP Information
protonvpn-cli — DEBUG — call_api:38 — Initiating API Call: https://api.protonvpn.ch/vpn/location
protonvpn-cli — DEBUG — call_api:67 — Successful json response
protonvpn-cli — DEBUG — openvpn_connect:476 — OpenVPN process started
protonvpn-cli — DEBUG — openvpn_connect:519 — Authentication failure

Desktop: