LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2010, 04:05 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
VPNClient Error?


i m trying to setup vpnclient software on rhel 5.1.
Code:
[admin@shadow vpnclient]$ sudo ./vpn_install
Password:
Cisco Systems VPN Client Version 4.8.00 (0490) Linux Installer
Copyright (C) 1998-2005 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/2.6.18-53.el5/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.18-53.el5/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.18-53.el5/build" will be used 

to build the module.

Is the above correct [y]y

Making module
make -C /lib/modules/2.6.18-53.el5/build 

SUBDIRS=/home/imadmin/VPN/vpnclient modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-53.el5-x86_64'
  CC [M]  /home/imadmin/VPN/vpnclient/linuxcniapi.o
In file included from /home/imadmin/VPN/vpnclient/linuxcniapi.c:12:
include/linux/config.h:6:2: warning: #warning Including config.h is 

deprecated.
In file included from /home/imadmin/VPN/vpnclient/Cniapi.h:15,
                 from /home/imadmin/VPN/vpnclient/linuxcniapi.c:27:
/home/imadmin/VPN/vpnclient/GenDefs.h:110:2: warning: #warning 64 

bit
  CC [M]  /home/imadmin/VPN/vpnclient/frag.o
In file included from /home/imadmin/VPN/vpnclient/frag.c:1:
include/linux/config.h:6:2: warning: #warning Including config.h is 

deprecated.
In file included from /home/imadmin/VPN/vpnclient/Cniapi.h:15,
                 from /home/imadmin/VPN/vpnclient/frag.c:16:
/home/imadmin/VPN/vpnclient/GenDefs.h:110:2: warning: #warning 64 

bit
  CC [M]  /home/admin/VPN/vpnclient/IPSecDrvOS_linux.o
In file included from 

/home/admin/VPN/vpnclient/IPSecDrvOS_linux.c:14:
include/linux/config.h:6:2: warning: #warning Including config.h is 

deprecated.
In file included from 

/home/imadmin/VPN/vpnclient/IPSecDrvOS_linux.c:20:
/home/imadmin/VPN/vpnclient/GenDefs.h:110:2: warning: #warning 64 

bit
  CC [M]  /home/imadmin/VPN/vpnclient/interceptor.o
In file included from /home/imadmin/VPN/vpnclient/interceptor.c:11:
include/linux/config.h:6:2: warning: #warning Including config.h is 

deprecated.
In file included from /home/imadmin/VPN/vpnclient/Cniapi.h:15,
                 from /home/imadmin/VPN/vpnclient/interceptor.c:30:
/home/imadmin/VPN/vpnclient/GenDefs.h:110:2: warning: #warning 64 

bit
/home/imadmin/VPN/vpnclient/interceptor.c: In function 

‚handle_vpnup‚:
/home/imadmin/VPN/vpnclient/interceptor.c:310: warning: assignment 

from incompatible pointer type
/home/imadmin/VPN/vpnclient/interceptor.c:334: warning: assignment 

from incompatible pointer type
/home/imadmin/VPN/vpnclient/interceptor.c:335: warning: assignment 

from incompatible pointer type
/home/imadmin/VPN/vpnclient/interceptor.c: In function ‚do_cleanup‚:
/home/imadmin/VPN/vpnclient/interceptor.c:378: warning: assignment 

from incompatible pointer type
  CC [M]  /home/imadmin/VPN/vpnclient/linuxkernelapi.o
/home/imadmin/VPN/vpnclient/linuxkernelapi.c: In function 

‚kernel_alloc‚:
/home/imadmin/VPN/vpnclient/linuxkernelapi.c:12: warning: format 

‚%d‚ expects type ‚int‚, but argument 2 has type ‚size_t‚
  LD [M]  /home/imadmin/VPN/vpnclient/cisco_ipsec.o
  Building modules, stage 2.
  MODPOST
WARNING: /home/imadmin/VPN/vpnclient/cisco_ipsec.o - Section 

mismatch: reference to .init.text: from .data between 

'interceptor_dev' (at offset 0xd0) and 'interceptor_notifier'
WARNING: could not find 

/home/imadmin/VPN/vpnclient/.libdriver64.so.cmd for 

/home/imadmin/VPN/vpnclient/libdriver64.so
  CC      /home/imadmin/VPN/vpnclient/cisco_ipsec.mod.o
  LD [M]  /home/imadmin/VPN/vpnclient/cisco_ipsec.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.el5-x86_64'
Create module directory "/lib/modules/2.6.18-53.el5/CiscoVPN".
Copying module to directory "/lib/modules/2.6.18-53.el5/CiscoVPN".
Already have group 'bin'

Creating start/stop script "/etc/init.d/vpnclient_init".
    /etc/init.d/vpnclient_init
Enabling start/stop script for run level 3,4 and 5.
Creating global config /etc/opt/cisco-vpnclient

Installing license.txt (VPN Client license) in 

"/opt/cisco-vpnclient/":

Installing bundled user profiles in 

"/etc/opt/cisco-vpnclient/Profiles/":
* New Profiles     : Rickspace sample

Copying binaries to directory "/opt/cisco-vpnclient/bin".
Adding symlinks to "/usr/local/bin".
    /opt/cisco-vpnclient/bin/vpnclient
    /opt/cisco-vpnclient/bin/cisco_cert_mgr
    /opt/cisco-vpnclient/bin/ipseclog
