Site Tools


openvpnandroid

This is an old revision of the document!


OpenVPN Client Support How to connect to OpenVPN server with Toshiba AC100? This method and all resources here is for original Android 2.2 (Froyo) on AC100 device.

For OpenVPN client you need: - Rooted AC100 device - My boot image (part6-10W.img, mirror) with kernel compiled with tun device support and tun.ko module (mirror) - nvflash from linux4tegra package - adb tool (part of Android SDK) - abootimg and new zImage (mirror) (only if you need repack boot image, for other models than AC100-10W) - android-openvpn-installer and android-openvpn-settings apks

## Boot image with kernel and tun.ko support (only for AC100-10W model!) Original kernel of AC100 doesn't compiled with tun.ko module. So I downloaded 2.2 kernel source codes (thanks to xandrster and his post) and compiled new zImage with tun.ko as a module. Every model of AC100 has different boot command line. I updated partition 6 (boot image) from my AC100-10W with abootimg, so users with AC100-10W model can flash my boot partition (part6-10W.img):

- download part6-10W.img - goto recovery mode (hold down the CTRL + ESC/back keys and power on the device)

- from linux4tegra/nvflash directory run: LD_LIBRARY_PATH=. ./nvflash –bl ../prebuilt/fastboot.stock.bin –go

- don't forget backup your partition 6: LD_LIBRARY_PATH=. ./nvflash -r –read 6 part6-backup.img

- install downloaded part6-10W.img LD_LIBRARY_PATH=. ./nvflash -r –download 6 path/to/downloaded/part6-10W.img

- long press power button and then turn on

## Update your boot image with new kernel (for all AC100 models) Because of different boot command line on every AC100 submodel, you need to update YOUR boot partition.

- download zImage kernel - goto recovery mode (hold down the CTRL + ESC/back keys and power on the device)

- from linux4tegra/nvflash directory run: LD_LIBRARY_PATH=. ./nvflash –bl ../prebuilt/fastboot.stock.bin –go

- get your partition 6: LD_LIBRARY_PATH=. ./nvflash -r –read 6 part6.img

- update zImage with abootimg tool (don't forget to make backup of part6.img before) abootimg -u part6.img -k zImage

- install new part6.img to device LD_LIBRARY_PATH=. ./nvflash -r –download 6 path/to/downloaded/part6.img

- long press power button and then turn on

## tun.ko module and OpenVPN install

- download tun.ko and place it to somewhere on storage (eg. /storage/openvpn/) adb shell mkdir /storage/openvpn/ adb push tun.ko /storage/openvpn/

- download and install android-openvpn-installer and android-openvpn-settings and install openvpn according to the manual. WARNING: because of ac100's incompatible version of ifconfig/route tools, it's needed to use busybox. You need to create /system/xbin/bb folder and symlink busybox to ifconfig, route commands:

adb shell $ su - # busybox mount -o rw,remount /system # busybox mkdir /system/xbin # busybox mkdir /system/xbin/bb # cd /system/xbin/bb/ # busybox ln -s /system/bin/busybox ifconfig # busybox ln -s /system/bin/busybox route # cd / # busybox mount -o ro,remount /system # exit $ exit

In openvpn-installer select “/usr/xbin/bb” as your ifconfig/route bin dir.

- put your openvpn-client.conf file with certificates to /storage/openvpn/

- run android-openvpn-settings, in the Advanced settings check “Load tun kernel module” and TUN module settings chose insmod and “/storage/openvpn/tun.ko” as a path to tun module.

- DONE. You can click to openvpn config file and connect.

openvpnandroid.1311807942.txt.gz · Last modified: 2011/07/28 01:05 by gilles