• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root OpenVpn and Anyconnect

keyneom

Newbie
Has anyone been able to setup anyconnect or openvpn successfully? If so could you provide a bit of a walk through what you did and where you found the necessary files. Any help would be appreciated. Thanks!
 
VCN Viewer works as far as controlling your desktop with the prevail. It has an option for file transfer but havent seen it work yet. Quite pricey though.
 
If you could get it working that would be awesome. I'd really like to new able to vpn in for work things on the go. Thanks for the work you've put in and for the update. I just assumed that this sort of functionality would be included to start with, my first android phone. I'd like to learn more about dev for phones but just don't have the time right now. Thanks again. ;)
 
Yeah, I'm not looking for a remote desktop app. In fact I already use teamViewer but for a completely different purpose than what I want the OpenVPN and anyConnect for. Although they can be similar at times there are definately important differences that exist. Thanks for your helping spirit though.
 
I have VPN access to my home network from my Samsung Prevail over both wifi & 3G.

The steps bellow assume you already have a working OpenVPN server on your network & you are able to connect remotely from another computer using the OpenVPN client. I also assume your Prevail is already rooted, already has buysbox installed (comes with the few roms available for our phone), & you are somewhat familiar with using either a terminal emulator on your phone, through Droid Explorer, etc.

First you must download the tun.ko file for the Prevail. The one I compiled can be found at: https://rapidshare.com/files/4022896828/tun.ko Save the file to your sdcard then turn off USB storage so the file is available from the terminal session.

In the terminal, type

Code:
su
mount -o remount,rw /rootfs/ /system/
cp -f /sdcard/tun.ko /system/lib/modules/
chmod 644 /system/lib/modules/tun.ko
Now exit the terminal session. Download & install OpenVPN Installer from the market place. After the installer finishes, download & install OpenVPN Settings from the market place.

Copy your OpenVPN certificate files to a folder called "OpenVPN" on your sdcard. ie: /sdcard/openvpn/ca.cert

On your prevail, launch OpenVPN Settings. Tap your menu button on the Prevail then select Advanced. Tap on TUN module settings. Change Load module using to insmod. Enter "/system/lib/modules/tun.ko" in the Path to Tun box. Go back one menu. Make sure your path to configurations & binary are correct. If everything looks good, click the check box next to Load tun kernel module. Now go back to the main OpenVPN Settings screen and check both boxes. If everything is configured correctly, you should connect to your VPN within a couple of minutes.


Thanks. Adding to Beginners' guide.
 
Well I actually set it up for any connect as well. So a few changes were necessary but I set the path for open vpn to work from there as well. Haven't had any problems yet. Thanks again for your work!
 
Well I actually set it up for any connect as well. So a few changes were necessary but I set the path for open vpn to work from there as well. Haven't had any problems yet. Thanks again for your work!

what did you have to do to have it work with anyconnect?
 
I don't remember all the details of current settings you may need to enable in both programs so that they both work off the same tun.ko file, but if I remember right AnyConnect automatically looks in/data/local/kernel_modules for the file. That should be the only major issue.
 
Sorry to resurrect old thread but the download link to tun.ko (on rapidshare) is dead. Do you know where I can find it? Thanks.
 
Back
Top Bottom