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:
- Connect to a user and password protected VPN server
- Interrupt the connection to the remote host or shut it down
- OpenConnect tries to reconnect
- Connection attempt is not successful and OpenConnect immediately fully disconnects
- 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
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.
To Reproduce
Steps to reproduce the behavior:
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):