VPNCLIENT 4.8.02 on Fedora 15 2.6.38

Installation, configuration and troubleshooting of the Cisco VPN Client on Linux systems

VPNCLIENT 4.8.02 on Fedora 15 2.6.38

Postby Oriol » Tue Jun 07, 2011 5:57 pm

Hello all,

I've been looking around for some days but I'm not able to install and get it working. I've successfully installed it on a Debian Squeeze but I'm having troubles installing it in my Fedora 15 released a few days ago.

I'm using the following:

Kernel: 2.6.38.6-27.fc15.i686.PAE
CPU: Intel x86
Tarball source: vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
Patch 1: fixes.patch
Patch 2: override-local-lan-access.diff

Here is the output when it compiles with the applied patches:

Code: Select all
[root@playground vpnclient]# make
make -C /lib/modules/2.6.38.6-27.fc15.i686.PAE/build SUBDIRS=/home/oriol/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/kernels/2.6.38.6-27.fc15.i686'
  CC [M]  /home/oriol/Downloads/vpnclient/linuxcniapi.o
/home/oriol/Downloads/vpnclient/linuxcniapi.c: In function ‘CniInjectSend’:
/home/oriol/Downloads/vpnclient/linuxcniapi.c:424:11: warning: variable ‘tmp_InjectSend’ set but not used [-Wunused-but-set-variable]
  CC [M]  /home/oriol/Downloads/vpnclient/frag.o
/home/oriol/Downloads/vpnclient/frag.c: In function ‘have_all_fragments’:
/home/oriol/Downloads/vpnclient/frag.c:118:40: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]
  CC [M]  /home/oriol/Downloads/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /home/oriol/Downloads/vpnclient/interceptor.o
/home/oriol/Downloads/vpnclient/interceptor.c: In function ‘recv_ip_packet_handler’:
/home/oriol/Downloads/vpnclient/interceptor.c:575:9: warning: variable ‘tmp_rc’ set but not used [-Wunused-but-set-variable]
/home/oriol/Downloads/vpnclient/interceptor.c: In function ‘do_cni_send’:
/home/oriol/Downloads/vpnclient/interceptor.c:808:11: warning: variable ‘tmp_InjectSend’ set but not used [-Wunused-but-set-variable]
  CC [M]  /home/oriol/Downloads/vpnclient/linuxkernelapi.o
  LD [M]  /home/oriol/Downloads/vpnclient/cisco_ipsec.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /home/oriol/Downloads/vpnclient/.libdriver.so.cmd for /home/oriol/Downloads/vpnclient/libdriver.so
  CC      /home/oriol/Downloads/vpnclient/cisco_ipsec.mod.o
  LD [M]  /home/oriol/Downloads/vpnclient/cisco_ipsec.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.38.6-27.fc15.i686'
[root@playground vpnclient]#



My certificate is installed correctly and also de PCF file. The following output occurs when I'm going to start the service:

Code: Select all
Starting /opt/cisco-vpnclient/bin/vpnclient: insmod: error inserting '/lib/modules/2.6.38.6-27.fc15.i686.PAE/CiscoVPN/cisco_ipsec.ko': -1 Invalid module format
Failed (insmod)



Any ideas? Thank you very much. I appreciate your help/support
Oriol
Private
Private
 
Posts: 3
Joined: Tue Jun 07, 2011 5:48 pm

Re: VPNCLIENT 4.8.02 on Fedora 15 2.6.38

Postby Oriol » Thu Jun 09, 2011 2:58 pm

Hi all,

I've found out that something is wrong with my "PAE" kernel.

I've successfully updated the kernel to 2.6.38.7-30.fc15.i686.PAE and when I'm compiling it again there's the same output as above.

BUT! I also found out that the problem is just the PAE extension because:

Code: Select all
# dmesg
[ 4886.788159] cisco_ipsec: version magic '2.6.38.7-30.fc15.i686 SMP mod_unload 686 ' should be '2.6.38.7-30.fc15.i686.PAE SMP mod_unload 686 '


So it has compiled the module cisco_ipsec without PAE extension. If I change the version magic into de module .ko it fails anyway and I'm unable to load it. I guess the binary headers mismatch with the original compiled file.

So I'm checking the installation scripts and so gets the "uname -r". And that's perfect because:

Code: Select all
[oriol@playground vpnclient]$ uname -r
2.6.38.7-30.fc15.i686.PAE
[oriol@playground vpnclient]$


But it fails anyway. I'm running out of options....
Oriol
Private
Private
 
Posts: 3
Joined: Tue Jun 07, 2011 5:48 pm

Re: VPNCLIENT 4.8.02 on Fedora 15 2.6.38

Postby arunkai » Fri Jun 10, 2011 8:49 pm

you could figure out how VERMAGIC_STRING is defined in the 2.6.38 kernel headers you have installed. most likely u need to change <headre's root dir>/include/generated/utsrelease.h to fix the release name.
arunkai
Private
Private
 
Posts: 4
Joined: Sat Apr 02, 2011 8:53 pm

Re: VPNCLIENT 4.8.02 on Fedora 15 2.6.38

Postby Oriol » Fri Jun 17, 2011 9:36 am

Hi all,

after some days trying to fix this issue, I've installed Fedora 15 x64 and now compiles with no problem with 64 bits version. Now I have another problem.... I'm really screwed because it's working fine in a Debian Squeeze

Code: Select all
[root@playground oriol]# ./connect.sh
Shutting down /opt/cisco-vpnclient/bin/vpnclient: Done
Starting /opt/cisco-vpnclient/bin/vpnclient: Done
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.38.8-32.fc15.x86_64 #1 SMP Mon Jun 13 19:49:05 UTC 2011 x86_64
Config file directory: /etc/opt/cisco-vpnclient

Enter Certificate password:
Initializing the VPN connection.
Secure VPN Connection terminated locally by the Client
Reason: Failed to establish a VPN connection.
There are no new notification messages at this time.
[root@playground oriol]#


And my messages log says...

Code: Select all
Jun 17 09:36:37 playground avahi-daemon[898]: Withdrawing workstation service for cipsec0.
Jun 17 09:36:37 playground kernel: [ 4306.665475] Cisco Systems VPN Client Version 4.8.02 (0030) kernel module loaded
Jun 17 09:36:37 playground NetworkManager[901]: <warn> /sys/devices/virtual/net/cipsec0: couldn't determine device driver; ignoring...
[root@playground oriol]#


I've installed NetworkManager-vpnc also
Oriol
Private
Private
 
Posts: 3
Joined: Tue Jun 07, 2011 5:48 pm


Return to Cisco VPN Client on Linux systems

Who is online

Users browsing this forum: No registered users and 1 guest

cron