Go Back   Android Forums > Android Phones > Samsung Galaxy Prevail > Galaxy Prevail - All Things Root

test: Reply
 
LinkBack Thread Tools
Old August 19th, 2011, 03:29 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2011
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default OpenVpn and Anyconnect

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!

Advertisements
keyneom is offline  
Reply With Quote
sponsored links
Old August 19th, 2011, 05:31 AM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2011
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Or if you even just know where I could find the appropriate tun.ko that would be great.
keyneom is offline  
Reply With Quote
Old September 5th, 2011, 05:16 PM   #3 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm in the exact same position! Have you found anything that will work? Please let me know if you do!
Samsung Boost is offline  
Reply With Quote
Old September 5th, 2011, 07:45 PM   #4 (permalink)
Senior Member
 
Koumajutsu's Avatar
 
Join Date: Aug 2011
Location: Jurupa Valley(Rubidoux), Ca
Gender: Male
Posts: 1,443
 
Device(s): Samsung Galaxy Prevail, Samsung Galaxy Note 10.1, Samsung Galaxy Prevail 2
Carrier: Zombie Virus

Thanks: 136
Thanked 1,100 Times in 466 Posts
Default

I found a tun.ko that is supposed to be universal, but I have no idea how to install it
Koumajutsu is offline  
Reply With Quote
Old September 5th, 2011, 08:40 PM   #5 (permalink)
New Member
 
Join Date: Jun 2011
Location: Georgia
Posts: 6
 
Device(s): Samsung galaxy prevail Lg ally : root :
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Defytheworld is offline  
Reply With Quote
Old September 15th, 2011, 11:41 PM   #6 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 4
 
Device(s): Samsung Prevail, Superpad III Tablet
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

I compiled tun.ko for Samsung Prevail today. Since I'm a new user, I can't post a link to it though. Although I've been able to successfully connect to my VPN server at home, I haven't been able to connect to any other resources. I'm researching/troubleshooting and will report back here once I have it completely working.
jtaylor781 is offline  
Reply With Quote
Old September 16th, 2011, 04:23 AM   #7 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2011
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.
keyneom is offline  
Reply With Quote
Old September 16th, 2011, 04:37 PM   #8 (permalink)
New Member
 
Join Date: Jun 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

TeamViewer app works for desktop control (def.) & file transfers (I'm pretty sure). Free Market app that I love
sleve420 is offline  
Reply With Quote
Old September 16th, 2011, 05:21 PM   #9 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2011
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.
keyneom is offline  
Reply With Quote
Old September 17th, 2011, 04:22 PM   #10 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 4
 
Device(s): Samsung Prevail, Superpad III Tablet
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

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.
jtaylor781 is offline  
Last edited by jtaylor781; September 17th, 2011 at 05:39 PM.
Reply With Quote
The Following User Says Thank You to jtaylor781 For This Useful Post:
kevincott (September 20th, 2011)
sponsored links
Old September 20th, 2011, 12:12 PM   #11 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2011
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Works great! Thanks so much!
keyneom is offline  
Reply With Quote
Old September 20th, 2011, 04:52 PM   #12 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 4
 
Device(s): Samsung Prevail, Superpad III Tablet
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

I'm glad you were able to get it working! I hope my instructions weren't too horribly written.
jtaylor781 is offline  
Reply With Quote
Old September 20th, 2011, 10:52 PM   #13 (permalink)
AF Contributor
 
Join Date: Jul 2011
Location: Chicago, IL
Posts: 1,244
 
Device(s): SGS2- GB08, Samsung Prevail- CTMod 3.75
Carrier: Not Provided

Thanks: 154
Thanked 278 Times in 167 Posts
Default

Quote:
Originally Posted by jtaylor781 View Post
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.
kevincott is offline  
Reply With Quote
Old September 22nd, 2011, 12:14 AM   #14 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2011
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

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!
keyneom is offline  
Reply With Quote
Old September 22nd, 2011, 02:14 PM   #15 (permalink)
Senior Member
 
Koumajutsu's Avatar
 
Join Date: Aug 2011
Location: Jurupa Valley(Rubidoux), Ca
Gender: Male
Posts: 1,443
 
Device(s): Samsung Galaxy Prevail, Samsung Galaxy Note 10.1, Samsung Galaxy Prevail 2
Carrier: Zombie Virus

Thanks: 136
Thanked 1,100 Times in 466 Posts
Default

Quote:
Originally Posted by keyneom View Post
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?
Koumajutsu is offline  
Reply With Quote
Old September 23rd, 2011, 10:41 AM   #16 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2011
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.
keyneom is offline  
Reply With Quote
Old November 17th, 2012, 10:13 PM   #17 (permalink)
New Member
 
Join Date: Nov 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
dudlo is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Samsung Galaxy Prevail > Galaxy Prevail - All Things Root
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:05 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.