Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
hipath
Old
(Last edited by hipath; 27th October 2010 at 03:10 PM.) Reason: found solution
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Default OpenVPN / tun.ko / Binary Galaxy Tab

Hi,
openvpn is up and running.

Install busybox via busybox-Installer (Market). Then install Openvpn via Openvpn-Installer (Market). I dont know if Openvpn-Installer is needed, as we are replacing the binary with another file - but as it takes care of dependencies just install it

Use tun.ko from there:
xxx.android-hilfe.de/samsung-galaxy-tab-forum/51007-openvpn-tun-ko-unionfs-ko.html
(replace the xxx with www)

Binary from here: (OpenVPN Installer won't work - its not able to recognize push options)
github.com/downloads/fries/android-external-openvpn/openvpn-static-2.1.1.bz2

Finally you have to provide the busybox-ifconfig in /system/xbin/bb/ifconfig and busybox-route in /system/xbin/bb/route (ln -s /system/bin/busybox /system/xbin/bb/ifconfig ...)

cheers
patrick
 
akxak
Old
#2  
Senior Member
Thanks Meter 25
Posts: 237
Join Date: Mar 2006
Can you give any hint how to install the additional binaries? Even with a rooted Tab and a terminal, I dot not get this working.

Sent from my GT-P1000 using Tapatalk
Samsung Galaxy Note 10.1 (rooted) with JB 4.1.2 (XXCMD1, DBT)
Samsung Galaxy S III (rooted) with JB stock firmware
 
hipath
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Default hi

just run openvpn installer from the market
 
akxak
Old
(Last edited by akxak; 6th November 2010 at 08:41 AM.)
#4  
Senior Member
Thanks Meter 25
Posts: 237
Join Date: Mar 2006
I tried and got the connection established. But in opposite to my Desire, traffic is not routed that way.

Also, there is no /dev/tun

Addendum: Got it running, beside that I am using tap, doing a reinstall after having created the a.m. symlinks for busyboy, adding some push options on the server to force the routing did the trick (they were not required on my Desire).
Samsung Galaxy Note 10.1 (rooted) with JB 4.1.2 (XXCMD1, DBT)
Samsung Galaxy S III (rooted) with JB stock firmware
 
ipaqkiller
Old
#5  
Member
Thanks Meter 3
Posts: 54
Join Date: Mar 2006
Location: Montgomery, AL
I used the tun.ko module for the VPN Connections app and got it working great... except when I disable the VPN connection, it doesn't reset the dns servers to the values that where there before.

I don't believe it's the application since the same version on my Nexus One works correctly. If I turn off the data then turn it back on, I get my data back. I believe it to be the tun.ko not being written to reset the dns entries.
 
ritdaw
Old
(Last edited by ritdaw; 20th November 2010 at 04:37 PM.)
#6  
Senior Member
Thanks Meter 1
Posts: 237
Join Date: Jan 2007
I think I could kiss someone, I now have working cisco vpn

How do we make the tun.ko module stay after a reboot? Mine disappeared from /modules/ when I restarted my tab? I copied it with root explorer.

Also if we can get it to stick will I have to run these commands each time?

insmod /modules/tun.ko
ln -s /system/bin/busybox/system/xbins/bb/ route
ln -s /system/bin/busybox/system/xbins/bb/ ifconfig
 
trondjl
Old
#7  
Member
Thanks Meter 1
Posts: 40
Join Date: May 2007
Hi, i am not getting this to work, is there any thing i am missing? What i did:

1. Rooted device and installed busybox
2. copying the tun.ko from the german site to /modules after remounting to r/w.
3. Running those three commands from previous post in terminal
4. Installing vpnc 0.99 and configuring connection
5. Connect

still get failed to connect.

any tips please?

Sent from my GT-P1000 using XDA App
The Following User Says Thank You to trondjl For This Useful Post: [ Click to Expand ]
 
ritdaw
Old
#8  
Senior Member
Thanks Meter 1
Posts: 237
Join Date: Jan 2007
Quote:
Originally Posted by trondjl View Post
Hi, i am not getting this to work, is there any thing i am missing? What i did:

1. Rooted device and installed busybox
2. copying the tun.ko from the german site to /modules after remounting to r/w.
3. Running those three commands from previous post in terminal
4. Installing vpnc 0.99 and configuring connection
5. Connect

still get failed to connect.

any tips please?

Sent from my GT-P1000 using XDA App
I believe that's exactly what I did. Were all the commands successful?
 
trondjl
Old
#9  
Member
Thanks Meter 1
Posts: 40
Join Date: May 2007
works now.
I rebooted and reinstalled vpnc and busybox and recopied and reissued commands. Something must have been hanging from all my testing.
Tanks!

This is so great! Now I'm online with Sip, xmpp and RDP with work!

I know, get a life :)

Sent from my GT-P1000 using XDA App
 
ipaqkiller
Old
#10  
Member
Thanks Meter 3
Posts: 54
Join Date: Mar 2006
Location: Montgomery, AL
I had to copy tun.ko to /system/lib/modules. I did have to create that directory but when I did, it was loaded every time.

You can make sure by using the lsmod command in the terminal emulator.

 
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

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more