Copying setuid binaries to directory "/opt/cisco-vpnclient/bin".
    /opt/cisco-vpnclient/bin/cvpnd
Copying libraries to directory "/opt/cisco-vpnclient/lib".
    /opt/cisco-vpnclient/lib/libvpnapi.so
Copying header files to directory "/opt/cisco-vpnclient/include".
    /opt/cisco-vpnclient/include/vpnapi.h

Setting permissions.
    /opt/cisco-vpnclient/bin/cvpnd (setuid root)
    /opt/cisco-vpnclient (group bin readable)
    /etc/opt/cisco-vpnclient (group bin readable)
    /etc/opt/cisco-vpnclient/Profiles (group bin readable)
    /etc/opt/cisco-vpnclient/Certificates (group bin readable)
* You may wish to change these permissions to restrict access to root.
* You must run "/etc/init.d/vpnclient_init start" before using the 

client.
* This script will be run AUTOMATICALLY every time you reboot your 

computer.
[imadmin@shadow vpnclient]$
[/code]

but when i try with:

vpnclient connect <profilename> user <user> pw <passwd>
it says:

bash: /usr/local/bin/vpnclient: Accessing a corrupted shared library
 
Old 02-04-2010, 10:42 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi your_shadow03, Welcome to LQ. Had a quick look at the errors, is this a 32 or 64 bit system? Is the vpnclient software 32 or 64 bit?
Good luck. ;-)
 
Old 02-05-2010, 02:54 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
# uname -arn
Linux app.sap.com 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

And the Package name is :vpnclient-linux-x86_64-4.8.00.0490-k9.tar

I think architecture shouldnt be the issue.

Alteratively I gave try to vpnc
and it did worked fine!!!

BUT

VPN connectivity is frequently disconnectivity after every while.
Where can I check the logs?

Last edited by your_shadow03; 02-05-2010 at 03:02 AM.
 
Old 02-05-2010, 11:52 AM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I believe this will get you a view of the log, if you've enabled it.

Code:
/usr/local/bin/ipseclog /directory/clientlog.txt
Good luck. ;-)
 
Old 02-05-2010, 10:34 PM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Anyone ever tried running vpnclient on RHEL 5.1 tikanga
 
Old 02-05-2010, 10:52 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Maybe you can find what you're looking for here.

Cisco 4.8 vpnclient release notes

Good luck. ;-)
 
Old 02-07-2010, 04:55 AM   #7
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I went through the link but nowhere seen the resolution.
Anyone who tried vpnclient installation on RHEL 5.1
 
Old 02-07-2010, 10:21 AM   #8
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Nowhere I can ipseclog..can anyone help me with this?
 
Old 02-07-2010, 10:38 AM   #9
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
vpnc disconnecting frequently?

I have vpnc working in my RHEL 5.1 tikanga but there is frequent disconnecivity.I explore and googled and got the link:
http://linux.derkeiler.com/Mailing-L.../msg02624.html
It suggest to add a line in vpnc.config:
Code:
Try adding 

DPD idle timeout (our side) 0

to /etc/vpnc/<connection config>.
What is the correct entry to be made?
Is it :

Code:
DPD idle timeout 0
I tried editing this line but it shows syntax error?

Last edited by your_shadow03; 02-07-2010 at 10:47 AM.
 
Old 02-07-2010, 11:16 AM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Do you have access to start logging? Try this.

http://www.cisco.com/en/US/docs/secu...html#wp1014357

Good luck. ;-)
 
Old 02-07-2010, 10:26 PM   #11
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I am unable to understand whats going on wrong here.
 
Old 02-07-2010, 10:46 PM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Are you getting any errors with the frequent disconnects? There is additional info here.

http://www.cisco.com/en/US/products/...807e0aca.shtml

Good luck. ;-)
 
Old 02-08-2010, 10:55 AM   #13
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Guys,

I explored the error with vpnclient-.8.0.x64<..> software mentioned in the first thread:
Code:
bash: /usr/local/bin/vpnclient: Accessing a corrupted shared library
and found a blog http://linux.digitalsp.com/2008/02/c...pn-client.html where the author mentioned imp points:
Code:
The last command should be executed as root
Do you think he could be right?
I can see that vpnclient under /opt/cisco-vpnclient/bin is owned by root.
Running it with sudo user could create an issue? What yu say?

Last edited by your_shadow03; 02-08-2010 at 11:03 AM.
 
Old 02-08-2010, 02:37 PM   #14
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Guys, The same error which I have been having is posted before but noone ever answered that.
Can you suggest ?
http://ubuntuforums.org/archive/index.php/t-429597.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Only DNS Works after vpnclient nmolinos Linux - Networking 1 01-20-2010 08:25 PM
Installing vpnclient tamoneya Linux - Software 9 01-25-2008 04:06 PM
cisco vpnclient on 2.6.22 kernel kaz2100 Linux - Software 3 09-24-2007 01:25 PM
vpnclient problem... culin Fedora 2 08-16-2007 12:32 AM
VPNclient and ping CharlesW Linux - Networking 0 04-13-2004 04:05 AM


All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration