LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2008, 10:39 PM   #1
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 31
Installing vpnclient


My school requires a vpn client in order to use wireless and they supply both a linux and a windows version for download. I had no problems with the windows version when I used it but I cannot get the linux version to install. The instructions from school can be found here. When I call sudo ./vpn_install I run into problems:
Code:
* Binaries will be installed in "/usr/local/bin".

* Modules will be installed in "/lib/modules/2.6.22-14-generic/CiscoVPN".

* The VPN service will be started AUTOMATICALLY at boot time.

* Kernel source from "/lib/modules/2.6.22-14-generic/build" will be used to build the module.



Is the above correct [y]



Making module

make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/tamona/Desktop/vpnclient modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'

  CC [M]  /home/tamona/Desktop/vpnclient/linuxcniapi.o

/home/tamona/Desktop/vpnclient/linuxcniapi.c:12:26: error: linux/config.h: No such file or directory

/home/tamona/Desktop/vpnclient/linuxcniapi.c: In function ‘CniInjectReceive’:

/home/tamona/Desktop/vpnclient/linuxcniapi.c:297: warning: implicit declaration of function ‘skb_set_timestamp’

/home/tamona/Desktop/vpnclient/linuxcniapi.c:331: error: ‘struct sk_buff’ has no member named ‘nh’

/home/tamona/Desktop/vpnclient/linuxcniapi.c:332: error: ‘struct sk_buff’ has no member named ‘mac’

/home/tamona/Desktop/vpnclient/linuxcniapi.c: In function ‘CniInjectSend’:

/home/tamona/Desktop/vpnclient/linuxcniapi.c:454: error: ‘struct sk_buff’ has no member named ‘mac’

/home/tamona/Desktop/vpnclient/linuxcniapi.c:455: error: ‘struct sk_buff’ has no member named ‘nh’

/home/tamona/Desktop/vpnclient/linuxcniapi.c:458: error: ‘struct sk_buff’ has no member named ‘h’

/home/tamona/Desktop/vpnclient/linuxcniapi.c:458: error: ‘struct sk_buff’ has no member named ‘nh’

make[2]: *** [/home/tamona/Desktop/vpnclient/linuxcniapi.o] Error 1

make[1]: *** [_module_/home/tamona/Desktop/vpnclient] Error 2

make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'

make: *** [default] Error 2

Failed to make module "cisco_ipsec.ko".
Any idea why this is failing.
 
Old 01-25-2008, 12:04 AM   #2
lakris
Member
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Ubuntu, RedHat, SuSe, Debian, Slax
Posts: 102

Rep: Reputation: 15
You appear to be missing the header files.
"You MUST have kernel sources installed prior to installation."

I think it is very strange that it requires such an old version of redhat and glib. But maybe it's just a minimum. If possible, maybe You should look for a pre-compiled package (rpm) for Your Linux instead of battling with building Your own. Unless that vpn*tar.gz has stuff that is required to funtion with Your schools connection. Have a look at vpnc, read up on it at http://www.unix-ag.uni-kl.de/~massar/vpnc/, a Cisco-compliant vpn-client. And maybe You just need to copy some config files from the original package.

Or install the kernel source and try again.

/Lakris
 
Old 01-25-2008, 12:08 AM   #3
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Original Poster
Rep: Reputation: 31
I looked at vpnc as well and got it installed but the tar has some configuration files in it that set up the connection. I looked at their contents and the data in them didnt seem to match up with the information that vpnc asked me for so I couldn't configure it.
 
Old 01-25-2008, 03:34 AM   #4
lakris
Member
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Ubuntu, RedHat, SuSe, Debian, Slax
Posts: 102

Rep: Reputation: 15
Quote:
Originally Posted by tamoneya View Post
I looked at vpnc as well and got it installed but the tar has some configuration files in it that set up the connection. I looked at their contents and the data in them didnt seem to match up with the information that vpnc asked me for so I couldn't configure it.
Well, i managed to configure it in Linux given info from a windows-pcf file, the names and format were just a little different. The IPsec secret was encrypted but there are simple decryption tools available on the net.
My /etc/vpnc.conf looks something like (readable only by root)

