当前位置: 首页>>技术教程>>正文


在Ubuntu 16.04中不再有与AnyConnect兼容的VPN传输了吗?

, , , ,

问题描述

遵循我以前在Ubuntu 14.04上设置Cisco AnyConnect VPN连接的经验,我在这里通过安装软件包尝试了相同的方法:

sudo apt-get install -y network-manager-openconnect-gnome network-manager-openconnect network-manager-vpnc network-manager-vpnc-gnome vpnc vpnc-scripts

即使在此之后,也不会出现用于创建与Anyconnect兼容的VPN连接的选项。

Ubuntu 16.04 64位,现货。

最佳方法

我有同样的问题。使用此页面中的软件包(如果您不信任,则构建它)http://tomtomtom.org/networkmanager-openconnect/

这个对我有用

On Ubuntu 16.04 the network-manager-openconnect and network-manager-openconnect-gnome plugins are not usable because they are to old to use with the current version of network-manager.

This is the english version of this guide from a german ubuntu support forum.

Unofficial built packages are available here:

http://tomtomtom.org/networkmanager-openconnect_1.1.93-1_i386.deb

http://tomtomtom.org/networkmanager-openconnect_1.1.93-1_amd64.deb

NOTE: You won´t get any security updates for this! It is just a workaround until the packages will have been fixed in the official repository!

Using VPN is a security feature – so it is better to build the package manually from source because you don´t know what I put into the packages. 😛

At first remove the unusable packages

sudo apt-get purge network-manager-openconnect network-manager-openconnect-gnome 

You will need the build-dependencies.

sudo apt-get build-dep network-manager-openconnect 

(NOTE: For this the ‘deb-src’-Sources in /etc/apt/sources.list must be active.)

You can do this with sed e.g.

sudo sed -i s/#deb-src/deb-src/g /etc/apt/sources.list 

the new dependency for the new version.

sudo apt-get install libnm-dev 

and the sourcecode from GNOME project.

wget http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-openconnect/1.1/NetworkManager-openconnect-1.1.93.tar.xz 

Unpack the tarball

tar -xf NetworkManager-openconnect-1.1.93.tar.xz 

change to the unpacked directory

cd NetworkManager-openconnect-1.1.93 

and run the configure script.

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var             --libexecdir=/usr/lib/NetworkManager/              --enable-more-warnings=yes --disable-static 

start compiling .

make 

and install manually

sudo make install 

install the dependency for use the software

sudo apt-get install openconnect 

or build a package with checkinstall

sudo checkinstall 

If you do so enter this:

networkmanager-openconnect as package name

adduser, libc6, libdbus-glib-1-2, libglib2.0-0, libnm-glib-vpn1, libnm-util2, network-manager, openconnect as requirements

and

network-manager-openconnect, network-manager-openconnect-gnome

as conflicts.

If you get errormessages by installing the package try

sudo apt-get -f install 

to resolve unmet dependencies.

To use the software it is necessary to add a systemuser for this

sudo adduser --system --quiet --home /var/lib/NetworkManager              --no-create-home               --gecos "NetworkManager OpenConnect plugin"               --group nm-openconnect} 

At last restart the system.

次佳方法

我在重新安装Ubuntu 16.04时遇到相同的问题。但是,您可以通过终端连接:

sudo openconnect https://<remote.host.here> 

之后,系统将提示您输入用户名和密码。

第三种方法

xenial-proposed中似乎有一个官方修复程序。如果您enable pre-release updates然后执行:

sudo apt install network-manager-openconnect network-manager-openconnect-gnome

它将开始工作。好吧,至少对我有用:)

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/10960.html,未经允许,请勿转载。