ввожу пароль, получаю
[console]gu@kat:~$ sudo vpnc rtk
Enter password for userpassword@domain@blablabla:
vpnc: peer selected (single) DES as "encryption" method.
This algorithm is considered too weak today
If your vpn concentrator admin still insists on using DES
use the "--enable-1des" option.[/console]
пробую с предложенной опцией
[console]gu@kat:~$ sudo vpnc --enable-1des rtk
Enter password for userpassword@domain@blablabla:
Password for VPN userpassword@domain@drugoe_blablabla: [/console]
просит еще какой то дополнительный пароль.
Сохраняете текст выше приведенного патча в файле ciscovpn.patch и накладываете его на распакованный клиент
text
patch -p0 <ciscovpn.patch
Должны получить следующее
[console]gentoo tmp # patch -p0 <ciscovpn.patch
patching file vpnclient/IPSecDrvOS_linux.c
patching file vpnclient/Makefile
patching file vpnclient/driver_build.sh
patching file vpnclient/frag.c
patching file vpnclient/interceptor.c
patching file vpnclient/linuxcniapi.c
patching file vpnclient/linuxkernelapi.c
patching file vpnclient/vpn_install[/console]
Затем переходите в папку vpnclient и запускаете vpn_install
Должны получить примерно такую картину
Показать
[console]gentoo tmp # cd vpnclient
gentoo 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 [no]
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/3.7.10-gentoo/build]
* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/3.7.10-gentoo/CiscoVPN".
* The VPN service will *NOT* be started automatically at boot time.
* Kernel source from "/lib/modules/3.7.10-gentoo/build" will be used to build th
e module.
Is the above correct [y]
Making module
/usr/bin/make -C /lib/modules/3.7.10-gentoo/build SUBDIRS=/root/tmp/vpnclient mo
dules
make[1]: Entering directory `/usr/src/linux-3.7.10-gentoo'
CC [M] /root/tmp/vpnclient/linuxcniapi.o
CC [M] /root/tmp/vpnclient/frag.o
CC [M] /root/tmp/vpnclient/IPSecDrvOS_linux.o
CC [M] /root/tmp/vpnclient/interceptor.o
CC [M] /root/tmp/vpnclient/linuxkernelapi.o
LD [M] /root/tmp/vpnclient/cisco_ipsec.o
Building modules, stage 2.
MODPOST 1 modules
CC /root/tmp/vpnclient/cisco_ipsec.mod.o
LD [M] /root/tmp/vpnclient/cisco_ipsec.ko
make[1]: Leaving directory `/usr/src/linux-3.7.10-gentoo'
Copying module to directory "/lib/modules/3.7.10-gentoo/CiscoVPN".
Already have group 'bin'
Creating start/stop script "/etc/init.d/vpnclient_init".
/etc/init.d/vpnclient_init
Creating global config /etc/opt/cisco-vpnclient
Installing license.txt (VPN Client license) in "/opt/cisco-vpnclient/":
/opt/cisco-vpnclient/license.txt
Installing bundled user profiles in "/etc/opt/cisco-vpnclient/Profiles/":
* New Profiles : 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.
* You will need to run this script every time you reboot your computer.
gentoo vpnclient #[/console]
gu@kat:/usr/src/vpnclient$ sudo ./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]no
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/3.2.0-4-686-pae/build]
* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/3.2.0-4-686-pae/CiscoVPN".
* The VPN service will *NOT* be started automatically at boot time.
* Kernel source from "/lib/modules/3.2.0-4-686-pae/build" will be used to build the module.
Is the above correct [y]
Making module
make -C /lib/modules/3.2.0-4-686-pae/build SUBDIRS=/usr/src/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-686-pae'
CC [M] /usr/src/vpnclient/linuxcniapi.o
CC [M] /usr/src/vpnclient/frag.o
CC [M] /usr/src/vpnclient/IPSecDrvOS_linux.o
CC [M] /usr/src/vpnclient/interceptor.o
CC [M] /usr/src/vpnclient/linuxkernelapi.o
LD [M] /usr/src/vpnclient/cisco_ipsec.o
Building modules, stage 2.
MODPOST 1 modules
CC /usr/src/vpnclient/cisco_ipsec.mod.o
LD [M] /usr/src/vpnclient/cisco_ipsec.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-686-pae'
Create module directory "/lib/modules/3.2.0-4-686-pae/CiscoVPN".
Copying module to directory "/lib/modules/3.2.0-4-686-pae/CiscoVPN".
Already have group 'bin'
Creating start/stop script "/etc/init.d/vpnclient_init".
/etc/init.d/vpnclient_init
Creating global config /etc/opt/cisco-vpnclient
Installing license.txt (VPN Client license) in "/opt/cisco-vpnclient/":
/opt/cisco-vpnclient/license.txt
Installing bundled user profiles in "/etc/opt/cisco-vpnclient/Profiles/":
* New Profiles : 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.
* You will need to run this script every time you reboot your computer.
gu@kat:~$ sudo /etc/init.d/vpnclient_init start
Starting /opt/cisco-vpnclient/bin/vpnclient: Error: could not load module /lib/modules/3.2.0-4-686-pae/CiscoVPN/cisco_ipsec: No such file or directory
Failed (insmod)
после ребута тож самое.
что это такое?
модуль не установился?
gu@kat:~$ sudo /etc/init.d/vpnclient_init start
[sudo] password for gu:
Starting /opt/cisco-vpnclient/bin/vpnclient: Error: could not load module /lib/modules/3.2.0-4-686-pae/CiscoVPN/cisco_ipsec: No such file or directory
Failed (insmod)
gu@kat:~$ sudo /etc/init.d/vpnclient_init status
Module Size Used by
cisco_ipsec 576948 0
cipsec0 Link encap:Ethernet HWaddr 00:0b:fc:f8:01:8f
NOARP MTU:1356 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
gu@kat:~$
ага, если insmod'у указать полный путь до модуля, то он его подхватывает.
далее, если попробовать законнектиться к vpn
gu@kat:~$ sudo vpnclient connect rtk
rtk - это конфиг /etc/opt/cisco-vpnclient/Profiles/rtk.pcf
то ядро с пеной во рту начинает гадить, да так, что shutdown -r now не проходит.
на хардварные кнопки не реагирует, чтобы выключить комп. приходится от сети вырубать.
case `uname -r` in
2.[56].*)
VPNMOD_FILE="${VPNMOD}.ko"
;; *)
# VPNMOD_FILE="$VPNMOD"
;;
esac
почему для ядра != 2.[56].*VPNMOD без .ko?
##########
далее еще один кусок из файла
case "`uname -r`" in 2.6.*) ;; 2.5.*) ;; 2.4.*)
;; 2.2.*)
;;
2.0.*)
#
# This is only needed due to a bug in 2.0.x kernels that affects
# arp lookups.
#
ifconfig $VPNDEV 222.222.222.222 ;
if [ "$?" != "0" ] ; then
echo "Failed (ifconfig)"
/sbin/rmmod ${VPNMOD}
exit 1
fi
;; *)
echo "Failed (unsupported Linux version)"
/sbin/rmmod ${VPNMOD}
exit 1
;;
esac
то есть если ядро из варианта *)
коим 3.2.0 и является в данном случае, то оно не поддерживаемое?