LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-24-2004, 08:43 AM   #16
C++Boar
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo
Posts: 68

Original Poster
Rep: Reputation: 16

Hello Eugene

(if others think they can help they are of course allowed to answer)

vpnclient does not have a "-y" option. probably this is because it want to force
a answer on

Unauthorized access strictly prohibited.
Do you wish to continue? (y/n):

(This is only on some vpnservers - my guess. It is not something in the .pcf-file or ??)

However I always want to answer 'y' here - but I do not want manually to answer yes.
Just do it !

How / is it possible to automatically to answer yes here.
(maybe by signaling the process ?)

C++Boar
 
Old 04-24-2004, 08:48 PM   #17
eugeneteo
LQ Newbie
 
Registered: Apr 2004
Posts: 9

Rep: Reputation: 0
Quote:
Originally posted by C++Boar
Hello Eugene

(if others think they can help they are of course allowed to answer)

vpnclient does not have a "-y" option. probably this is because it want to force
a answer on

Unauthorized access strictly prohibited.
Do you wish to continue? (y/n):

(This is only on some vpnservers - my guess. It is not something in the .pcf-file or ??)

However I always want to answer 'y' here - but I do not want manually to answer yes.
Just do it !

How / is it possible to automatically to answer yes here.
(maybe by signaling the process ?)

C++Boar
not sure. let me check.
 
Old 04-25-2004, 11:21 AM   #18
valent_h
LQ Newbie
 
Registered: Apr 2004
Posts: 18

Rep: Reputation: 0
U can try
"echo -n y|vpnclient"

then set the above command as a script... the problem solved...
 
Old 04-25-2004, 11:31 AM   #19
eugeneteo
LQ Newbie
 
Registered: Apr 2004
Posts: 9

Rep: Reputation: 0
Quote:
Originally posted by valent_h
U can try
"echo -n y|vpnclient"

then set the above command as a script... the problem solved...
I believe this isn't what he wants. Anyway, I am looking at it now.
Been busy fixing some k bug I discovered yesterday.

Eugene
 
Old 04-25-2004, 02:12 PM   #20
C++Boar
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo
Posts: 68

Original Poster
Rep: Reputation: 16
valent_h, Thanks for your help.

This does the trick
(Exactly what I need right now!)

Eugene - I am sorry if I have not been precise ... - thanks for your time.

But there is however a very little twist. I am not sure that I will ever do this project, but I was considering making a gui for vpnclient. Now I need to pass on the question on to the user ....

I can it that case ofcause do a workaround like a check-box 'I am aware of blah blah' or maybe even reconnect if question comes)

(Or has somebody already made a gui for vpnclient?)

C++Boar
 
Old 04-25-2004, 07:56 PM   #21
eugeneteo
LQ Newbie
 
Registered: Apr 2004
Posts: 9

Rep: Reputation: 0
Quote:
Originally posted by C++Boar
But there is however a very little twist. I am not sure that I will ever do this project, but I was considering making a gui for vpnclient. Now I need to pass on the question on to the user ....

I can it that case ofcause do a workaround like a check-box 'I am aware of blah blah' or maybe even reconnect if question comes)

(Or has somebody already made a gui for vpnclient?)

C++Boar
Sounds nice! I don't think someone made one yet. But is it worth the effort?

Eugene
 
Old 05-01-2004, 01:51 AM   #22
valent_h
LQ Newbie
 
Registered: Apr 2004
Posts: 18

Rep: Reputation: 0
Hi me again,
I believe there is a problem with vpn client....Though it compile perfectly, it experience some problem when executed. (inside-nus or outside-nus) See below output..
please Advice Thanks
-----------------------------------------------------------
[valent@ValentLap valent]$ vpnclient connect outside-nus
Cisco Systems VPN Client Version 4.0.3 (B)
Copyright (C) 1998-2003 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.3-4mdk #1 Tue Mar 2 07:26:13 CET 2004 i686

Initializing the VPN connection.
The VPN sub-system is busy or has failed.
 
Old 05-03-2004, 06:16 AM   #23
mimeca
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Question Question about security

Greetins.

Is secure launch the vpn conexion as root. I must be logged as root to connect. With original cisco client i musn't do it.

