OpenVPN / openvpn3-linux

OpenVPN 3 Linux client
GNU Affero General Public License v3.0
554 stars 148 forks source link

v15_beta - session-start fails to connect #61

Closed HerissonMan-TMP closed 2 years ago

HerissonMan-TMP commented 3 years ago

Hello,

I installed OpenVPN Access Server on a Azure Virtual Machine, and when I attempt to run the command "openvpn3 session-start --config /home/kali/Downloads/client.ovpn", I have to enter the username and password. Few seconds after entering the password and pressing Enter, I get the following error:

session-start: ERROR Failed to connect: Connection, Client reconnect

Here are the logs

Waiting for session to start ... Done
Attaching to session /net/openvpn/v3/sessions/11d23fd2sbe03s4ades864bsbb1ca190ab97
2021-07-20 14:57:15 >> Connection, Configuration OK: config_path=/net/openvpn/v3/configuration/a4a747a6x6fd0x4b12xa508x65bcb64bb7f6
2021-07-20 14:57:15 Client INFO: Starting connection
2021-07-20 14:57:15 Client VERB1: Username/password provided successfully for 'openvpn'
2021-07-20 14:57:15 Client DEBUG: Using DNS resolver scope: global
2021-07-20 14:57:15 Client DEBUG: [Connect] DCO flag: disabled
2021-07-20 14:57:15 >> Connection, Client connecting
2021-07-20 14:57:15 Client DEBUG: OpenVPN core 3.git:HEAD:fce979ec linux x86_64 64-bit
2021-07-20 14:57:15 Client DEBUG: Frame=512/2048/512 mssfix-ctrl=1250
2021-07-20 14:57:15 Client DEBUG: UNUSED OPTIONS
     4 [nobind]
     18 [sndbuf] [0]
     19 [rcvbuf] [0]
     22 [verb] [3]
2021-07-20 14:57:15 Client VERB2: Resolving
2021-07-20 14:57:15 Client DEBUG: Contacting 40.69.74.102:1194 via UDP
2021-07-20 14:57:15 Client VERB1: Waiting for server response
2021-07-20 14:57:15 Client DEBUG: Connecting to [40.69.74.102]:1194 (40.69.74.102) via UDPv4
2021-07-20 14:57:19 Client DEBUG: Server poll timeout, trying next remote entry...
2021-07-20 14:57:19 Client INFO: Reconnecting
2021-07-20 14:57:19 >> Connection, Client reconnect
2021-07-20 14:57:19 Client VERB2: Resolving
2021-07-20 14:57:19 Client DEBUG: Contacting 40.69.74.102:1194 via UDP
2021-07-20 14:57:19 Client VERB1: Waiting for server response
2021-07-20 14:57:19 Client DEBUG: Connecting to [40.69.74.102]:1194 (40.69.74.102) via UDPv4
2021-07-20 14:57:23 Client DEBUG: Server poll timeout, trying next remote entry...
2021-07-20 14:57:23 Client INFO: Reconnecting
2021-07-20 14:57:23 >> Connection, Client reconnect
2021-07-20 14:57:23 Client VERB2: Resolving
2021-07-20 14:57:23 Client DEBUG: Contacting 40.69.74.102:443 via TCP
2021-07-20 14:57:23 Client VERB1: Waiting for server response
2021-07-20 14:57:27 Client DEBUG: Server poll timeout, trying next remote entry...
2021-07-20 14:57:27 Client INFO: Reconnecting
2021-07-20 14:57:27 >> Connection, Client reconnect
2021-07-20 14:57:27 Client VERB2: Resolving
2021-07-20 14:57:27 Client DEBUG: Contacting 40.69.74.102:1194 via UDP
2021-07-20 14:57:27 Client VERB1: Waiting for server response
2021-07-20 14:57:27 Client DEBUG: Connecting to [40.69.74.102]:1194 (40.69.74.102) via UDPv4
2021-07-20 14:57:31 Client DEBUG: Server poll timeout, trying next remote entry...
2021-07-20 14:57:31 Client INFO: Reconnecting
2021-07-20 14:57:31 >> Connection, Client reconnect
2021-07-20 14:57:31 Client VERB2: Resolving
2021-07-20 14:57:31 Client DEBUG: Contacting 40.69.74.102:1194 via UDP
2021-07-20 14:57:31 Client VERB1: Waiting for server response
2021-07-20 14:57:31 Client DEBUG: Connecting to [40.69.74.102]:1194 (40.69.74.102) via UDPv4
2021-07-20 14:57:35 Client DEBUG: Server poll timeout, trying next remote entry...
2021-07-20 14:57:35 Client INFO: Reconnecting
2021-07-20 14:57:35 >> Connection, Client reconnect
2021-07-20 14:57:35 Client VERB2: Resolving
2021-07-20 14:57:35 Client DEBUG: Contacting 40.69.74.102:1194 via UDP
2021-07-20 14:57:35 Client VERB1: Waiting for server response
2021-07-20 14:57:35 Client DEBUG: Connecting to [40.69.74.102]:1194 (40.69.74.102) via UDPv4
2021-07-20 14:57:39 Client DEBUG: Server poll timeout, trying next remote entry...
2021-07-20 14:57:39 Client INFO: Reconnecting

I search a lot of hours on the internet how to resolve that problem, but I found nothing, so this message is like my last hope :(

Could someone please tell how can this problem be fixed?

Thanks in advance

dsommers commented 3 years ago

You are going into a connection-retry loop for a bit, as it cannot access the VPN server.

2021-07-20 14:57:15 Client DEBUG: Contacting 40.69.74.102:1194 via UDP
2021-07-20 14:57:15 Client VERB1: Waiting for server response
2021-07-20 14:57:15 Client DEBUG: Connecting to [40.69.74.102]:1194 (40.69.74.102) via UDPv4
2021-07-20 14:57:19 Client DEBUG: Server poll timeout, trying next remote entry...
2021-07-20 14:57:19 Client INFO: Reconnecting

Could it be a firewall issue on your AS server or hosting facilities?

dsommers commented 2 years ago

Closing as no further feedback has been provided. Most likely the client could not access the server, hence it goes into a connection retry loop.