eric’s extremeboredom

adventures into and out of extreme boredom.

Installing vtun on clarkconnect

I’ve been setting up vtun tunnels to friend’s local networks to play around with linux routing. A few of them are using ClarkConnect routers. It’s not nearly as easy to get vtun working on clarkconnect compared to Gentoo, which involves entering the very complicated “emerge vtun” command and watching everything just work, but I managed to figured it out :).

This is assuming you have the latest version of clarkconnect, based on redhat 9. Much of this guide more than likely also applys to “Red Hat Linux 9″ it’s self but I haven’t tested it. You shouldn’t be using Red Hat 9 anymore anyway (if you really liked Red Hat 9 switch to Fedora, otherwise try Gentoo).

# cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)

1. Add the Fedora Legacy apt repository for Red Hat 9 to /etc/apt/sources.list

rpm http://download.fedoralegacy.org/apt redhat/9/i386 os updates legacy-utils

2. Update the local package index

# apt-get update

3. Install dependencies that are avaliable through apt using it:

# apt-get install rpm-build autoconf automake openssl-devel bison 

4. Install remaining dependencies manually

# wget ftp://ftp.pbone.net/mirror/www.spenneberg.org/VPN/Tinc/lzo-1.08-rh9_1.i386.rpm
# wget ftp://ftp.pbone.net/mirror/www.spenneberg.org/VPN/Tinc/lzo-devel-1.08-rh9_1.i386.rpm
# wget ftp://mirror.pacific.net.au/linux/redhat/redhat/linux/9/en/os/i386/RedHat/RPMS/flex-2.5.4a-29.i386.rpm
# rpm -ivh lzo-1.08-rh9_1.i386.rpm lzo-devel-1.08-rh9_1.i386.rpm flex-2.5.4a-29.i386.rpm

Addional mirrors avaliable at:

7. Install the TUN Module

# wget http://vtun.sourceforge.net/tun/tun-1.1-6.rh72.i386.rpm
# rpm -ivh tun-1.1-6.rh72.i386.rpm

The RPM will tell you that it automatically added the module to /etc/modules.conf so it will be automatically loaded on boot.

6. Download, build and install the vtun source rpm

# wget http://mesh.dl.sourceforge.net/sourceforge/vtun/vtun-2.9.90-1.src.rpm
# rpmbuild --rebuild vtun-2.9.90-1.src.rpm

The RPM will be compiled and placed in /usr/src/redhat/RPMS/i386/

# cd /usr/src/redhat/RPMS/i386/
# rpm -ivh vtun-2.6-1.i386.rpm

7. Load the TUN Module

# modprobe tun

All done! I’ll post a guide next on how to do all this with Ubuntu Linux, as one person was running that.

Update: The guide for ubuntu is up here: http://extremeboredom.net/?postid=65


Categorized as Technology

Leave a Reply