如何在运行 14.04 的 Amazon EC2 服务器上安装 Cisco VPN 客户端

如何在运行 14.04 的 Amazon EC2 服务器上安装 Cisco VPN 客户端

我目前使用 Amazon EC2 服务器(基本免费版)运行 Ubuntu 14.04 进行工作。大多数时候我使用它进行自动网页抓取任务,目前效果非常好。但由于免费服务器限制为 30 GB,因此我需要将所有收集的数据存储在不同的位置。

我的雇主为我提供了一个非常大的 CIFS 网络共享,我打算将其永久安装在我的 EC2 上,并编写一个 cron 脚本以方便定期转储数据。为了安装共享,我需要进入我雇主的网络,因此我需要 VPN 访问权限。仅为 Linux 的“官方”思科客户端提供支持和预配置文件 (.pcf)。

我已遵循有关安装客户端的所有说明,包括运行 2 个补丁以使其与较新的内核兼容,并netdevice.h按照此帖子中的说明修改文件:https://github.com/mariuszs/CiscoVpnClient-Patches。此外,autoconfig 和 Linux 内核标头都已安装。但是,我仍然得到与第一次相同的输出,并且客户端最终安装失败:

ubuntu@ip-aaa-bb-cc-ddd:/home/user/docs/vpn/vpnclient$ ./vpn_install
Sorry, you need super user access to run this script.
ubuntu@ip-aaa-bb-cc-ddd:/home/user/docs/vpn/vpnclient$ sudo ./vpn_install
Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer
Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.

By installing this product you agree that you have read the
license.txt file (The VPN Client license) and will comply with
its terms. 


Directory where binaries will be installed [/usr/local/bin]

Automatically start the VPN service at boot time [yes]

In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.


Directory containing linux kernel source code [/lib/modules/3.13.0-74-generic/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/3.13.0-74-generic/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/3.13.0-74-generic/build" will be used to build the module.

Is the above correct [y]

Making module
linuxcniapi.c:14:28: fatal error: linux/autoconf.h: No such file or directory
 #include <linux/autoconf.h>
                            ^
compilation terminated.
interceptor.c:13:28: fatal error: linux/autoconf.h: No such file or directory
 #include <linux/autoconf.h>
                            ^
compilation terminated.
IPSecDrvOS_linux.c:16:28: fatal error: linux/autoconf.h: No such file or directory
 #include <linux/autoconf.h>
                            ^
compilation terminated.
frag.c:3:28: fatal error: linux/autoconf.h: No such file or directory
 #include <linux/autoconf.h>
                            ^
compilation terminated.
In file included from linuxkernelapi.c:1:0:
/lib/modules/3.13.0-74-generic/build/include/linux/string.h:17:24: fatal error: asm/string.h: No such file or directory
 #include <asm/string.h>
                        ^
compilation terminated.
ld: cannot find linuxkernelapi.o: No such file or directory
ld: cannot find frag.o: No such file or directory
ld: cannot find linuxcniapi.o: No such file or directory
ld: cannot find IPSecDrvOS_linux.o: No such file or directory
ld: cannot find interceptor.o: No such file or directory
Failed to make module "cisco_ipsec".

我是不是做了一件非常愚蠢的事情?忘记了一些显而易见的事情?我已经尝试解决这个问题好几天了,但这让我有点抓狂。任何帮助都将不胜感激!

提前致谢!

答案1

安装过程挂起,因为它无法在您的系统上找到 autoconf。确保所有标准存储库都已启用,然后:

sudo apt-get update
sudo apt-get install autoconf

然后重新运行安装脚本。

但请注意,VPN 软件通常违反云提供商的服务条款。在继续之前,请务必仔细阅读亚马逊的条款。

答案2

缺少的autoconf.hstring.h由内核的头文件提供,因此您应该为您的内核版本安装内核的头文件:

sudo apt-get install linux-headers-$(uname -r)

相关内容