HOWTO: openvpn on android (rooted LG Optimus One P500)



1) install Android OpenVPN application:
Android OpenVPN setup + StrongVPN
= great article with screenshots :-)

2) LG Optimus One is missing TUN module, we need to download it: see thread from forum.xda-developers.com or direct download

This module I tested and worked on stock LG kernel 2.6.35.10-perf & stock LG ROM V20G (Android 2.3.3)

3 a) there is possibility to directly load tun.ko module in OpenVPN application settings

3 b) or install TUN module in LG filesystem + create script which will load module on boot
for ssh / sftp connection use eg. SSHDroidPro application

a) check where /system is mounted
df -h | grep system

b) remount /system (which is read only) for writing
mount -o remount,rw /dev/block/mtdblock1 /system

c) copy tun.ko to /system/lib/modules/
append line to file /system/etc/install-recovery.sh :
insmod /system/lib/modules/tun.ko

remount /system read only
mount -o remount,ro /dev/block/mtdblock1 /system

Attached files: tun.zip

Last update:
2012-02-19 22:53
Author:
Daniel
Revision:
1.11
Average rating: 5 (2 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.