Openconnect无法连接到网关

问题描述 投票:2回答:2

我无法通过我的ubuntu 14.04系统的openconnect VPN客户端连接。我曾经在1个月前连接到这个VPN,从那以后我没有对VPN客户端设置进行任何更改。

这是我在日志中收到的错误。

POST https://69.195.x.x/
Attempting to connect to server 69.195.x.x:443
SSL negotiation with 69.195.x.x
SSL connection failure: A TLS packet with unexpected length was received.
Failed to open HTTPS connection to 69.195.x.x
GET https://69.195.x.x/
Attempting to connect to server 69.195.244.x:x
SSL negotiation with 69.195.x.x
SSL connection failure: A TLS packet with unexpected length was received.
Failed to open HTTPS connection to 69.195.x.x

我有一些使用Windows AnyConnect客户端的队友,我可以通过Windows机器连接到VPN。

任何帮助都会非常值得赞赏。

openssl ubuntu-14.04 openconnect
2个回答
4
投票

问题出在Ubuntu 14.04中最后一个支持的openconnect版本,即openconnect 5.02。

当您尝试连接到任何连接服务器的较新版本时出现问题,因此,有一个解决方法可以解决它,它是在Ubuntu 14.04中安装不支持的openconnect 7版本

您需要按照以下步骤安装openconnect 7:

预检

sudo apt-get install curl vpnc-scripts build-essential libssl-dev libxml2-dev liblz4-dev
curl -O ftp://ftp.infradead.org/pub/openconnect/openconnect-7.08.tar.gz
curl -O ftp://ftp.infradead.org/pub/openconnect/openconnect-7.08.tar.gz.asc
gpg --keyserver pgp.mit.edu --recv-key 67e2f359

校验

gpg --verify openconnect-7.08.tar.gz.asc

建立

tar xzf openconnect-7.08.tar.gz
cd openconnect-7.08
./configure --without-gnutls --with-vpnc-script=/usr/share/vpnc-scripts/vpnc-script
make
sudo make install
sudo ldconfig /usr/local/lib

在这个guide你有所有的细节。


-1
投票

您可以尝试使用以下命令

sudo openconnect --user=%YOUR-USER% --no-xmlpost --interface=sslvpn --no-dtls %hostname%/%vpn_group_name%
© www.soinside.com 2019 - 2024. All rights reserved.