DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 5 of 5

Thread: OpenVPN on BB .5 - Who has it working?

  1. Junior Droid
    prochobo's Avatar
    Member #
    Join Date
    Dec 2009
    ' or 1=1 --

    OpenVPN on BB .5 - Who has it working?

    I love this ROM, but have never gotten OpenVPN to work. It doesn't seem like there's a tun.ko driver to load and I can't insmod or modprobe it. I can't find it while doing a search through the file system either.

    I remember seeing a tun.ko being included in BB in previous version's notes and I was wondering is there any way to get it to work with .5? I've had no problems running it in Cyanogen, but I like BB way better.
  2. Junior Droid
    Mikobiko's Avatar
    Member #
    Join Date
    Aug 2010
    Looking for the same thing, I am trying to get openvpn working on my droid, and probably going to end back up with Cyanogen, but really didn't like how slow it ran on my phone.
  3. Droid Newbie
    Jbchow's Avatar
    Member #
    Join Date
    Mar 2010
    Verizon Droid
    I have OpenVPN working. The tun adapter should be compiled into the kernel. if it is not feel free to get a p3droid kernel they have the tun adapter compiled into the kernel.
    I am going to assume you have some Android/OpenVPN knowledge. This includes how to generate keys and how to setup your server. If you need help with these steps let me know I can go into far more detail.
    The simple way to get it working is to download the OpenVPN Installer and the OpenVPN Settings both by Friedrich Schäuffelhu. Install OpenVPN Installer and then configure your settings by creating an OpenVPN folder on the root directory of your SD card. My config is listed at the end of this post.
    There is two problems that you can run into with OpenVPN. The first problem is that version that OpenVPN installer installed when I first used it was the newest version which has a bug. From what I have read the bug was created when the locations of the files OpenVPN calls were hard coded. There are two ways to solve this. Downgrade to the previous version or a version which does not have this problem. If you google “openvpn-android-2.1.tar.bz2” you should be able to find the forum where I found most of this information about this bug and download the OpenVPN binary. This should be pushed to the /system/xbin/ folder. The other solution is to create a Symbolic Link from the /system/xbin/ folder to /system/xbin/bb. (Command: ln -s /system/xbin /system/xbin/bb )
    The second problem you will run into is how OpenVPN deals with routing on android. When I setup my server on my windows box, I have it set to push the route, gateway and dns. These commands are not compatible with android. They have to be rewritten and put into the *.ovpn config file. So far I have not bothered to do this because I can’t imagine a time when I would ever want to route all my traffic from my phone to my home local network.

    This is the config. I am using. You will have to modify this script to match how you have your server setup.

    Dev tun //(I put in tap because I have a tap setup)
    Proto udp
    Remote (Your outside ip) (Your OpenVPN Port)
    Resolve-Retry 60
    Tls-auth /sdcard/OpenVPN/ta.key 1
    Ca /sdcard/OpenVPN/ca.crt
    Cert /sdcard/OpenVPN/(Your Cert Name).crt
    Key /sdcard/OpenVPN/(Your key Name).key
    Ns-cert-type server
    Cipher (openvpn cipher you used)
    Verb 3
    Log /sdcard/openvpn/openvpn.log //not needed but very very useful to debug problems
    Log-append /sdcard/openvpn/openvpn.log
    #route-up “/system/bin/sh/sdcard/openvpn/up.sh // noted below

    I was also told I needed an “up.sh” script to fix some sort of routing problem after the OpenVPN connection is disconnected. I am not sure if this script really does anything useful or not but I have included it in case it does something for you.
    You will need to chmod 755 this file in order to be able to execute it.

    /system/xbin/route del (your outside ip)

    Once you get to this point you should be all configured open OpenVPN Settings and click the OpenVPN check box. You should also see a box next to whatever you named your *.ovpn file. Check that box and OpenVPN Settings will launch openvpn with your config file. To disconnect uncheck the OpenVPN box.

    Hopefully this will get you up and running :-D
    Last edited by Jbchow; 10-27-2010 at 06:39 PM.
  4. Banned
    ZeroBarrier's Avatar
    Member #
    Join Date
    Apr 2010
    Motorola Droid
    Excellent first post Jbchow. It's hard to find a first poster that has more than just 2 brain cells to rub together! Ha.
  5. Droid Newbie
    Jbchow's Avatar
    Member #
    Join Date
    Mar 2010
    Verizon Droid
    Thank you,
    I've been around the forums for a while just new to posting for android. (Had a Windows Mobile HTC Touch Pro until the Motorola Droid came out. Instant convert - I never want to go back)

    It took me 3 hours to get OpenVPN up and working when I first tried. I'm glad to be able save others the same headache :-D

    I forgot to mentioned this before but if anyone knows the config lines to get the routing working I would love the option. (Although I cant imagine an application where I would need it)
    Last edited by Jbchow; 10-27-2010 at 07:46 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Got OpenVPN Running on 2.1!!!
    By prochobo in forum Android Hacks and Help
    Replies: 15
    Last Post: 04-01-2011, 06:14 AM
  2. OpenVPN on the droid
    By hanlong in forum Android Hacks and Help
    Replies: 14
    Last Post: 12-06-2010, 06:07 AM
  3. openvpn howto?
    By donhwyo in forum ChevyNo1
    Replies: 0
    Last Post: 06-22-2010, 09:29 AM
  4. OpenVPN in Sholes Mod
    By ruinah in forum Android Tech Support
    Replies: 3
    Last Post: 02-18-2010, 05:49 PM
  5. OpenVPN and Droid
    By prochobo in forum Android Hacks and Help
    Replies: 3
    Last Post: 12-22-2009, 05:27 AM

Search tags for this page

android openvpn log
android openvpn route
android openvpn route all traffic
bb openvpn
cm7 ta.key
cyanogenmode openvpn logile located
openvpn android log
openvpn android no configuration found

openvpn droid incredible download binaries

openvpn for bb
openvpn no configuration found
openvpn no configurations found
openvpn on bb
openvpn settings no configuration found
ovpn android .key permission
Click on a term to search our site for related topics.
Find us on Google+