<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; vpn client или как проще?]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=33782&amp;type=atom" />
	<updated>2014-02-21T08:33:54Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=33782</id>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=395592#p395592" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pitdron пишет:</cite><blockquote><p>Тут <a href="https://github.com/mariuszs/CiscoVpnClient-Patches">https://github.com/mariuszs/CiscoVpnClient-Patches</a> пишут что ядро выше 3.1 не поддерживается...</p></blockquote></div><p>то есть вы собирали под свое 3.7 но не использовали?<br /></p><div class="quotebox"><cite>pitdron пишет:</cite><blockquote><p>Попробуйте сделать как говорится тут <a href="http://www.linux.profiua.com/2012/04/09/%d0%b7%d0%b0%d0%bc%d0%b5%d0%bd%d0%b0-cisco-vpn-client-%d0%bf%d0%be%d0%b4-linux-vpnc/">http://www.linux.profiua.com/2012/04/09 … inux-vpnc/</a></p></blockquote></div><p>уже видел эту страничку, когда воевал с vpnc..</p><br /><p>гады эти сиськи!<br />нафига было рубить дальнейшую поддержку линукс клиентов?</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-21T08:33:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=395592#p395592</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=395572#p395572" />
			<content type="html"><![CDATA[<p>Тут <a href="https://github.com/mariuszs/CiscoVpnClient-Patches">https://github.com/mariuszs/CiscoVpnClient-Patches</a> пишут что ядро выше 3.1 не поддерживается...</p><p>Попробуйте сделать как говорится тут <a href="http://www.linux.profiua.com/2012/04/09/%d0%b7%d0%b0%d0%bc%d0%b5%d0%bd%d0%b0-cisco-vpn-client-%d0%bf%d0%be%d0%b4-linux-vpnc/">http://www.linux.profiua.com/2012/04/09 … inux-vpnc/</a></p>]]></content>
			<author>
				<name><![CDATA[pitdron]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26039</uri>
			</author>
			<updated>2014-02-21T06:59:47Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=395572#p395572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=395472#p395472" />
			<content type="html"><![CDATA[<p>&quot;почитал&quot; файлик /etc/init.d/vpnclient_init<br />смущает отрывок</p><p>case `uname -r` in<br />2.[56].*)<br />&nbsp; &nbsp; VPNMOD_FILE=&quot;${VPNMOD}.ko&quot;<br />&nbsp; &nbsp; ;;<br /><span style="color: red">*</span>)<br />#&nbsp; &nbsp; VPNMOD_FILE=<span style="color: red">&quot;$VPNMOD&quot;</span><br />&nbsp; &nbsp; ;;<br />esac</p><p>почему для ядра != <span style="color: red">2.[56].*</span>&nbsp; &nbsp;<span style="color: red">VPNMOD</span> без <span style="color: red">.ko</span>?<br />##########<br />далее еще один кусок из файла<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;`uname -r`&quot; in<br /><span style="color: red">&nbsp; &nbsp; &nbsp; &nbsp; 2.6.*)<br /></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;;<br /><span style="color: red">&nbsp; &nbsp; &nbsp; &nbsp; 2.5.*)<br /></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;;<br /><span style="color: red">&nbsp; &nbsp; &nbsp; &nbsp; 2.4.*)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;;<br /><span style="color: red">&nbsp; &nbsp; &nbsp; &nbsp; 2.2.*)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;;<span style="color: red"><br />&nbsp; &nbsp; &nbsp; &nbsp; 2.0.*)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # This is only needed due to a bug in 2.0.x kernels that affects<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # arp lookups.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ifconfig $VPNDEV 222.222.222.222 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if [ &quot;$?&quot; != &quot;0&quot; ] ; then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Failed (ifconfig)&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /sbin/rmmod ${VPNMOD}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit 1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fi<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: red">*)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Failed (unsupported Linux version)&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /sbin/rmmod ${VPNMOD}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit 1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;;<br />&nbsp; &nbsp; &nbsp; &nbsp; esac</p><p>то есть если ядро из варианта<br /><span style="color: red">*)</span><br />коим 3.2.0 и является в данном случае, то оно не поддерживаемое?</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-20T17:45:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=395472#p395472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=395468#p395468" />
			<content type="html"><![CDATA[<p>попробовал пойти следующим образом</p><div class="quotebox"><blockquote><p>gu@kat:~$ sudo insmod /lib/modules/3.2.0-4-686-pae/CiscoVPN/cisco_ipsec.ko</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:~$ lsmod | grep cisco<br />cisco_ipsec&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;576948&nbsp; 0</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:~$ sudo /etc/init.d/vpnclient_init status<br />Module&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Size&nbsp; Used by<br />cisco_ipsec&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;576948&nbsp; 0 </p><p>cipsec0&nbsp; &nbsp;Link encap:Ethernet&nbsp; HWaddr 00:0b:fc:f8:01:8f&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NOARP&nbsp; MTU:1356&nbsp; Metric:1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 txqueuelen:1000 <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX bytes:0 (0.0 B)&nbsp; TX bytes:0 (0.0 B)</p><p>gu@kat:~$</p></blockquote></div><p>ага, если insmod&#039;у указать полный путь до модуля, то он его подхватывает.<br />далее, если попробовать законнектиться к vpn<br /></p><div class="quotebox"><blockquote><p>gu@kat:~$ sudo vpnclient connect rtk</p></blockquote></div><p>rtk - это конфиг&nbsp; /etc/opt/cisco-vpnclient/Profiles/rtk.pcf<br />то ядро с пеной во рту начинает гадить, да так, что shutdown -r now не проходит.<br />на хардварные кнопки не реагирует, чтобы выключить комп. приходится от сети вырубать.</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-20T17:28:24Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=395468#p395468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=395438#p395438" />
			<content type="html"><![CDATA[<p>после ребута тож самое.<br />что это такое?<br />модуль не установился?<br /></p><div class="quotebox"><blockquote><p>gu@kat:~$ sudo /etc/init.d/vpnclient_init start<br />[sudo] password for gu: <br />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<br />Failed (insmod)</p></blockquote></div><p>хотя он есть. <br /></p><div class="quotebox"><blockquote><p>gu@kat:~$ sudo ls -l /lib/modules/3.2.0-4-686-pae/CiscoVPN/cisco_ipsec.ko <br />-rw-r--r-- 1 root root 981648 Фев 20 18:41 /lib/modules/3.2.0-4-686-pae/CiscoVPN/cisco_ipsec.ko</p></blockquote></div><p>но он видимо не загружается.. что делать?</p><br /><p>как следствие<br /></p><div class="quotebox"><blockquote><p>gu@kat:~$ sudo /etc/init.d/vpnclient_init status<br />[sudo] password for gu: <br />Module&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Size&nbsp; Used by</p><p>Status Failed (lsmod cisco_ipsec) - The VPN module is not loaded.</p><p>cipsec0: error fetching interface information: Device not found</p><p>Status Failed (ifconfig cipsec0) - The virtual interface is not present.<br />gu@kat:~$ sudo modprobe cisco_ipsec<br />FATAL: Module cisco_ipsec not found.<br />gu@kat:~$ sudo ls -l /lib/modules/3.2.0-4-686-pae/CiscoVPN/cisco_ipsec.ko <br />-rw-r--r-- 1 root root 981648 Фев 20 18:41 /lib/modules/3.2.0-4-686-pae/CiscoVPN/cisco_ipsec.ko<br />gu@kat:~$</p></blockquote></div><br /><p><strong>pitdron</strong>, выходите на связь, вы по ходу единственный кто использует cisco vpn клиент для linux</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-20T15:19:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=395438#p395438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=395434#p395434" />
			<content type="html"><![CDATA[<p><strong>pitdron</strong><br />установился без ошибок.<br />но ошибка при запуске, последний квотинг.</p><p>или нужно ребутиться?<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><blockquote><p>gu@kat:~$ cd /usr/src/</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:/usr/src$ sudo wget <a href="http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.02/vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz">http://projects.tuxx-home.at/ciscovpn/c … -k9.tar.gz</a><br />[sudo] password for gu: <br />--2014-02-20 18:34:36--&nbsp; <a href="http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.02/vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz">http://projects.tuxx-home.at/ciscovpn/c … -k9.tar.gz</a><br />Распознаётся projects.tuxx-home.at (projects.tuxx-home.at)... 188.65.79.164<br />Подключение к projects.tuxx-home.at (projects.tuxx-home.at)|188.65.79.164|:80... соединение установлено.<br />HTTP-запрос отправлен. Ожидание ответа... 200 OK<br />Длина: 2050813 (2,0M) [application/x-gzip]<br />Сохранение в каталог: ««vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz»».</p><p>100%[==============================================================================================================================&gt;] 2 050 813&nbsp; &nbsp; 951K/s&nbsp; &nbsp;за 2,1s&nbsp; &nbsp; </p><p>2014-02-20 18:34:38 (951 KB/s) - «vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz» saved [2050813/2050813]</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:/usr/src$ sudo vim ciscovpn.patch</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:~$ uname -a<br />Linux kat 3.2.0-4-686-pae #1 SMP Debian 3.2.54-2 i686 GNU/Linux</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:/usr/src$ sudo aptitude install linux-headers-3.2.0-4-686-pae linux-image-3.2.0-4-686-pae<br />Следующие НОВЫЕ пакеты будут установлены:&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; cpp-4.6{a} gcc-4.6{a} gcc-4.6-base{a} linux-headers-3.2.0-4-686-pae linux-headers-3.2.0-4-common{a} linux-kbuild-3.2{a} <br />0 пакетов обновлено, 6 установлено новых, 0 пакетов отмечено для удаления, и 0 пакетов не обновлено.<br />Необходимо получить 16,5 MB архивов. После распаковки 54,7 MB будет занято.<br />Хотите продолжить? [Y/n/?] Y<br />Получить: 1 <a href="http://ftp.ru.debian.org/debian/">http://ftp.ru.debian.org/debian/</a> wheezy/main gcc-4.6-base i386 4.6.3-14 [142 kB]<br />Получить: 2 <a href="http://ftp.ru.debian.org/debian/">http://ftp.ru.debian.org/debian/</a> wheezy/main cpp-4.6 i386 4.6.3-14 [4 654 kB]<br />Получить: 3 <a href="http://ftp.ru.debian.org/debian/">http://ftp.ru.debian.org/debian/</a> wheezy/main gcc-4.6 i386 4.6.3-14 [7 338 kB]<br />Получить: 4 <a href="http://ftp.ru.debian.org/debian/">http://ftp.ru.debian.org/debian/</a> wheezy/main linux-headers-3.2.0-4-common i386 3.2.54-2 [3 561 kB]<br />Получить: 5 <a href="http://ftp.ru.debian.org/debian/">http://ftp.ru.debian.org/debian/</a> wheezy/main linux-kbuild-3.2 i386 3.2.17-1 [233 kB]<br />Получить: 6 <a href="http://ftp.ru.debian.org/debian/">http://ftp.ru.debian.org/debian/</a> wheezy/main linux-headers-3.2.0-4-686-pae i386 3.2.54-2 [602 kB]<br />Получено 16,5 MБ в 3с (4 191 kБ/с)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />Выбор ранее не выбранного пакета gcc-4.6-base:i386.<br />(Чтение базы данных … на данный момент установлено 35379 файлов и каталогов.)<br />Распаковывается пакет gcc-4.6-base:i386 (из файла …/gcc-4.6-base_4.6.3-14_i386.deb) …<br />Выбор ранее не выбранного пакета cpp-4.6.<br />Распаковывается пакет cpp-4.6 (из файла …/cpp-4.6_4.6.3-14_i386.deb) …<br />Выбор ранее не выбранного пакета gcc-4.6.<br />Распаковывается пакет gcc-4.6 (из файла …/gcc-4.6_4.6.3-14_i386.deb) …<br />Выбор ранее не выбранного пакета linux-headers-3.2.0-4-common.<br />Распаковывается пакет linux-headers-3.2.0-4-common (из файла …/linux-headers-3.2.0-4-common_3.2.54-2_i386.deb) …<br />Выбор ранее не выбранного пакета linux-kbuild-3.2.<br />Распаковывается пакет linux-kbuild-3.2 (из файла …/linux-kbuild-3.2_3.2.17-1_i386.deb) …<br />Выбор ранее не выбранного пакета linux-headers-3.2.0-4-686-pae.<br />Распаковывается пакет linux-headers-3.2.0-4-686-pae (из файла …/linux-headers-3.2.0-4-686-pae_3.2.54-2_i386.deb) …<br />Настраивается пакет gcc-4.6-base:i386 (4.6.3-14) …<br />Настраивается пакет cpp-4.6 (4.6.3-14) …<br />Настраивается пакет gcc-4.6 (4.6.3-14) …<br />Настраивается пакет linux-headers-3.2.0-4-common (3.2.54-2) …<br />Настраивается пакет linux-kbuild-3.2 (3.2.17-1) …<br />Настраивается пакет linux-headers-3.2.0-4-686-pae (3.2.54-2) …</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:/usr/src$ sudo tar xzvf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz <br />vpnclient/<br />vpnclient/libvpnapi.so<br />vpnclient/vpnapi.h<br />vpnclient/cisco_cert_mgr<br />vpnclient/vpnclient<br />vpnclient/ipseclog<br />vpnclient/cvpnd<br />vpnclient/vpn_install<br />vpnclient/vpnclient_init<br />vpnclient/vpn_uninstall<br />vpnclient/driver_build.sh<br />vpnclient/sample.pcf<br />vpnclient/vpnclient.ini<br />vpnclient/license.txt<br />vpnclient/license.rtf<br />vpnclient/interceptor.c<br />vpnclient/linuxcniapi.c<br />vpnclient/linuxcniapi.h<br />vpnclient/vpn_ioctl_linux.h<br />vpnclient/IPSecDrvOS_linux.c<br />vpnclient/linux_os.h<br />vpnclient/frag.h<br />vpnclient/frag.c<br />vpnclient/linuxkernelapi.c<br />vpnclient/GenDefs.h<br />vpnclient/mtu.h<br />vpnclient/IPSecDrvOSFunctions.h<br />vpnclient/IPSecDrvOS_linux.h<br />vpnclient/Cniapi.h<br />vpnclient/unixcniapi.h<br />vpnclient/unixkernelapi.h<br />vpnclient/config.h<br />vpnclient/libdriver64.so<br />vpnclient/libdriver.so<br />vpnclient/Makefile<br />vpnclient/AMD-PATCH-README.txt</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:/usr/src$ ls -l<br />итого 2028<br />-rw-r--r-- 1 root root&nbsp; &nbsp; 9271 Фев 20 18:36 ciscovpn.patch<br />drwxr-xr-x 4 root root&nbsp; &nbsp; 4096 Фев 20 18:39 linux-headers-3.2.0-4-686-pae<br />drwxr-xr-x 4 root root&nbsp; &nbsp; 4096 Фев 20 18:39 linux-headers-3.2.0-4-common<br />lrwxrwxrwx 1 root root&nbsp; &nbsp; &nbsp; 23 Июн 24&nbsp; 2012 linux-kbuild-3.2 -&gt; ../lib/linux-kbuild-3.2<br />drwxr-xr-x 2 gu&nbsp; &nbsp;gu&nbsp; &nbsp; &nbsp; 4096 Май 20&nbsp; 2009 vpnclient<br />-rw-r--r-- 1 root root 2050813 Май 20&nbsp; 2009 vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:/usr/src$ patch -p0 &lt;ciscovpn.patch <br />patching file vpnclient/IPSecDrvOS_linux.c<br />patching file vpnclient/Makefile<br />patching file vpnclient/driver_build.sh<br />patching file vpnclient/frag.c<br />patching file vpnclient/interceptor.c<br />patching file vpnclient/linuxcniapi.c<br />patching file vpnclient/linuxkernelapi.c<br />patching file vpnclient/vpn_install</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:/usr/src$ cd vpnclient/</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:/usr/src/vpnclient$ sudo ./vpn_install <br />Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer<br />Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.</p><p>By installing this product you agree that you have read the<br />license.txt file (The VPN Client license) and will comply with<br />its terms. </p><br /><p>Directory where binaries will be installed [/usr/local/bin]</p><p>Automatically start the VPN service at boot time [yes]no</p><p>In order to build the VPN kernel module, you must have the<br />kernel headers for the version of the kernel you are running.</p><br /><p>Directory containing linux kernel source code [/lib/modules/3.2.0-4-686-pae/build]</p><p>* Binaries will be installed in &quot;/usr/local/bin&quot;.<br />* Modules will be installed in &quot;/lib/modules/3.2.0-4-686-pae/CiscoVPN&quot;.<br />* The VPN service will *NOT* be started automatically at boot time.<br />* Kernel source from &quot;/lib/modules/3.2.0-4-686-pae/build&quot; will be used to build the module.</p><p>Is the above correct [y]</p><p>Making module<br />make -C /lib/modules/3.2.0-4-686-pae/build SUBDIRS=/usr/src/vpnclient modules<br />make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-686-pae&#039;<br />&nbsp; CC [M]&nbsp; /usr/src/vpnclient/linuxcniapi.o<br />&nbsp; CC [M]&nbsp; /usr/src/vpnclient/frag.o<br />&nbsp; CC [M]&nbsp; /usr/src/vpnclient/IPSecDrvOS_linux.o<br />&nbsp; CC [M]&nbsp; /usr/src/vpnclient/interceptor.o<br />&nbsp; CC [M]&nbsp; /usr/src/vpnclient/linuxkernelapi.o<br />&nbsp; LD [M]&nbsp; /usr/src/vpnclient/cisco_ipsec.o<br />&nbsp; Building modules, stage 2.<br />&nbsp; MODPOST 1 modules<br />&nbsp; CC&nbsp; &nbsp; &nbsp; /usr/src/vpnclient/cisco_ipsec.mod.o<br />&nbsp; LD [M]&nbsp; /usr/src/vpnclient/cisco_ipsec.ko<br />make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-686-pae&#039;<br />Create module directory &quot;/lib/modules/3.2.0-4-686-pae/CiscoVPN&quot;.<br />Copying module to directory &quot;/lib/modules/3.2.0-4-686-pae/CiscoVPN&quot;.<br />Already have group &#039;bin&#039;</p><p>Creating start/stop script &quot;/etc/init.d/vpnclient_init&quot;.<br />&nbsp; &nbsp; /etc/init.d/vpnclient_init<br />Creating global config /etc/opt/cisco-vpnclient</p><p>Installing license.txt (VPN Client license) in &quot;/opt/cisco-vpnclient/&quot;:<br />&nbsp; &nbsp; /opt/cisco-vpnclient/license.txt</p><p>Installing bundled user profiles in &quot;/etc/opt/cisco-vpnclient/Profiles/&quot;:<br />* New Profiles&nbsp; &nbsp; &nbsp;: sample </p><p>Copying binaries to directory &quot;/opt/cisco-vpnclient/bin&quot;.<br />Adding symlinks to &quot;/usr/local/bin&quot;.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/vpnclient<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/cisco_cert_mgr<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/ipseclog<br />Copying setuid binaries to directory &quot;/opt/cisco-vpnclient/bin&quot;.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/cvpnd<br />Copying libraries to directory &quot;/opt/cisco-vpnclient/lib&quot;.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/lib/libvpnapi.so<br />Copying header files to directory &quot;/opt/cisco-vpnclient/include&quot;.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/include/vpnapi.h</p><p>Setting permissions.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/cvpnd (setuid root)<br />&nbsp; &nbsp; /opt/cisco-vpnclient (group bin readable)<br />&nbsp; &nbsp; /etc/opt/cisco-vpnclient (group bin readable)<br />&nbsp; &nbsp; /etc/opt/cisco-vpnclient/Profiles (group bin readable)<br />&nbsp; &nbsp; /etc/opt/cisco-vpnclient/Certificates (group bin readable)<br />* You may wish to change these permissions to restrict access to root.<br />* You must run &quot;/etc/init.d/vpnclient_init start&quot; before using the client.<br />* You will need to run this script every time you reboot your computer.</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:~$ sudo cp /files/docs/PROJECT\ РТ/vpn.pcf /etc/opt/cisco-vpnclient/Profiles/rtk.pcf</p></blockquote></div><div class="quotebox"><blockquote><p>gu@kat:~$ sudo /etc/init.d/vpnclient_init start<br />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<br />Failed (insmod)</p></blockquote></div></div></div>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-20T15:08:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=395434#p395434</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=395066#p395066" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>moshell пишет:</cite><blockquote><p>нашел эти патчи. правит .h исходники, но вылазиют другие траблы</p></blockquote></div><p>Для начала желательно озвучивать версии системы, ядра, ПО, а также приводить ошибки возникающие при попытке установки.</p><br /><p>Для начала <a href="http://www.qdesnic.ru/cisco_vpnclient.html">http://www.qdesnic.ru/cisco_vpnclient.html</a><br /><a href="http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-jaunty-jackalope-and-karmic-koala-64-bit/">http://www.lamnk.com/blog/vpn/how-to-in … la-64-bit/</a></p><p>Для успешной сборки модуля ядра необходимо установить исходные коды вашего ядра, компилятор gcc и утилиту make.</p><p>Затем качаете Cisco VPN client для linux (я брал поссылке из статьи <a href="http://projects.tuxx-home.at/ciscovpn/clients/linux/4.8.02/vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz">http://projects.tuxx-home.at/ciscovpn/c … -k9.tar.gz</a> ) и распаковываете его ( tar xzvf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz ).</p><p>Сохраняете текст выше приведенного патча в файле ciscovpn.patch и накладываете его на распакованный клиент<br /></p><div class="codebox"><pre><code>patch -p0 &lt;ciscovpn.patch</code></pre></div><p>Должны получить следующее<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">gentoo tmp # patch -p0 &lt;ciscovpn.patch<br />patching file vpnclient/IPSecDrvOS_linux.c<br />patching file vpnclient/Makefile<br />patching file vpnclient/driver_build.sh<br />patching file vpnclient/frag.c<br />patching file vpnclient/interceptor.c<br />patching file vpnclient/linuxcniapi.c<br />patching file vpnclient/linuxkernelapi.c<br />patching file vpnclient/vpn_install</div><br />Затем переходите в папку vpnclient и запускаете vpn_install</p><p>Должны получить примерно такую картину<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">gentoo tmp # cd vpnclient<br />gentoo vpnclient # ./vpn_install<br />Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer<br />Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.</p><p>By installing this product you agree that you have read the<br />license.txt file (The VPN Client license) and will comply with<br />its terms.</p><br /><p>Directory where binaries will be installed [/usr/local/bin]</p><p>Automatically start the VPN service at boot time [no]</p><p>In order to build the VPN kernel module, you must have the<br />kernel headers for the version of the kernel you are running.</p><br /><p>Directory containing linux kernel source code [/lib/modules/3.7.10-gentoo/build]</p><p>* Binaries will be installed in &quot;/usr/local/bin&quot;.<br />* Modules will be installed in &quot;/lib/modules/3.7.10-gentoo/CiscoVPN&quot;.<br />* The VPN service will *NOT* be started automatically at boot time.<br />* Kernel source from &quot;/lib/modules/3.7.10-gentoo/build&quot; will be used to build th<br />e module.</p><p>Is the above correct [y]</p><p>Making module<br />/usr/bin/make -C /lib/modules/3.7.10-gentoo/build SUBDIRS=/root/tmp/vpnclient mo<br />dules<br />make[1]: Entering directory `/usr/src/linux-3.7.10-gentoo&#039;<br />&nbsp; CC [M]&nbsp; /root/tmp/vpnclient/linuxcniapi.o<br />&nbsp; CC [M]&nbsp; /root/tmp/vpnclient/frag.o<br />&nbsp; CC [M]&nbsp; /root/tmp/vpnclient/IPSecDrvOS_linux.o<br />&nbsp; CC [M]&nbsp; /root/tmp/vpnclient/interceptor.o<br />&nbsp; CC [M]&nbsp; /root/tmp/vpnclient/linuxkernelapi.o<br />&nbsp; LD [M]&nbsp; /root/tmp/vpnclient/cisco_ipsec.o<br />&nbsp; Building modules, stage 2.<br />&nbsp; MODPOST 1 modules<br />&nbsp; CC&nbsp; &nbsp; &nbsp; /root/tmp/vpnclient/cisco_ipsec.mod.o<br />&nbsp; LD [M]&nbsp; /root/tmp/vpnclient/cisco_ipsec.ko<br />make[1]: Leaving directory `/usr/src/linux-3.7.10-gentoo&#039;<br />Copying module to directory &quot;/lib/modules/3.7.10-gentoo/CiscoVPN&quot;.<br />Already have group &#039;bin&#039;</p><p>Creating start/stop script &quot;/etc/init.d/vpnclient_init&quot;.<br />&nbsp; &nbsp; /etc/init.d/vpnclient_init<br />Creating global config /etc/opt/cisco-vpnclient</p><p>Installing license.txt (VPN Client license) in &quot;/opt/cisco-vpnclient/&quot;:<br />&nbsp; &nbsp; /opt/cisco-vpnclient/license.txt</p><p>Installing bundled user profiles in &quot;/etc/opt/cisco-vpnclient/Profiles/&quot;:<br />* New Profiles&nbsp; &nbsp; &nbsp;: sample</p><p>Copying binaries to directory &quot;/opt/cisco-vpnclient/bin&quot;.<br />Adding symlinks to &quot;/usr/local/bin&quot;.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/vpnclient<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/cisco_cert_mgr<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/ipseclog<br />Copying setuid binaries to directory &quot;/opt/cisco-vpnclient/bin&quot;.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/cvpnd<br />Copying libraries to directory &quot;/opt/cisco-vpnclient/lib&quot;.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/lib/libvpnapi.so<br />Copying header files to directory &quot;/opt/cisco-vpnclient/include&quot;.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/include/vpnapi.h</p><p>Setting permissions.<br />&nbsp; &nbsp; /opt/cisco-vpnclient/bin/cvpnd (setuid root)<br />&nbsp; &nbsp; /opt/cisco-vpnclient (group bin readable)<br />&nbsp; &nbsp; /etc/opt/cisco-vpnclient (group bin readable)<br />&nbsp; &nbsp; /etc/opt/cisco-vpnclient/Profiles (group bin readable)<br />&nbsp; &nbsp; /etc/opt/cisco-vpnclient/Certificates (group bin readable)<br />* You may wish to change these permissions to restrict access to root.<br />* You must run &quot;/etc/init.d/vpnclient_init start&quot; before using the client.<br />* You will need to run this script every time you reboot your computer.<br />gentoo vpnclient #</div></p></div></div>]]></content>
			<author>
				<name><![CDATA[pitdron]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26039</uri>
			</author>
			<updated>2014-02-19T06:42:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=395066#p395066</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394920#p394920" />
			<content type="html"><![CDATA[<p><strong>pitdron</strong>, я к сожалению (или к счастью) ни разу не программист.<br />можно чуть подробнее?</p><p>Вам нужна была 4я версия или 5я?</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-18T14:47:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394920#p394920</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394677#p394677" />
			<content type="html"><![CDATA[<p>У меня под gentoo клиент vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz под ядро 3.7.10 собралось без ошибок&nbsp; с таким патчем:</p><div class="codebox"><pre><code>diff -urbN vpnclient.orig/IPSecDrvOS_linux.c vpnclient/IPSecDrvOS_linux.c
--- vpnclient.orig/IPSecDrvOS_linux.c    2008-06-23 20:59:12.000000000 +0400
+++ vpnclient/IPSecDrvOS_linux.c    2014-02-17 20:33:14.000000000 +0400
@@ -12,7 +12,9 @@
 *
 ***************************************************************************/
 #include &lt;linux/version.h&gt;
-#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,33)
+#include &lt;generated/autoconf.h&gt;
+#elif LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)
 #include &lt;linux/autoconf.h&gt;
 #else
 #include &lt;linux/config.h&gt;
diff -urbN vpnclient.orig/Makefile vpnclient/Makefile
--- vpnclient.orig/Makefile    2008-06-23 20:59:12.000000000 +0400
+++ vpnclient/Makefile    2014-02-17 20:33:14.000000000 +0400
@@ -12,7 +12,7 @@
 SOURCE_OBJS := linuxcniapi.o frag.o IPSecDrvOS_linux.o interceptor.o linuxkernelapi.o
 
 ifeq ($(SUBARCH),x86_64)
-CFLAGS += -mcmodel=kernel -mno-red-zone
+EXTRA_CFLAGS += -mcmodel=kernel -mno-red-zone
 NO_SOURCE_OBJS := libdriver64.so
 else
 NO_SOURCE_OBJS := libdriver.so
diff -urbN vpnclient.orig/driver_build.sh vpnclient/driver_build.sh
--- vpnclient.orig/driver_build.sh    2008-06-23 20:59:12.000000000 +0400
+++ vpnclient/driver_build.sh    2014-02-17 20:33:42.000000000 +0400
@@ -49,6 +49,9 @@
 2.[56].*)
     make &quot;KERNEL_SOURCES=${KSRCDIR}&quot;
     ;;
+3.*.*)
+    make &quot;KERNEL_SOURCES=${KSRCDIR}&quot;
+    ;;
 *)
     $CC $CFLAGS $INCLUDES -c linuxcniapi.c
     $CC $CFLAGS $INCLUDES -c interceptor.c
diff -urbN vpnclient.orig/frag.c vpnclient/frag.c
--- vpnclient.orig/frag.c    2008-06-23 20:59:12.000000000 +0400
+++ vpnclient/frag.c    2014-02-17 20:33:14.000000000 +0400
@@ -1,5 +1,7 @@
 #include &lt;linux/version.h&gt;
-#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,33)
+#include &lt;generated/autoconf.h&gt;
+#elif LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)
 #include &lt;linux/autoconf.h&gt;
 #else
 #include &lt;linux/config.h&gt;
@@ -22,7 +24,7 @@
 #include &quot;frag.h&quot;
 
 #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,22)
-#define SKB_IPHDR(skb) ((struct iphdr*)skb-&gt;network_header)
+#define SKB_IPHDR(skb) ((struct iphdr*)skb_network_header)
 #else
 #define SKB_IPHDR(skb) skb-&gt;nh.iph
 #endif
diff -urbN vpnclient.orig/interceptor.c vpnclient/interceptor.c
--- vpnclient.orig/interceptor.c    2009-05-20 17:16:34.000000000 +0400
+++ vpnclient/interceptor.c    2014-02-17 20:33:14.000000000 +0400
@@ -9,7 +9,9 @@
 * This module implements the linux driver.
 ***************************************************************************/
 #include &lt;linux/version.h&gt;
-#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,33)
+#include &lt;generated/autoconf.h&gt;
+#elif LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)
 #include &lt;linux/autoconf.h&gt;
 #else
 #include &lt;linux/config.h&gt;
@@ -116,6 +118,14 @@
 };
 #endif
 
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,31)
+static struct net_device_ops interceptor_netdev_ops = {
+ .ndo_start_xmit = interceptor_tx,
+ .ndo_do_ioctl = interceptor_ioctl,
+ .ndo_get_stats = interceptor_stats,
+};
+#endif
+
 static struct notifier_block interceptor_notifier = {
     .notifier_call = handle_netdev_event,
 };
@@ -129,9 +139,13 @@
 {
     ether_setup(dev);
 
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,31)
+    dev-&gt;netdev_ops = &amp;interceptor_netdev_ops;
+#else
     dev-&gt;hard_start_xmit = interceptor_tx;
     dev-&gt;get_stats = interceptor_stats;
     dev-&gt;do_ioctl = interceptor_ioctl;
+#endif
 
     dev-&gt;mtu = ETH_DATA_LEN-MTU_REDUCTION;
     kernel_memcpy(dev-&gt;dev_addr, interceptor_eth_addr,ETH_ALEN);
@@ -243,6 +257,10 @@
     int rc = -1;
     int i = 0;
 
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,31)
+    struct net_device_ops * tmp_ops;
+#endif
+
     if (!supported_device(dev))
     {
         goto exit_gracefully;
@@ -268,9 +286,14 @@
     Bindings[i].original_mtu = dev-&gt;mtu;
 
     /*replace the original send function with our send function */
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,31)
+    Bindings[i].InjectSend = dev-&gt;netdev_ops-&gt;ndo_start_xmit;
+    tmp_ops = (struct net_device_ops *) dev-&gt;netdev_ops;
+    tmp_ops-&gt;ndo_start_xmit = replacement_dev_xmit;
+#else
     Bindings[i].InjectSend = dev-&gt;hard_start_xmit;
     dev-&gt;hard_start_xmit = replacement_dev_xmit;
-
+#endif
     /*copy in the ip packet handler function and packet type struct */
     Bindings[i].InjectReceive = original_ip_handler.orig_handler_func;
     Bindings[i].pPT = original_ip_handler.pt;
@@ -286,12 +309,21 @@
     int rc = -1;
     BINDING *b;
 
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,31)
+    struct net_device_ops * tmp_ops;
+#endif
+
     b = getbindingbydev(dev);
 
     if (b)
     {   
         rc = 0;
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,31)
+        tmp_ops = (struct net_device_ops *) dev-&gt;netdev_ops;
+        tmp_ops-&gt;ndo_start_xmit = b-&gt;InjectSend;
+#else
         dev-&gt;hard_start_xmit = b-&gt;InjectSend;
+#endif
         kernel_memset(b, 0, sizeof(BINDING));
     }
     else
@@ -637,19 +669,26 @@
 
     reset_inject_status(&amp;pBinding-&gt;recv_stat);
 #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,22)
-    if (skb-&gt;mac_header)
+    if (skb_mac_header_was_set(skb))
 #else
     if (skb-&gt;mac.raw)
 #endif
     {
 #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,22)
-        hard_header_len = skb-&gt;data - skb-&gt;mac_header;
+        hard_header_len = skb-&gt;data - skb_mac_header(skb);
 #else
         hard_header_len = skb-&gt;data - skb-&gt;mac.raw;
 #endif
         if ((hard_header_len &lt; 0) || (hard_header_len &gt; skb_headroom(skb)))
         {
             printk(KERN_DEBUG &quot;bad hh len %d\n&quot;, hard_header_len);
+
+            printk(KERN_DEBUG &quot;bad hh len %d, mac: %ld, data: %p, head: %p\n&quot;,
+                hard_header_len,
+                (long) skb-&gt;mac_header,
+                skb-&gt;data,
+                skb-&gt;head);
+
             hard_header_len = 0;
         }
     }
@@ -664,7 +703,7 @@
     {
     case ETH_HLEN:
 #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,22)
-        CniNewFragment(ETH_HLEN, skb-&gt;mac_header, &amp;MacHdr, CNI_USE_BUFFER);
+        CniNewFragment(ETH_HLEN, skb_mac_header(skb), &amp;MacHdr, CNI_USE_BUFFER);
 #else
         CniNewFragment(ETH_HLEN, skb-&gt;mac.raw, &amp;MacHdr, CNI_USE_BUFFER);
 #endif
@@ -782,7 +821,7 @@
 #endif //LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,4,0)
     reset_inject_status(&amp;pBinding-&gt;send_stat);
 #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,22)
-    hard_header_len = skb-&gt;network_header - skb-&gt;data;
+    hard_header_len = skb_network_header(skb) - skb-&gt;data;
 #else
     hard_header_len = skb-&gt;nh.raw - skb-&gt;data;
 #endif
diff -urbN vpnclient.orig/linuxcniapi.c vpnclient/linuxcniapi.c
--- vpnclient.orig/linuxcniapi.c    2008-06-23 20:59:12.000000000 +0400
+++ vpnclient/linuxcniapi.c    2014-02-17 20:33:14.000000000 +0400
@@ -10,7 +10,9 @@
  * Linux Interceptor driver.
  ***************************************************************************/
 #include &lt;linux/version.h&gt;
-#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)
+#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,33)
+#include &lt;generated/autoconf.h&gt;
+#elif LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)
 #include &lt;linux/autoconf.h&gt;
 #else
 #include &lt;linux/config.h&gt;
@@ -338,8 +340,8 @@
     skb-&gt;ip_summed = CHECKSUM_UNNECESSARY;
 
 #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,22)
-    skb-&gt;network_header = (sk_buff_data_t) skb-&gt;data;
-    skb-&gt;mac_header = (sk_buff_data_t)pMac;
+    skb_reset_network_header(skb);
+    skb_set_mac_header(skb, (int)((void *)pMac - (void *)skb-&gt;data));
 #else
     skb-&gt;nh.iph = (struct iphdr *) skb-&gt;data;
     skb-&gt;mac.raw = pMac;
@@ -478,8 +480,8 @@
     skb-&gt;dev = pBinding-&gt;pDevice;
 
 #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,22)
-    skb-&gt;mac_header = (sk_buff_data_t)pMac;
-    skb-&gt;network_header = (sk_buff_data_t)pIP;
+    skb_set_mac_header(skb, (int)((void *)pMac - (void *)skb-&gt;data));
+    skb_set_network_header(skb, (int)((void *)pIP - (void *)skb-&gt;data));
 #else
     skb-&gt;mac.raw = pMac;
     skb-&gt;nh.raw = pIP;
@@ -487,8 +489,9 @@
 
     /*ip header length is in 32bit words */
 #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,22)
-    skb-&gt;transport_header = (sk_buff_data_t)
-      (pIP + (((struct iphdr*)(skb-&gt;network_header))-&gt;ihl * 4));
+    skb_set_transport_header(skb,
+        ((int)((void *)pIP - (void *)skb-&gt;data) +
+           (((struct iphdr*)(skb_network_header(skb)))-&gt;ihl * 4)));
 #else
     skb-&gt;h.raw = pIP + (skb-&gt;nh.iph-&gt;ihl * 4);
 #endif
diff -urbN vpnclient.orig/linuxkernelapi.c vpnclient/linuxkernelapi.c
--- vpnclient.orig/linuxkernelapi.c    2008-06-23 20:59:12.000000000 +0400
+++ vpnclient/linuxkernelapi.c    2014-02-17 20:33:14.000000000 +0400
@@ -9,7 +9,7 @@
     void*rc = kmalloc(size, GFP_ATOMIC);
     if(NULL == rc)
     {
-        printk(&quot;&lt;1&gt; os_malloc size %d failed\n&quot;,size);
+        printk(&quot;&lt;1&gt; os_malloc size %ld failed\n&quot;, (long)size);
     }
 
     return rc;
diff -urbN vpnclient.orig/vpn_install vpnclient/vpn_install
--- vpnclient.orig/vpn_install    2008-06-23 20:59:12.000000000 +0400
+++ vpnclient/vpn_install    2014-02-17 20:36:45.000000000 +0400
@@ -320,6 +320,9 @@
 2.[56].*)
     MODULE_NAME=cisco_ipsec.ko
     ;;
+3.*.*)
+    MODULE_NAME=cisco_ipsec.ko
+    ;;
 *)
     MODULE_NAME=cisco_ipsec
     ;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[pitdron]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26039</uri>
			</author>
			<updated>2014-02-17T13:03:58Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394677#p394677</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394072#p394072" />
			<content type="html"><![CDATA[<p>нашел эти патчи. правит .h исходники, но вылазиют другие траблы</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-14T19:32:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394072#p394072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394070#p394070" />
			<content type="html"><![CDATA[<p><a href="http://www.linux.org.ru/forum/desktop/8526063">http://www.linux.org.ru/forum/desktop/8526063</a></p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-14T19:25:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394070#p394070</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394052#p394052" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pitdron пишет:</cite><blockquote><p>Cisco VPN Client пробовали?</p><p><a href="http://software.cisco.com/download/type.html?mdfid=281940729&amp;flowid=4465&amp;softwareid=282364316">http://software.cisco.com/download/type … =282364316</a></p></blockquote></div><p>попробовал. кучу ошибок выдает при компиляции в файлах .h<br />исправляя одни вылазиют другие, я не кодер.. нет желания ковырять код</p><p>к примеру<br />#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,15)<br />#include &lt;linux/autoconf.h&gt;</p><p>он давно уже перенесен в generated/autoconf.h</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-14T18:45:10Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394052#p394052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394010#p394010" />
			<content type="html"><![CDATA[<p>попробовал вот это<br /><a href="http://baheyeldin.com/cisco/converting-cisco-easy-vpn-pcf-files-linux-vpnc-configuration-format.html">http://baheyeldin.com/cisco/converting- … ormat.html</a></p><p>ввожу пароль, получаю<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">gu@kat:~$ sudo vpnc rtk<br />Enter password for userpassword@domain@blablabla: <br />vpnc: peer selected (single) DES as &quot;encryption&quot; method.<br />This algorithm is considered too weak today<br />If your vpn concentrator admin still insists on using DES<br />use the &quot;--enable-1des&quot; option.</div></p><p>пробую с предложенной опцией<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">gu@kat:~$ sudo vpnc --enable-1des rtk<br />Enter password for userpassword@domain@blablabla: <br />Password for VPN userpassword@domain@drugoe_blablabla: </div><br />просит еще какой то дополнительный пароль.</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-14T17:02:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394010#p394010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=393914#p393914" />
			<content type="html"><![CDATA[<p>Cisco VPN Client пробовали?</p><p><a href="http://software.cisco.com/download/type.html?mdfid=281940729&amp;flowid=4465&amp;softwareid=282364316">http://software.cisco.com/download/type … =282364316</a></p>]]></content>
			<author>
				<name><![CDATA[pitdron]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26039</uri>
			</author>
			<updated>2014-02-14T12:18:01Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=393914#p393914</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[vpn client или как проще?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=393907#p393907" />
			<content type="html"><![CDATA[<p>на офтопике есть vpn клиент от cisco для удаленной работы.<br />есть файл конфигурации<br /></p><div class="codebox"><pre><code>gu@kat:~$ cat vpn.pcf 
[main]
Description=
Host=xxxxxxxxxxxxxxxxxxxxxxxxxx
AuthType=1
GroupName=xxxxxxxxxxxxxxxxx
GroupPwd=
enc_GroupPwd=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
EnableISPConnect=0
ISPConnectType=0
ISPConnect=sky
ISPPhonebook=C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk
ISPCommand=
Username=userpassword@domain
SaveUserPassword=0
UserPassword=
enc_UserPassword=
NTDomain=
EnableBackup=0
BackupServer=
EnableMSLogon=1
MSLogonType=0
EnableNat=1
TunnelingMode=0
TcpTunnelingPort=10000
CertStore=0
CertName=
CertPath=
CertSubjectName=
CertSerialHash=00000000000000000000000000000000
SendCertChain=0
PeerTimeout=90
EnableLocalLAN=0
EnableSplitDNS=1
gu@kat:~$ </code></pre></div><p>зная вот эти параметры, как можно осуществить vpn на debian&#039;e?<br />утилита или пакет какой?</p>]]></content>
			<author>
				<name><![CDATA[moshell]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20870</uri>
			</author>
			<updated>2014-02-14T11:21:15Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=393907#p393907</id>
		</entry>
</feed>