IPSec gateway 1.2.3.4
IPSec ID companyVPN
IPSec secret asecretword
Xauth username lakris
Xauth password mysecretpassword
Target networks 172.22.0.0/16 192.168.0.0/16

Could be worth a try...

/Lakris
 
Old 01-25-2008, 01:02 PM   #5
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Original Poster
Rep: Reputation: 31
where can i find these decryption cools. I would normally google it myself but i barely know what I am seaching for. I don't know the encryption scheme that cisco uses for IPsec vpn.
I am also having trouble finding this IPSec ID. The word "ID" occurs no where in the pcf file that I have.

Last edited by tamoneya; 01-25-2008 at 01:10 PM.
 
Old 01-25-2008, 01:40 PM   #6
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Original Poster
Rep: Reputation: 31
I just found this tutorial about decrypting the IPSec Secret but I am still having trouble. http://www.spiration.co.uk/post/1293. When I try to connect with sudo vpnc it says
Code:
vpnc: hash comparison failed:  (ISAKMP_N_AUTHENTICATION_FAILED)(24)
check group password!
When I decrypted the grouppwd i got a 6 character alphanumeric string which is very different from what the guy in the tutorial got. I think I decrypted it wrong but can't see where I messed up.

EDIT: I found the error. I entered the network ID wrong. The 6 character ipsec secret was correct.

Last edited by tamoneya; 01-25-2008 at 01:44 PM.
 
Old 01-25-2008, 02:49 PM   #7
lakris
Member
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Ubuntu, RedHat, SuSe, Debian, Slax
Posts: 102

Rep: Reputation: 15
Quote:
Originally Posted by tamoneya View Post
I just found this tutorial about decrypting the IPSec Secret but I am still having trouble. http://www.spiration.co.uk/post/1293. When I try to connect with sudo vpnc it says
Code:
vpnc: hash comparison failed:  (ISAKMP_N_AUTHENTICATION_FAILED)(24)
check group password!
When I decrypted the grouppwd i got a 6 character alphanumeric string which is very different from what the guy in the tutorial got. I think I decrypted it wrong but can't see where I messed up.

EDIT: I found the error. I entered the network ID wrong. The 6 character ipsec secret was correct.
Great. So You have it working now?
Btw, what Linux do You have?
 
Old 01-25-2008, 02:57 PM   #8
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Original Poster
Rep: Reputation: 31
I am using Ubuntu 7.10 x86 on a T61 Lenovo Thinkpad
 
Old 01-25-2008, 03:00 PM   #9
lakris
Member
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Ubuntu, RedHat, SuSe, Debian, Slax
Posts: 102

Rep: Reputation: 15
Quote:
Originally Posted by tamoneya View Post
I am using Ubuntu 7.10 x86 on a T61 Lenovo Thinkpad
Haven't You tried the nm-applet and configure Your tunnel through that? I am using it for both Microsoft and Cisco VPN, it works just fine. Except that I can only use one at a time.

/Lakris
 
Old 01-25-2008, 03:06 PM   #10
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Original Poster
Rep: Reputation: 31
It doesnt matter any more since it is working. I am fairly happy with how it has turned out actually.
 
  


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
cisco vpnclient on 2.6.22 kernel kaz2100 Linux - Software 3 09-24-2007 12:25 PM
vpnclient problem... culin Fedora 2 08-15-2007 11:32 PM
cisco vpnclient does not work with 2.6.3+ larley Linux - Software 0 08-14-2004 02:56 AM
VPNclient and ping CharlesW Linux - Networking 0 04-13-2004 03:05 AM
Cisco VPNClient on Mandrake 9.0 a53man Linux - Networking 3 01-15-2003 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 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
Open Source Consulting | Domain Registration