Tuesday, May 17, 2011

Fun with Adito VPN

I once saw a demo of Adito VPN on Hak5 and I was pretty impressed by it. Recently I had to install one and although it didn't go as smooth as in the video the install was still easy.

The first step was preparing the OS. In my case it was a Ubuntu. I needed to adapt my /etc/apt/sources.list so I could install partner repository software.

Our first part in preparing the OS is installing Sun Java

$sudo apt-get update
$sudo apt-get install sun-java6-bin sun-java6-jdk
$export JAVA_HOME=/usr/lib/jvm/java-6-sun
$export PATH=$PATH:$JAVA_HOME/bin

To test if java works correctly:
$java -version

The second step in preparing the OS is installing ant.
$sudo apt-get install ant

Now we come to the phase where we can install Adito.
$cd /opt
$wget http://downloads.sourceforge.net/project/openvpn-als/adito/adito-0.9.1/adito-0.9.1-bin.tar.gz (note: at time of writing this was the latest version.)
$sudo tar zxvf *.gz
$cd adito-0.9.1/
$sudo ant install

At a certain point in the installation you'll get the request to open a browser and open a session to http://server:28080/

This web-based wizard helps you configuring Adito. First I had to create a new certificate and choose a nice passphrase for it. The following page where the details of the certificate. After creating the certificate I created the administrative user and configured on which port the server has to listen for which interfaces. If you use a proxy, you can also configure this.

The last step was less easy to figure out. The normal procedure is:
$ant install-service
$ant start

The output to screen said that the start dynamically created a wrapper but eventually I got the following message back:
[exec] exec: 370: install/platforms/linux/x86/wrapper: not found

The solution to this problem was to have a look at /etc/init.d/adito in an editor.
The new script looks like this:
#!/bin/bash
#
export WRAPPER_CONF="/opt/adito-0.9.1/conf/wrapper.conf"
#exec /opt/adito-0.9.1/install/platforms/linux/adito $*
cd /opt/adito-0.9.1
ant start-using-java &

To start Adito VPN:
$sudo /etc/init.d/adito start

A nice resource for more information is http://www.8layer8.com

1 comment:

Unknown said...

I got to try this over the weekend and it worked great. Thank you very much.
us vpn