You are on page 1of 7

OpenVPN Settings: Android Client for OpenVPN

1. Root your phone


Your Android phone as shipped allows user permissions only. You must gain root
access in order change system settings & file permissions. Rooting methods vary
according to phone model & version of Android.
2. Install Support Apps from Android Market (free)
BusyBox
OpenVPN Installer
OpenVPN Settings

3. Copy Config Files to Phone


Create a folder named 'openvpn' on SDCard
Copy all configuration files there.
Check that your *.ovpn files have no_spaces in name.
4. Make ovpn executable
Mount system folder as read/write & chmod 755 /system/xbin/openvpn
5. Configure OpenVPN Settings Client
Advanced - check 'load tun kernel module'
TUN modules settings - check 'Load module using insmod'
Path to tun module '/system/lib/modules/tun.ko'
Path to configurations '/sdcard/openvpn'
Path to openvpn binary '/system/xbin/openvpn'
Check 'Fix HTC Routes' (only for Android 2.2 'Froyo')
Go back to main screen of OpenVPN Settings

6. Connect to OpenVPN server


Check OpenVPN
Check your_server.ovpn
Slide down status bar & enter Username/Password, then OK
Status under your_server.ovpn should update after connected.

Additional steps (if required)


1. Update tun.ko File
The simplest method is to flash a custom kernel with built-in tun.ko support
These are specific to your device and Android version
2. Install Amon RA Recovery Tool
This will allow you to flash a custom kernel from SDCard
Always install the latest version of the Recovery Tool specific to your device.
3. Download modified system files
'openvpn' & 'iproute-wrapper.sh' and copy to /system/xbin.
4. Edit Config File(s)
Open your openvpn config file(s) in text editor & add the following as last line, then
save: 'iproute /system/xbin/iproute-wrapper.sh'.

More information on Android customization can be found at XDA Developers Forum.


XDA-Developers Forums

You might also like