Jul 16 2010

How to add openVPN to the Warp

Published by alaing at 8:55 am under How-To, Software

When deploying the PIKA Warp appliance in the field, there is a high probability that the Warp will be behind a firewall.  Unless there is a VPN client running on the Warp, the only way to access it is to open the ssh port on the firewall.  But the firewall (router) is not necessarily accessible by the Warp’s installers.

Warp openVPN

This post will go through the steps to incorporate openVPN into an image using PADS.

On your host linux PC, get the PADS version of choice.

Copy the openvpn package from http://svn.pikatech.com/pads/extra_packages/openvpn/ to <PADS directory>/package

Build the image and select that you wish to have the kernel customized

# make menuconfig

Once the ncurse menu is displayed, select

Kernel Configuration (Custom Kernel Options) —>

(X)   Custom Kernel Options

PADS Customize Kernel

Exit and continue the build process

# make

When the linux kernel ncurse menu window is shown, select the vtun device driver

Select Device Drivers —>

kernel_device_driver

Select Network Device support —>

Kernel Customization Network Device Support

Select <*> Universal TUN/TAP device driver support

Kernel Customization TUN/TAP device driver support

Exit from the kernel ncurses menu and continue the build process.

Create the image files

# make image

Burn the images unto the Warp.

Install openVPN (openVPN.net) onto your host PC (Linux or Windows) server that can be reached publicly.

Follow the instruction to create the certificate and configuration files for both the client and server ().  Copy the client files onto Warp under /etc/openvpn.

Start openVPN as a server on your host machine.  This is usually a service.

Start openVPN as a client on the Warp.

# openvpn /etc/openvpn/client.conf

If you do an ifconfig on the Warp, you should see a tun interface.

Ifconfig tun interface

No responses yet

Trackback URI | Comments RSS

Leave a Reply