openconnect 无法使用 -g 连接到 Anyconnect VPN 组

Ana*_*ory 22 vpn openconnect

我正在使用openconnect连接到 VPN。当以 启动客户端时sudo openconnect -v -u anaphory vpn-gw1.somewhere.net,我可以在输入 GROUP 和密码后连接。

# openconnect -v -u anaphory vpn-gw1.somewhere.net
[…]
XML POST enabled
Please enter your username and password.
GROUP: [Anyconnect-VPN|CLUSTER-DLCE|Clientless]:CLUSTER-DLCE
POST https://vpn-gw1.somewhere.net
Got HTTP response: HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
[…]
Run Code Online (Sandbox Code Playgroud)

但是,当我在命令行上指定相同的组名时,连接失败并显示“无效主机条目”消息。

# openconnect -v -g CLUSTER-DLCE -u anaphory vpn-gw1.somewhere.net
[…]
XML POST enabled
Please enter your username and password.
Password:XML POST enabled
Invalid host entry. Please re-enter.
Failed to obtain WebVPN cookie
Run Code Online (Sandbox Code Playgroud)

我是否需要对组名做任何魔术,或者我如何找出如何使其工作?

小智 28

尝试--authgroup代替-g

openconnect -v --authgroup CLUSTER-DLCE -u anaphory vpn-gw1.somewhere.net
Run Code Online (Sandbox Code Playgroud)

问候