I'm currently using an Amazon EC2 server - the basic, free version - running Ubuntu 14.04 for my work. Most of the time I use it for automated web scraping tasks and this works pretty great at the minute. As the free server is limited to 30 GB, I need to store all the collected data in a different location though.
My employer has supplied me with a very large CIFS network share, which I intend to permanently mount on my EC2, and write a cron script to facilitate regular data dumps. In order to mount the share I need to be in my employer's network, so I need VPN access on it. Support and pre-config files (.pcf) are only provided for the "official" cisco client for Linux.
I have followed all the instructions on installing the client, including running the 2 patches for it to be compatible with newer kernels, and modifying the netdevice.h file as described in this post: https://github.com/mariuszs/CiscoVpnClient-Patches.
Also, both autoconfig and the Linux Kernel headers are already installed. However, I still get the same output I got the first time, and the client ultimately fails to install:
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".
Am I doing something really stupid; forgetting something completely obvious? I've been trying to work this out for several days now and it's starting to drive me kind of crazy. Any help would be greatly appreciated!
Thanks in advance!