Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dysa
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 13
Join Date: May 2010
Location: Beijing
Default OpenVPN?

Has anyone figured out how to get OpenVPN working on a Motorola Milestone?

I tried to using the OpenVPN Installer and OpenVPN Settings apps from the Android Market but was not able to get it working.
 
dysa
Old
#2  
Junior Member - OP
Thanks Meter 1
Posts: 13
Join Date: May 2010
Location: Beijing
Default Made some progress but still not working...

I've managed to install the OpenVPN binary to /system/bin.

Got a Motorola Milestone Tun.ko driver from, http://code.google.com/p/sbdtools/downloads/list. It's been copied to /system/lib/modules. I've been able to enable it using the insmod command in adb shell. Verified it was running with the lsmod command.

I've moved my openvpn .ovpn config files to my SD, /sdcard/openvpn folder. Started the OpenVPN Settings app, configured the tun and path settings.

Then I started my connection and was able to obtain an IP address.

BUT... still not able to surf to Youtube or other China blocked sites.

The upload & download stats appear to be not moving, even when I try to surf to one of these websites (up: 0.02kBps - down: 0.02 kBps).

Will continue at it for some more, but if anyone is able to help, that would be much appreciated.
 
pointdexler
Old
#3  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Jan 2009
Location: Beijing
Quote:
Originally Posted by dysa View Post
I've managed to install the OpenVPN binary to /system/bin.

Got a Motorola Milestone Tun.ko driver from, http://code.google.com/p/sbdtools/downloads/list. It's been copied to /system/lib/modules. I've been able to enable it using the insmod command in adb shell. Verified it was running with the lsmod command.

I've moved my openvpn .ovpn config files to my SD, /sdcard/openvpn folder. Started the OpenVPN Settings app, configured the tun and path settings.

Then I started my connection and was able to obtain an IP address.

BUT... still not able to surf to Youtube or other China blocked sites.

The upload & download stats appear to be not moving, even when I try to surf to one of these websites (up: 0.02kBps - down: 0.02 kBps).

Will continue at it for some more, but if anyone is able to help, that would be much appreciated.
Hi, same here.. I am based in China and have done the steps you mentioned... I can connect to OpenVPN but there is no traffic.. I subscribe to 12vpn and called the helpdesk, they told me it could be due to DNS poisoning.. but really doubt that.. I got it working like once the first time but never did again...
Currently using : iphone 3GS / Nokia N97 /
 
ophiceninja
Old
#4  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Sep 2010
Default @ pointdexler & dysa

I've also installed open VPN to system/bin on the droid 2 running 2.2.19. My config and certs have been transfered to /mnt/sdcard/openvpn and I've also setup my config in the open VPN GUI (available on the droid market) to point to this directory for my config.

After launching the app and attempting to connect, I get an error message that the command was not successful (the error is a bit more verbose than that).

I did find another app on Droid market that got me a bit closer to connecting called openVPN settings. The error output on this app is much more verbose and aids troubleshooting better. I was able to workout all of the application problems, but my issue now is with the tun.ko module. It appears that the downloadable modules online are for 2.1 and prior as none seem to work with 2.2. I have the module copied to /system/lib/modules and the app (openvpn settings) has a feature that loads the module (either by modprobe or insmod, you can choose). My problem now is that the tun.ko module seems to be wrong as I keep getting the error "Fatal: cannot allocate tun/tap dev dynamically."

Have either of you come accross this same issue?
 
ZS-Man
Old
#5  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Jun 2009
Hi, I have running OpenVPN without problems. I use OpenVPN Settings from market, tun.ko on /sdcard and openvpn binary in /system/xbin. Make symlink ln -s /system/xbin /system/xbin/bb. Both files are in this archive http://www.android-hilfe.de/attachme...nd_openvpn.zip. Working openvpn.ovpn + CA files in /sdcard/openvpn. In OpenVPN Settings set up Load module using - insmod and Path to module /sdcard/tun.ko. And OpenVPN is working. If not, try run from konsole : insmod /sdcard/tun.ko
Motorola Light 2.1 ROM + JIT


On CyanogenMod 6 for Milestone you need only tun.ko. No openvpn binary, no create symlink. In OpenVPN Settings only set up insmod and path to tun.ko.

(and sorry for my english )
 
ophiceninja
Old
#6  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Sep 2010
Default OpenVPN

No worries ZS-Man, your English is much better than some people who are born speaking the language.

I unfortunately already tried loading the kernel module by command line with root (#) access and it gives me this error message:

insmod: init_module '/data/tun2.ko' failed (Exec format error)

I've tried many different versions of the tun.ko file available online. None seem to work with 2.2.20 OS (2.6.32 kernel)
 
ZS-Man
Old
#7  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Jun 2009
Android version (2.1 or 2.2) is not important, only tun.ko must be compiled from same sources as kernel. You must search module for milestone2, or compile it by yourself from milestone2 kernel sources. Another nice app is Tunneldroid , it has log viewer - good for debugging openvpn connection.
 
constantinexx
Old
#8  
constantinexx's Avatar
Member
Thanks Meter 2
Posts: 76
Join Date: Jan 2011
Default help help help vpn issue

iam from a country that google does not support the market within
i installed the vpn and all works great market apps every thing but 3days later
the market wont open looks like the ip address from us has been blocked(internet sharing device located in us) and i was unable to open market again any way that i can chage the ip or howoften the company changes the ip address (cause its the same every time i connect vpn) or is there a way to use the vpn settings with another server provider than the freeopenvpn.com
where i can download another zip file with configuration to another server
help me please i ll die

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more

Serajr Power Toggles Brings Settings to the Small App World

Ever since the introduction of multi-window with things like Cornerstone and … more