[Q] OpenVPN Support "tun.ko" - Samsung Galaxy Nexus

I was wondering if the Galaxy Nexus stock ROM had OpenVPN support in kernel and if someone was contemplating compiling tun.ko for the less tech savy users

Would also like to know if it's possible to use OpenVPN on the GN.

If it is not in there stock, I am sure one of the many kernel devs will add it for us.

Apparently...
"It should now be possible to write a OpenVPN client for Android."
According to:
https://code.google.com/p/android/issues/detail?id=3635#c87
So it's just a waiting game now for an app it looks like.

openVPN works
Hi,
Just wanted to let you know I got openVPN working. (pic below)
I have Revolution 1.3.0 ROM and Franco's kernel installed, both excellent I must add.
I didn't need a tun.ko, did on my sgs2.
There are 2 programs you need on the market, openVPN installer and openVPN setting. Run those and you should be good to go. The only thing I had to do was create a /system/xbin/bb folder and copy ifconfig into it. This may have been something to do with the way I installed busybox.

I use the last MCK kernel compatible with Android Revolution HD.
Will check if the kernel have support.
I can't wait to be able to watch Netflix from the USA again.

Unfortunately, stock ICS on the GN has no tun support. We still need a tun.ko. So far I didn't find one, so I guess I need to compile it myself...