Thanks for your time and good job for the patch
 
Old 05-06-2004, 07:15 PM   #24
adham
LQ Newbie
 
Registered: Nov 2003
Distribution: suse 9.0
Posts: 3

Rep: Reputation: 0
Trying VPN Suse 9.1

Hi,

I tried to copile Eugene's patched vpnclient on Suse 9.1, which comes with a 2.6.4-54.3 kernel, I was woundering if these error which I get are normal!!

In any case, the module fails to load, and the machine gets stuck!
/etc/init.d/vpnclient_init start
Starting /usr/local/bin/vpnclient: /etc/init.d/vpnclient_init: line 140: 6189 Segmentation fault /sbin/insmod ${PC}/${VPNMOD}
Failed (insmod)




Any Suggestions!!
Thanks in advance...


Compilation:

Making module
Copying module to directory "/lib/modules/2.6.4-54.3-default/CiscoVPN".
Creating start/stop script "/etc/init.d/vpnclient_init".
insserv: can not stat(.#vpnclient_init)
insserv: script vpnclient_init is not executable, skipped!
vpnclient_init 0 ff 1 : off 2 : off 3 : off 4 : off 5 : off 6 : off
Enabling start/stop script for run level 3,4 and 5.
insserv: can not stat(.#vpnclient_init)
insserv: script vpnclient_init is not executable, skipped!
vpnclient_init 0 : off 1 : off 2 : off 3 : off 4 : off 5 : off 6 : off
insserv: can not stat(.#vpnclient_init)
insserv: script vpnclient_init is not executable, skipped!
Updating VPN configuration file "/etc/CiscoSystemsVPNClient/vpnclient.ini".

Installing license.txt (VPN Client license) in "/etc/CiscoSystemsVPNClient/":

Installing bundled user profiles in "/etc/CiscoSystemsVPNClient/Profiles/":
* Replaced Profiles: sample

Copying binaries to directory "/usr/local/bin".

Setting permissions.
/usr/local/bin/cvpnd (setuid root)
/etc/CiscoSystemsVPNClient (world writeable)
/etc/CiscoSystemsVPNClient/Profiles (world writeable)
/etc/CiscoSystemsVPNClient/Certificates (world writeable)
* 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.
 
Old 05-11-2004, 12:29 PM   #25
jerich007
LQ Newbie
 
Registered: Aug 2003
Distribution: Fedora Core1
Posts: 2

Rep: Reputation: 0
Talking

I'm using Fedora-Core1 w/kernel 2.6.4-1.300 and after finally finding this thread, my vpnclient is working fine! I used the deadlock-patch and vpnclient 4.03B-k9 as described.

Thanks all!
- J
 
Old 05-17-2004, 10:00 PM   #26
miaohf
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Hi,all

I was successfully install the CISCO VPN Client download from http://www.anomalistic.org/ and test it. The tool does work well.but finally it report :
"............
VPN tunnel information.
Client address: 130.113.90.1
Server address: 130.113.69.99
Encryption: 56-bit DES
Authentication: HMAC-MD5
IP Compression: None
NAT passthrough is active on port UDP 4500
Local LAN Access is disabled"


So it means I can't use LAN when I was doing work with VPN,What shall I do now?
Please help!!

Last edited by miaohf; 05-17-2004 at 10:01 PM.
 
Old 05-18-2004, 05:21 AM   #27
valent_h
LQ Newbie
 
Registered: Apr 2004
Posts: 18

Rep: Reputation: 0
Yes if You have the following means it works
-----------------
"............
VPN tunnel information.
Client address: 130.113.90.1
Server address: 130.113.69.99
Encryption: 56-bit DES
Authentication: HMAC-MD5
IP Compression: None
NAT passthrough is active on port UDP 4500
Local LAN Access is disabled"
 
Old 05-18-2004, 05:09 PM   #28
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Rep: Reputation: 0
Hi eugeneteo and C++Boar,

I have patched your patch but received this error:

Code:
(Stripping trailing CRs from patch.)
patching file interceptor.c
patch: **** malformed patch at line 5: error = VPNIFUP_FAILURE;
and when i ran the vpn install ( VPN 4.0.4 A ) script, this error occured:

Code:
make -C /lib/modules/2.6.4-52-default/build SUBDIRS=/home/kylam/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.4-52'
  CHK     include/linux/version.h
*** Warning: Overriding SUBDIRS on the command line can cause
***          inconsistencies
make[2]: ťarch/i386/kernel/asm-offsets.sŤ is already aktualised.
  CHK     include/asm-i386/asm_offsets.h
  CC [M]  /home/kylam/vpnclient/linuxcniapi.o
/home/kylam/vpnclient/linuxcniapi.c:36: error: conflicting types for `os_alloc'
/home/kylam/vpnclient/unixcniapi.h:38: error: previous declaration of `os_alloc'
/home/kylam/vpnclient/linuxcniapi.c:42: error: conflicting types for `os_free'
/home/kylam/vpnclient/unixcniapi.h:39: error: previous declaration of `os_free'
/home/kylam/vpnclient/linuxcniapi.c:84: error: conflicting types for `CniGetFrameType'
/home/kylam/vpnclient/Cniapi.h:404: error: previous declaration of `CniGetFrameType'
/home/kylam/vpnclient/linuxcniapi.c:122: error: conflicting types for `CniGetMacAddress'
/home/kylam/vpnclient/Cniapi.h:413: error: previous declaration of `CniGetMacAddress'
/home/kylam/vpnclient/linuxcniapi.c:182: error: conflicting types for `CniGetMacName'
/home/kylam/vpnclient/Cniapi.h:408: error: previous declaration of `CniGetMacName'
/home/kylam/vpnclient/linuxcniapi.c:221: error: conflicting types for `CniGetMTUSize'
/home/kylam/vpnclient/Cniapi.h:417: error: previous declaration of `CniGetMTUSize'
/home/kylam/vpnclient/linuxcniapi.c:279: error: conflicting types for `CniInjectReceive'
/home/kylam/vpnclient/Cniapi.h:432: error: previous declaration of `CniInjectReceive'
/home/kylam/vpnclient/linuxcniapi.c:385: error: conflicting types for `CniInjectSend'
/home/kylam/vpnclient/Cniapi.h:438: error: previous declaration of `CniInjectSend'
make[2]: *** [/home/kylam/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [/home/kylam/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.4-52'
make: *** [default] Error 2
My distro is suse 9.1, kernel is 2.6.4-54-default


Quote:
Originally posted by miaohf
So it means I can't use LAN when I was doing work with VPN,What shall I do now?
Please help!!
You can turn this option on in your VPN profile, but it only works when your VPN server allows LAN access.

Last edited by lamnk; 05-18-2004 at 05:10 PM.
 
Old 05-21-2004, 03:29 AM   #29
parre
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Hello!

I have the same issue as lamnk (patch-error) with the patch for 4.0.3 (b) and the same as adham (insmod error) without the patch.

With 4.0.4 (b) I cannot compile at all, the error I get is as follows:
make[1]: Entering directory `/lib/modules/2.6.5-1.358/build'
make[1]: *** No rule to make target `ja'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.5-1.358/build'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

My system is Fedora 2 running default kernel 2.6.5-1.358.

Any ideas, help would be highly appreciated!!

- P
 
Old 05-21-2004, 04:11 AM   #30
lamnk
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: SuSE
Posts: 9

Rep: Reputation: 0
I've just found out that vpnc can replace Cisco VPN Client and work with kernel 2.6 . Download here:
http://www.unix-ag.uni-kl.de/~massar/vpnc/
 
  


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 VPN Client unable to insert kernel module cuco76 Linux - Networking 2 04-14-2005 03:36 PM
enterprise linux ws, cisco vpn client, install kernel source ganewton Linux - Security 3 09-20-2004 12:43 AM
Cisco VPN Client on Debian with kernel 2.6.4 stephanhuiser Linux - Networking 1 06-17-2004 11:34 AM
Connect to Cisco VPN w/o Cisco VPN Client gboutwel Linux - Networking 4 02-07-2003 12:46 PM
cisco vpn client aqoliveira Linux - Networking 4 07-19-2002 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:12 AM.

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