Installing Cisco VPN Client on Ubuntu 9.04

September 19th, 2009

Tried to install Cisco VPN Client and I received this error

In file included from /usr/src/vpnclient/Cniapi.h:15,
from /usr/src/vpnclient/linuxcniapi.c:31:
/usr/src/vpnclient/GenDefs.h:113: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was

Here I found how to solve this problem. The main idea is that in the 2.6.4 kernel the “init_net” symbol is exported using EXPORT_SYMBOL() instead of EXPORT_SYMBOL_GPL().

To patch the vpnclient try

wget http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-2.6.24-final.diff
patch < ./vpnclient-linux-2.6.24-final.diff

Also, check that there is a new version of ciscovpn that works without any patch.

Socks server on Linux

September 19th, 2009

I was needing to install a socks proxy server on a Linux system so after a short research on Google, I found ss5 and proceed to install it.

Because I’m using Ubuntu on my server, I had to build the software manually.

After I downloaded the .tar.gz archive, I unpacked it by using

tar xzf ss5-3.7.9-1.tar.gz

And then by using

./configure

in the ss5-3.7.9 directory, I have configured the install scripts.

The only error that I received from configure was

checking for security/pam_misc.h… no
configure: error: *** Some of the headers weren’t found ***

And I fixed it by installing the development libraries of PAM

# apt-get install libpam0g-dev libpam-devperm

Shortly after that I found that I need libssl-dev package and I have installed it. But after that, make crashed with an error message that sounds like

relocation R_X86_64_32 against `a local symbol’ can not be used
when making a shared object; recompile with -fPIC .libs/assert.o: could not
read symbols: Bad value

I had to google because I never saw this error message and I found this page. That error comes from broken compiler and I had to force compiler to use -fPIC CFLAG by using

CFLAGS=-fPIC ./configure

Finally, it worked and I got my software compilled. After the successful build I installed ss5 by using

make install

You may erase all the config file and keep

auth YOUR_IP/32 – -

permit -        0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -

And now, run ss5 and have fun using your socks5 proxy!