在Ubuntu/Debian/Fedora上安装Cisco AnyConnect
本文介绍如何在Ubuntu/Debian/Fedora/CentOS/RHEL系统上安装Cisco AnyConnect的方法。Cisco AnyConnect客户端是一种SSL VPN客户端,它提供VPN功能和其他功能,使企业能够保护其端点。
安装方法
1、下载AnyConnect客户端
下载页面上提供了适用于Linux、Windows和macOS的AnyConnect客户端,地址在https://software.cisco.com/download/home。使用您的Cisco帐户凭据登录并下载最新的anyconnect-linux64*软件包。
下载存档文件后,继续解压缩,如以下文件名:
tar xvf anyconnect-linux64-4.10.00093-predeploy-k9.tar.gz
2、在Ubuntu/Debian/Fedora上安装Cisco AnyConnect
现在该文件已经下载并提取,cd到创建的文件夹中:
cd anyconnect-linux64-*/
您应该看到以下文件夹:
$ ls
dart iseposture nvm posture vpn
导航到vpn目录并使用sudo执行vpn_install.sh脚本:
cd vpn
sudo ./vpn_install.sh
提示时接受许可证:
Description of Other Rights and Obligations
Please refer to the Cisco Systems, Inc. End User License Agreement.
http://www.cisco.com/en/US/docs/general/warranty/English/EU1KEN_.html
Do you accept the terms in the license agreement? [y/n] y
安装程序脚本将创建一个systemd服务单元文件,并使其能够在启动时启动:
You have accepted the license agreement.
Please wait while Cisco AnyConnect Secure Mobility Client is being installed...
install systemd
Installing ./vpnagentd.service
Created symlink /etc/systemd/system/multi-user.target.wants/vpnagentd.service → /usr/lib/systemd/system/vpnagentd.service.
Starting Cisco AnyConnect Secure Mobility Client Agent...
Done!
3、在Linux上启动Cisco AnyConnect
从桌面启动Cisco AnyConnect Secure Mobility Client:
输入VPN服务器IP地址并点击连接键。然后单击更改设置以信任服务器:
取消选中“阻止连接到不受信任的服务器(Block Connections to untrusted servers)”:
更改后,您的设置应与以下内容类似:
然后单击“无论如何连接(Connect Anyway)”接受不受信任的证书警告:
当提示输入登录凭据时,请输入要连接的用户名和密码:
您的VPN连接应处于活动状态。通过检查IP地址详细信息和路由来确认连接:
$ ip addr
$ ip route
至此,在Ubuntu/Debian/Fedora系统上成功安装并使用Cisco AnyConnect了。