Problema installazione Cisco vpn su 2009.1

Discussioni e feedback su pacchetti e repository MIB
Post Reply
User avatar
Morgenstern
Nuovo utente
Nuovo utente
Posts: 5
Joined: 27 October 2009, 15:41
OpenMandriva: 2009.1
Kernel: 2.6.29.1-desktop-4mn
Desktop: KDE

Problema installazione Cisco vpn su 2009.1

Post by Morgenstern »

Ciao a tutti!
Mi rivolgo a voi perché sto riscontrando molte difficoltà nell'installazione su Mandriva 2009.1 del client vpn cisco che mi serve per connettermi alla linea wifi fornita dall'università.

Scaricato il tar.gz del programma, scompattatolo e avviata l'installazione, quello che ottengo è:



[root@localhost silvia]# /home/silvia/Scrivania/vpnclient/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/2.6.29.1-desktop-4mnb/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.29.1-desktop-4mnb/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.29.1-desktop-4mnb/build" will be used to build the module.

Is the above correct [y]

Making module
sh: ./driver_build.sh: No such file or directory
Failed to make module "cisco_ipsec.ko".


Ho visto che è un problema comune durante quest'installazione; se sbaglio su ubuntu si risolve con l'installazione di una patch .diff che però non so se e come si possa installare con mandriva.

In /usr/src/ trovo
kernel-mm-2.6.27-0.rc5.mm1.1mdv/ linux-2.6.29.1-4mnb/
linux-2.6.29.1-desktop586-4mnb/
linux@
linux-2.6.29.1-desktop-4mnb/

e in /usr/src/linux/
3rdparty/ COPYING Documentation/ fs/ ipc/ lib/ mm/ REPORTING-BUGS security/ virt/
arch/ CREDITS drivers/ include/ Kbuild MAINTAINERS net/ samples/ sound/
block/ crypto/ firmware/ init/ kernel/ Makefile README scripts/ usr/

Che devo fare?
Cercate di non parlare troppo difficile perché le mie conoscenze sono molto elementari. :) Grazie!

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: Problema installazione Cisco vpn su 2009.1

Post by MauRice »

Morgenstern,

Il kernel-desktop-devel....rpm (kernel headers), quello che corrisponde alla versione del kernel, hai installato con MCC. Se no, ti mancano dei vari pacchetti.
Making module
sh: ./driver_build.sh: No such file or directory
Failed to make module "cisco_ipsec.ko".
Questo mi dica che driver_build.sh non esista. Controla.

Se hai trovato un patch.. Ti basta nella tar.gz del programma estratta

Code: Select all

patch -p0 <patchfile
o

Code: Select all

patch -p1 <patchfile
Ciao,
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
Morgenstern
Nuovo utente
Nuovo utente
Posts: 5
Joined: 27 October 2009, 15:41
OpenMandriva: 2009.1
Kernel: 2.6.29.1-desktop-4mn
Desktop: KDE

Re: Problema installazione Cisco vpn su 2009.1

Post by Morgenstern »

Il kernel-desktop-devel....rpm (kernel headers), quello che corrisponde alla versione del kernel, hai installato con MCC. Se no, ti mancano dei vari pacchetti.
L'ho installato via rpmdrake (installa e rimuovi software), va bene?
Making module
sh: ./driver_build.sh: No such file or directory
Failed to make module "cisco_ipsec.ko".
Questo mi dica che driver_build.sh non esista. Controla.
Eppure nella cartella vpnclient scompattata c'è un file che si chiama esattamente driver_build.sh, perché non lo trova?
Se hai trovato un patch.. Ti basta nella tar.gz del programma estratta

Code: Select all

patch -p0 <patchfile
o

Code: Select all

patch -p1 <patchfile
Grazie, erano proprio i comandi che mi mancavano!
Attraverso "patch -p1" riesco (credo) ad installare la patch

[silvia@localhost vpnclient]$ patch -p1 </home//silvia//Scrivania/vpnclient-linux-2.6.22.diff
patching file frag.c
patching file interceptor.c
patching file IPSecDrvOS_linux.c
patching file linuxcniapi.c
patching file linux_os.h

Quando però provo ad installare il programma ottengo nuovi errori:

[root@localhost vpnclient]# /home/silvia/Documenti/vpnclient/vpn_install
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.29.1-desktop-4mnb/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.29.1-desktop-4mnb/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.29.1-desktop-4mnb/build" will be used to build the module.

Is the above correct [y]

Making module
make -C /lib/modules/2.6.29.1-desktop-4mnb/build SUBDIRS=/home/silvia/Documenti/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.29.1-desktop-4mnb'
CC [M] /home/silvia/Documenti/vpnclient/linuxcniapi.o
In file included from /home/silvia/Documenti/vpnclient/Cniapi.h:15,
from /home/silvia/Documenti/vpnclient/linuxcniapi.c:30:
/home/silvia/Documenti/vpnclient/GenDefs.h:113: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/home/silvia/Documenti/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/silvia/Documenti/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29.1-desktop-4mnb'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".


