Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Reconnect fails due to missing re-authentication #265

Description

@rawIce

Describe the bug
When an established VPN connection gets interrupted, OpenConnect tries to reconnect to the previous connection.

Once the remote host becomes available again, the re-connection attempt is unsuccessful with an HTTP/1.1 404 Unauthorized response from the remote server, because the client does not seem to properly authenticate itself.

If I manually click the "connect" button afterwards, the VPN connection is established successfully again without the need of entering credentials manually.

2019-03-06 15:32:39 | 1078 | Connected to some.host.de
2019-03-06 15:23:11 | 11cc | Failed to reconnect to host some.host.de: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2019-03-06 15:23:11 | 11cc | sleep 60s, remaining timeout 750s
2019-03-06 15:24:32 | 11cc | Failed to reconnect to host some.host.de: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2019-03-06 15:24:32 | 11cc | sleep 70s, remaining timeout 690s
2019-03-06 15:25:42 | 11cc | SSL negotiation with some.host.de
2019-03-06 15:25:42 | 11cc | Connected to HTTPS on some.host.de
2019-03-06 15:25:42 | 11cc | Got inappropriate HTTP CONNECT response: HTTP/1.1 401 Unauthorized
2019-03-06 15:25:42 | 11cc | Cookie is no longer valid, ending session
2019-03-06 15:25:42 | 11cc | Reconnect failed
2019-03-06 15:25:42 | 11cc | <<-- [EXEC] route print
...
2019-03-06 15:25:42 | 2058 | Disconnected

To Reproduce
Steps to reproduce the behavior:

  1. Connect to a user and password protected VPN server
  2. Interrupt the connection to the remote host or shut it down
  3. OpenConnect tries to reconnect
  4. Connection attempt is not successful and OpenConnect immediately fully disconnects
  5. Manually to push the connect button to reconnect to the server successfully

Expected behavior
OpenConnect is supposed to reauthenticate with user and password the way it does if I manually click on connect

Desktop (please complete the following information):

  • OS: Windows Server 2012 R2
  • Version: 1.5.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions