在 Debian 上,我使用以下命令连接到 vpn:
sudo openconnect --csd-wrapper=/usr/libexec/openconnect/csd-post.sh --verbose vpn.abc.com
它失败:
POST https://vpn.abc.com/
Attempting to connect to server x.x.30.23:443
Connected to x.x.30.23:443
SSL negotiation with vpn.abc.com
Connected to HTTPS on vpn.abc.com
Got HTTP response: HTTP/1.0 302 Found
Location: https://globalvpn.abc.com/vpn-mfa-ldap/
X-Frame-Options: SAMEORIGIN
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 0
HTTP body length: (0)
POST https://globalvpn.abc.com/vpn-mfa-ldap/
Attempting to connect to server x.x.30.176:443
Connected to x.x.30.176:443
SSL negotiation with globalvpn.abc.com
Connected to HTTPS on globalvpn.abc.com
Got HTTP response: HTTP/1.0 302 Temporary moved
Set-Cookie: tg=0VlBOLU1GQS1MREFQ; path=/; secure
Content-Length: 0
Cache-Control: no-cache
Pragma: no-cache
Connection: Close
Date: Tue, 15 Dec 2020 08:18:22 GMT
X-Frame-Options: SAMEORIGIN
Location: /+webvpn+/index.html
HTTP body length: (0)
GET https://vpn.abc.com/
Attempting to connect to server x.x.30.23:443
Connected to x.x.30.23:443
SSL negotiation with vpn.abc.com
Connected to HTTPS on vpn.abc.com
Got HTTP response: HTTP/1.0 302 Found
Location: https://globalvpn.abc.com/vpn-mfa-ldap/
X-Frame-Options: SAMEORIGIN
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 0
HTTP body length: (0)
GET https://globalvpn.abc.com/vpn-mfa-ldap/
Attempting to connect to server x.x.30.176:443
Connected to x.x.30.176:443
SSL negotiation with globalvpn.abc.com
Connected to HTTPS on globalvpn.abc.com
Got HTTP response: HTTP/1.0 302 Temporary moved
Set-Cookie: tg=0VlBOLU1GQS1MREFQ; path=/; secure
Content-Length: 0
Cache-Control: no-cache
Pragma: no-cache
Connection: Close
Date: Tue, 15 Dec 2020 08:18:25 GMT
X-Frame-Options: SAMEORIGIN
Location: /+webvpn+/index.html
HTTP body length: (0)
GET https://globalvpn.abc.com/+webvpn+/index.html
SSL negotiation with globalvpn.abc.com
Connected to HTTPS on globalvpn.abc.com
Got HTTP response: HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: text/xml
Cache-Control: max-age=0
Set-Cookie: webvpn=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpn_as=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpnc=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/; secure
Set-Cookie: webvpnlogin=1; secure
X-Frame-Options: SAMEORIGIN
X-Transcend-Version: 1
HTTP body chunked (-2)
GET https://globalvpn.abc.com/CACHE/sdesktop/install/binaries/sfinst
Got HTTP response: HTTP/1.1 404 Not Found
Cache-Control: no-cache
Pragma: no-cache
Connection: Close
Date: Tue, 15 Dec 2020 08:18:27 GMT
X-Frame-Options: SAMEORIGIN
HTTP body http 1.0 (-1)
SSL socket closed uncleanly
Unexpected 404 result from server
Failed to obtain WebVPN cookie
是的,该/usr/libexec/openconnect/csd-post.sh
文件存在。
但是,当我在 Archlinux 上时,相同的(几乎)命令 ( openconnect --csd-wrapper=/usr/lib/openconnect/csd-post.sh vpn.abc.com
) 可以让我连接到 vpn。以下是关联到 arch wiki。
我在这篇文章中使用了虚拟 IP 地址和 VPN 服务器名称。提前致谢。