I believe it stock ROM does have tun support. See this thread:
http://android.modaco.com/topic/349642-tunko-for-openvpn/
Steps are here for anyone else looking to get it working (which I gleaned from here http://forum.xda-developers.com/showpost.php?p=17233744&postcount=9):
Install Busybox from Market
Install OpenVPN Installer from Market and install to:
binaries: /system/xbin
route/ifconfig: /system/xbin/bb
Create /system/xbin/bb with Root Explorer or from shell
Create link to busybox for ifconfig and route
ln -s /system/xbin/busybox /system/xbin/bb/route
ln -s /system/xbin/busybox /system/xbin/bb/ifconfig

taylormadearmy said:
I believe it stock ROM does have tun support.
Click to expand...
Click to collapse
Indeed, you're right. Although my OpenVPN installer indicated my kernel was lacking a tun module, I justed ignored it and now I'm running OpenVPN on rooted/unlocked ICS. Great!
Mark

I would ideally like this to work without rooting. Hopefully a proper app gets made!
Great News though!

Indeed, I thought that I needed Franco's kernel to get openVPN to work, but when I flashed back to stock kernel (I had some battery issues) the openVPN still worked.

Everything worked fine, I can now connect on my VPN servers through OpenVPN Settings (On the Android Market) : D. Awesome ! Many thanks

nvm
10 characters

Just in case you haven't heard yet: The official Cisco AnyConnect VPN Beta has been released in the market a week or two ago. It supports all ICS devices (tested it on my Asus TF101 with stock 4.0.3). Works great on my unrooted GN!
Gesendet von meinem Galaxy Nexus mit Tapatalk

Help with OpenVPN setup
Hello,
I followed all the instructions on this post regarding install and reconfiguration of folder permissions. I'm running AOKP Milestone 3 and Franco kernel Milestone 2. My phone connects to openVPN but it's clear that data isn't flowing through it (i.e., I'm in China and still can't use Facebook or Youtube apps)
Any suggestions? OpenVPN app connects to the server very quickly but when visiting Facebook.com, I can see very easily that the download rate is 0.0kbps, then the page times out.
Any help would be appreciated!

romerjon said:
Just in case you haven't heard yet: The official Cisco AnyConnect VPN Beta has been released in the market a week or two ago. It supports all ICS devices (tested it on my Asus TF101 with stock 4.0.3). Works great on my unrooted GN!
Gesendet von meinem Galaxy Nexus mit Tapatalk
Click to expand...
Click to collapse
Does this work with open vpn? Sorry if this is a dumb question, I am a new user to open vpn. I am about to setup an open vpn server on my dd-wrt router.

does anyone know where the tun.ko module is located on stock rom?
i can't find it no matter how i search for it. will it be possible for someone to upload it and give us the link?
thank you...

Related

openvpn anyone?

hi,
did anyone find a way to use openvpn on htc hero?
Catscrash said:
hi,
did anyone find a way to use openvpn on htc hero?
Click to expand...
Click to collapse
Not yet, but I am using the CyanogenMod 4.0.1 on my Dream and I have seen Donut on the HTC Click -- in both cases, Settings --> Wireless Controls is showing an option for VPN Settings, so I'm guessing that it would be a matter of time before this is available on the Hero and Magic firmware
Be patient, or wait for someone to cook a ROM with this feature
VPN wil be in Donut.
For now, it seems possible to implement it.
For the program GUI, it should good to extand that program to support openvpn and pptp vpn.
First of all tun driver is needed, you'll find it here.
Install and, as root, type:
# insmod /system/lib/modules/tun.ko
lsmod command should give you:
tun 11300 0 - Live 0xbf000000
That should load the tun kernel module.
I think we should then have to compile openvpn using android ndk.
A guy did it for the dream. Worth trying it. Maybe someone else could tell if binaries compiled for Dream can work on Hero
OpenVPN ist working on hero. I used the binaries for the G1. But the CIPHER is different: AES-256-CBC. I'm now testing it and if it's stable, perhaps I'm gonna compile openvpn with complete static openssl, so all functions should work.
If someone is interested, I can post my scripts and settings.
gogh57 said:
OpenVPN ist working on hero. I used the binaries for the G1. But the CIPHER is different: AES-256-CBC. I'm now testing it and if it's stable, perhaps I'm gonna compile openvpn with complete static openssl, so all functions should work.
If someone is interested, I can post my scripts and settings.
Click to expand...
Click to collapse
I am REALLY interested to now how you compiled it.
Hi!
I haven't compiled openvpn until now. I used this one:
https://www.digital-bit.ch/wiki/OpenVPN_auf_dem_G1
Just tried, may work. But i can't connect to my astaro because the key needs auth wit user and pw.
This Version hasnt been compiled with --auth-ask-pass. And reading from commandline doesn't work either..
I did compile it on my G1 with CyanogenMod ROM.
As far as I can see, it is working perfectly: I'm using it with certificates for 3 different VPNs.
Only issue: I wasn't able to complile a shared version of liblzo, so the binary is statically linked against liblzo.a (751 KB... )
Ah, yes, of course no GUI interface, shell only...
Hi!
Cool, could you post the binary? Could you give me a hint how you did it? I had several problems.
Would be perfect if someone could compile openvpn with " --enable-password-save"
Please post it, when a OpenVPN GUI for the HTC Hero / Magic is available.
Thans alot
wolfiedk said:
Please post it, when a OpenVPN GUI for the HTC Hero / Magic is available.
Thans alot
Click to expand...
Click to collapse
The great spam protection measures in this forum deny posting links for new users, so you have to manually follow them.
See: github.com/fries/android-external-openvpn
There is also an app and a statically linked openvpn binary at github.com/fries/android-external-openvpn/downloads
The openvpn binary has the following features:
* --enable-password-save
* statically linked against a blowfish enabled openssl
* statically linked against liblzo
Build:
* openvpn-static.bz2 was build on a donut-tree (1.6) for htc-magic
* openvpn-android-2.1.tar.bz2 was build on a cupcake (1.5) tree for htc-magic
* should run on a verity of (rooted) phones, please try it an give feedback.
A dynamically linked version is also available. The above git repo integrates seamless into the android build system. Some instructions may be found here: wiki.github.com/fries/android-external-openvpn/
Any feedback is welcome. Enjoy.
read this first -> http://sourceforge.net/projects/tunneldroid/files/README/download
First make sure kernel is compile with tun module
install tunneldroid from market
binary download -> http://sourceforge.net/projects/tunneldroid/files/openvpn-binary.zip/download
The newest version of my 'OpenVPN Settings' app is available at github.com/fries/android-external-openvpn/downloads

working VPN modules 2.x roms

Hello,
I compiled the missing vpn modules for the hero eclair kernels (2.6.29-8d063048 and 2.6.29-877eaf14).
modules compiled: tun + all ppp (l2tp not tested pptp and tun with openvpn working).
For openvpn you need de openvpn package and tunneldroid (market).
all files are packaged as update.zip
happy tunneling
Didn't check yet, but why are your libs and binary so big?
Did you enable debug? Didn't you strip symbols?
In contrast, my openvpn binary is barely 350Kb.
adwinp said:
Didn't check yet, but why are your libs and binary so big?
Did you enable debug? Didn't you strip symbols?
In contrast, my openvpn binary is barely 350Kb.
Click to expand...
Click to collapse
The openvpn binary and libs are not mine so i can't say anything about that. Changed openvpn for smaller version.
thanks for the work!
but i tried villian2.1 rom and espr 1.3 rom(the kernal version is 2.6.29-8d063048),non of these works.
could you please put more details on your fix?
BroWebo said:
thanks for the work!
but i tried villian2.1 rom and espr 1.3 rom(the kernal version is 2.6.29-8d063048),non of these works.
could you please put more details on your fix?
Click to expand...
Click to collapse
OK, i figured it out. Only problem with villain rom is it doesn't run the 05vpn init script in /etc/init.d/. It's a known problem in the villain rom (i checked the villain thread and saw multiple posts about that).
you could try this:
install Autostart from market
adb shell
mkdir /data/opt
echo "sh /system/etc/init.d/05vpn" > /data/opt/autostart.sh
chmod 4755 /data/opt/autostart.sh
reboot phone
There will be an su request. I need to restart my phone a second time, but after that it works.
thanks dude!
it's now woking well!!

[Request] tun.ko for EVO kernel 2.6.32.15-g746f4f0

I am attempting to get vpnc (for cisco vpn) working on my evo but I have looked everywhere and not been able to find the tun.ko module for my kernel.
There is a post here by sjakub: http://forum.xda-developers.com/showpost.php?p=5692491&postcount=12 which describes how to compile it, but I do not have access to linux currently.
Would anyone be kind enough to compile the proper file for me please? Thank you very much!
Bump
Looking for the same thing using DC 3.5
Help?
Is anyone able to help with this? Or offer any other suggestions? Thank you.
-David
I'm using netarchy's 4.0.* kernels (with tun.ko already loaded) but I'm still unable to VPN to my Cisco concentrator through VPN Connections
Have either of you tried netarchy's 4.0 kernel?
I'm running Fresh 3.1 with netarchy 4.0.3 kernel, VPN Connections says I'm connected, but when I try to access anything internal... no dice.
My company uses OpenVPN and I had it working with the tun.ko on the 2.1 roms. Also looking for a recompiled version for 2.2 kernels.
also interested in this one
Need this too
My kernel is also 2.6.32.15-g746f4f0 and I need the tun.ko file for this. How can I look/compile this? Is it safe to install another kernel? Very new to this, but I was able to successfully install 3.26.651.6 Froyo DeOdexed RevE.1, but don't know how to update a kernel that will work with VPN Connections.
Thanks very much in advance!
I had the same problem, until I switched to CM6 -- It's become a solid ROM and I've learned to live without sense, every time I kick my VPN in and fix a server issue I miss sense less and less. IMHO every ROM should look to integrate this feature.
Kernel
I am using AVA V5 and the Netarchy Kernel caused me problems, so I am using stock. I may try it again shortly if there is not anyone out there who can compile tun.ko for it.
drizkol said:
I'm using netarchy's 4.0.* kernels (with tun.ko already loaded) but I'm still unable to VPN to my Cisco concentrator through VPN Connections
Have either of you tried netarchy's 4.0 kernel?
I'm running Fresh 3.1 with netarchy 4.0.3 kernel, VPN Connections says I'm connected, but when I try to access anything internal... no dice.
Click to expand...
Click to collapse
I installed Netarchy 4.1.8 today and my VPN no longer force closes. However now it says connected, but I cannot access anything inside my work network same as you. Did you find a solution to this?
I have TUN vermagic=2.6.32.15-g746f4f0
I compiled TUN using the HTC sources see my post below
FYI, looks like tun.ko creates the /dev/tun device, but vpnc is looking for /dev/net/tun
will be looking into this next but tun.zip is attached to the post below
http://forum.xda-developers.com/showthread.php?p=7913695#post7913695
btedeski said:
I compiled TUN using the HTC sources see my post below
FYI, looks like tun.ko creates the /dev/tun device, but vpnc is looking for /dev/net/tun
will be looking into this next but tun.zip is attached to the post below
http://forum.xda-developers.com/showthread.php?p=7913695#post7913695
Click to expand...
Click to collapse
sweet, let me know if you get anywhere with this..
Symlink /dev/net/tun to /dev/tun
>> Symlink /dev/net/tun to /dev/tun
yes that is on the top of the list to try,
unfortunately my work is getting in the way of finding time to relax and play with my phone (as the girl friend calls it)
Bill

tun.ko for G9 ICS (Kernel 3.0.8)

Hi everyone,
i have the rooted ICS on my G9 - but the tun-module is not shipped with this kernel (not as module and not compiled), so i can't get a /dev/tun Node. Therefore my OpenVPN is not working.
Does anybody have a tun.ko Module for me? It's an Archos 101 G9 with ICS (Firmware 4.0.4, Andriod 4.0.3, Kernel 3.0.8 armv7l)
Did search the hole Internet, but couldn't find one...
Thanks in advance...
Check my overclocked kernel there, it has tun.ko. You're not forced to overclock it, it defaults at 1.0 ghz.
Let me know if it worked for you...
I tried the Cisco AnyConnect ICS which does not require root and it does not work and when I contacted cisco with the error report and logs they told me :
"The ICS image installed on your ARCHOS does not have tuntap (Tun.ko). Is this an Archos provided image or something you loaded up on your own? If this image is from Archos, it is defective and you should put in a report to Archos to have them fix it."
The ICS I have is 4.0.3 from the standard update 4.0.4, no root, no kernel replacement, nothing fancy
Yes, stock kernel doesn't support tap and doesn't have the module. If you have SDE and root firmware, you can try the kernel, else you have to bug Archos to include it in their next firmware.
Works perfectly!!!
Thank you very much, the tun.ko works great!
Now I can connect to my VPN, hoooray! RDP is much easier to handle on a 10inch display than on a smartphone...

OpenVPN

Hi!
Have someone compiled a running openvpn binary with needed tun.ko for the stock firmware (1.28) ?
I would like to use openvpn with my one x.
prodigy7
One ROM says it's openvpn compatible. I can't post a link, so this is the thread title/rom name:
[ROM] Android Revolution HD 3.0.0 | ICS | High Quality & Performance | 1.28.401.9
Lemme know how it works
Hmm k ... i wait for final s-off and try to compile openvpn, if no one hasn't done at this time or try to get the files from this ROM.
prodigy7 said:
Hi!
Have someone compiled a running openvpn binary with needed tun.ko for the stock firmware (1.28) ?
I would like to use openvpn with my one x.
prodigy7
Click to expand...
Click to collapse
Just download OpenVPN Installer and OpenVPN Settings
and install busybox
No need for tun.ko (CONFIG_TUN=y in the kernel)
of course you need a rooted phone.
richardtrip said:
Just download OpenVPN Installer and OpenVPN Settings
and install busybox
No need for tun.ko (CONFIG_TUN=y in the kernel)
of course you need a rooted phone.
Click to expand...
Click to collapse
Really cool!!!!!!!!! Thank you very much for this hint. I'll try it next time
Definitely will try this..I can see it have a good rating (more than 4.0)..

Categories

Resources