]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Protocols should try explicitly request the same IP addresses on reconnect, since...
authorDaniel Lenski <dlenski@gmail.com>
Thu, 21 Dec 2017 06:56:58 +0000 (22:56 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Wed, 20 May 2020 01:31:31 +0000 (18:31 -0700)
commit0d3846ac41df2653a43625b5f38baefd7869fb99
tree017ae936e04b6db5505fb3f1d4b7c827c6ecb607
parent5867033002985c4c3012d5dc135d213f54801e11
Protocols should try explicitly request the same IP addresses on reconnect, since they will abort if new addresses are sent by the server.

* GlobalProtect:
  - Supported and used by official clients (POST /ssl-vpn/getconfig.esp with preferred-ip form field).
  - GlobalProtect servers often give different IP addresses on reconnect if this mechanism is *not* used,
    so this mechanism is necessary.
  - Same mechanism appears to exist for IPv6 (preferred-ipv6) and was added to OpenConnect in
    d6db0ec03394234d41fbec7ffc794ceeb486a8f0, even though IPv6 support is not yet complete.
* AnyConnect:
  - Not (yet) supported by ocserv
  - It appears that *some* AnyConnect server will try to provide the IP address provided in the X-CSTP-Address
    *request* header along with the CONNECT request, but other servers appear not to
  - This patch reproduces the behavior of GPST: attempt to request same IPv4 and IPv6 addresses on reconnect,
    via CONNECT headers.
* Juniper:
  - There does not appear to be any way to provide this using the Juniper NC protocol.
  - No known reports of Juniper servers giving out different IP address on reconnect.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
cstp.c