Cosa manca ora?
Grazie mille per la risposta e i suggerimenti!

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: Problema installazione Cisco vpn su 2009.1

Post by MauRice »

Morgenstern,

Rpmdrake fa parte di MCC, OK.

Penso che Il patch-file non era il buono.
http://www.michelem.org/2008/03/12/patc ... rnel-2624/

Hai configurato MCC bene? -> http://mib.pianetalinux.org/mib/it/repository.html
Nel non-free (update) repository esiste un rpm per vpnclient cisco.
ftp://ftp.surfnet.nl/pub/os/Linux/distr ... 1.i586.rpm

Per avverlo:
Cofigurare MCC ... (http://easyurpmi.zarb.org)
MCC -> Software Management -> Install & Remove Programs (rpmdrake) -> Le due "drop-down menu" su tutto (All). Cercare "vpnclient".

Ciao,
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
Morgenstern
Nuovo utente
Nuovo utente
Posts: 5
Joined: 27 October 2009, 15:41
OpenMandriva: 2009.1
Kernel: 2.6.29.1-desktop-4mn
Desktop: KDE

Re: Problema installazione Cisco vpn su 2009.1

Post by Morgenstern »

MauRice wrote: Penso che Il patch-file non era il buono.
http://www.michelem.org/2008/03/12/patc ... rnel-2624/
Ho seguito la guida, ma la patch fallisce in due punti:

patch </home/silvia/Scrivania/vpnclient-linux-2.6.24-final.diff
patching file GenDefs.h
patching file interceptor.c
Hunk #1 succeeded at 27 (offset -1 lines).
Hunk #2 succeeded at 51 (offset -1 lines).
Hunk #3 FAILED at 110.
Hunk #4 succeeded at 126 (offset -20 lines).
Hunk #5 FAILED at 353.
Hunk #6 succeeded at 859 (offset -76 lines).
Hunk #7 succeeded at 901 (offset -76 lines).
2 out of 7 hunks FAILED -- saving rejects to file interceptor.c.rej

E per conseguenza fallisce anche la successiva installazione

[root@localhost vpnclient]# /home/silvia/Documenti/vpnclient/vpn_install
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.29.6-desktop-2mnb/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.29.6-desktop-2mnb/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.29.6-desktop-2mnb/build" will be used to build the module.

Is the above correct [y]

Making module
make -C /lib/modules/2.6.29.6-desktop-2mnb/build SUBDIRS=/home/silvia/Documenti/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.29.6-desktop-2mnb'
CC [M] /home/silvia/Documenti/vpnclient/linuxcniapi.o
CC [M] /home/silvia/Documenti/vpnclient/frag.o
CC [M] /home/silvia/Documenti/vpnclient/IPSecDrvOS_linux.o
CC [M] /home/silvia/Documenti/vpnclient/interceptor.o
/home/silvia/Documenti/vpnclient/interceptor.c:100: error: unknown field ‘init’ specified in initializer
/home/silvia/Documenti/vpnclient/interceptor.c:101: warning: missing braces around initializer
/home/silvia/Documenti/vpnclient/interceptor.c:101: warning: (near initialization for ‘interceptor_dev.name_hlist’)
/home/silvia/Documenti/vpnclient/interceptor.c:101: warning: initialization from incompatible pointer type
/home/silvia/Documenti/vpnclient/interceptor.c:107: error: conflicting types for ‘interceptor_init’
/home/silvia/Documenti/vpnclient/interceptor.c:54: error: previous declaration of ‘interceptor_init’ was here
/home/silvia/Documenti/vpnclient/interceptor.c: In function ‘handle_vpnup’:
/home/silvia/Documenti/vpnclient/interceptor.c:315: warning: assignment from incompatible pointer type
/home/silvia/Documenti/vpnclient/interceptor.c:339: warning: assignment from incompatible pointer type
/home/silvia/Documenti/vpnclient/interceptor.c:340: warning: assignment from incompatible pointer type
/home/silvia/Documenti/vpnclient/interceptor.c:349:25: error: macro "for_each_netdev" requires 2 arguments, but only 1 given
/home/silvia/Documenti/vpnclient/interceptor.c:349: error: ‘for_each_netdev’ undeclared (first use in this function)
/home/silvia/Documenti/vpnclient/interceptor.c:349: error: (Each undeclared identifier is reported only once
/home/silvia/Documenti/vpnclient/interceptor.c:349: error: for each function it appears in.)
/home/silvia/Documenti/vpnclient/interceptor.c:353: error: expected ‘;’ before ‘{’ token
/home/silvia/Documenti/vpnclient/interceptor.c: In function ‘do_cleanup’:
/home/silvia/Documenti/vpnclient/interceptor.c:388: warning: assignment from incompatible pointer type
/home/silvia/Documenti/vpnclient/interceptor.c: In function ‘interceptor_mod_init’:
/home/silvia/Documenti/vpnclient/interceptor.c:854: warning: passing argument 3 of ‘alloc_netdev_mq’ from incompatible pointer type
/home/silvia/Documenti/vpnclient/interceptor.c:854: error: incompatible types in assignment
/home/silvia/Documenti/vpnclient/interceptor.c:864: error: incompatible type for argument 1 of ‘register_netdev’
/home/silvia/Documenti/vpnclient/interceptor.c: In function ‘interceptor_mod_cleanup’:
/home/silvia/Documenti/vpnclient/interceptor.c:891: error: incompatible type for argument 1 of ‘unregister_netdev’
make[2]: *** [/home/silvia/Documenti/vpnclient/interceptor.o] Error 1
make[1]: *** [_module_/home/silvia/Documenti/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29.6-desktop-2mnb'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
Hai configurato MCC bene? -> http://mib.pianetalinux.org/mib/it/repository.html
Nel non-free (update) repository esiste un rpm per vpnclient cisco.
ftp://ftp.surfnet.nl/pub/os/Linux/distr ... 1.i586.rpm

Per avverlo:
Cofigurare MCC ... (http://easyurpmi.zarb.org)
MCC -> Software Management -> Install & Remove Programs (rpmdrake) -> Le due "drop-down menu" su tutto (All). Cercare "vpnclient".
Ho già installato quel pacchetto, e, effettivamente, su MCC --> rete e internet --> configura connessioni vpn
trovo "concentratore VPN cisco" ma il problema allora è configurarlo, perchè io ho un file PCF da caricare come profilo di connessione, mentre qui mi si chiedono le singole informazioni e non so come recuperarle: aprendo il file pcf se ne trovano alcune, ma non tutte.

Quindi? Cosa conviene fare? Cercare di installare il pacchetto tar.gz o cercare di recuperare le informazioni del profilo PCF? In ogni caso, come?

Comunque, grazie!

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: Problema installazione Cisco vpn su 2009.1

Post by MauRice »

Morgenstern,

Ti consiglio quello DKMS vpnclient RPM di Mandriva.
Ha il patch giusto. E quando hai un aggiornamento del kernel.. Va tutto automaticamente.

Per configurarlo... Chiedere a l'universita, come etc etc.. Non ho nesun esperienza.
Forse hai una cartella nascosta .vpnclient nella cartella HOME.
In qui vanno i file PCF.

Ciao,
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
Morgenstern
Nuovo utente
Nuovo utente
Posts: 5
Joined: 27 October 2009, 15:41
OpenMandriva: 2009.1
Kernel: 2.6.29.1-desktop-4mn
Desktop: KDE

Re: Problema installazione Cisco vpn su 2009.1

Post by Morgenstern »

Ho già provato a chiedere in università, ma non conoscevano Mandriva e tutto quello che mi hanno saputo spiegare è stato come installare il vpn su ubuntu, tramite la patch appunto...

Forse seguendo un'altra guida sono riuscita a decriptare il file pcf in uno .conf compatibile con vpnc, ora però non posso verificare perchè sono a chilometri e chilometri dall'università. Domenica quando ci torno provo...
Intanto grazie!

User avatar
MauRice
Utente
Utente
Posts: 185
Joined: 30 May 2008, 12:11
OpenMandriva: cooker
Contact:

Re: Problema installazione Cisco vpn su 2009.1

Post by MauRice »

Morgenstern,

Per il installarlo, Mandriva ha un RPM..
E configurarlo per avvere contacto con il Server a l'universita. ( Login )

Ciao,
MauRice
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be

User avatar
Morgenstern
Nuovo utente
Nuovo utente
Posts: 5
Joined: 27 October 2009, 15:41
OpenMandriva: 2009.1
Kernel: 2.6.29.1-desktop-4mn
Desktop: KDE

Re: Problema installazione Cisco vpn su 2009.1

Post by Morgenstern »

Per quel che ne so io, installando il vpn cisco tramite l'rpm da rmdrake e installandolo tramite il tar.gz si ottengono due cose diverse:
- installando tramite MCC si ottiene, all'interno di
MCC --> rete e internet --> configura connessioni vpn
quello che ho io ora e che non sono sicura di saper configurare: una serie di campi da riempire (gateway, group secret, nome del gruppo etc).
- installando il file.tar.gz credo che si ottenga un programma separato (tipo quello che si installa su windows) che permette di importare dei file.pcf per configurare i profili.

Il risultato immagino che sia lo stesso, ma la configurazione dei profili è differente.

Ora, utilizzando l'installazione via MCC, mi trovo in pratica a dovermi compilare il profilo, mi servo le informazioni contenute nel pcf, che però così come sono sono criptate.
Ho seguito questa guida
http://bytezero.org/?p=161
per convertire il file.pcf in file.conf
poi ho utilizzato le informazioni che ci ho trovato dentro per la creazione del profilo in MCC. Che dici, potrebbe funzionare?

Fino a domenica non posso provare...
Ne caso poi in università chiederò, ma non so quanto mi sappiano aiutare... Speriamo!
Ancora grazie

Post Reply