I am trying To connect my Eris to my vpn using openvpn settings, but heard that the roms kernel needs to have tun support embeded. So like I said in the title which roms support it? I have kaosfroyo. Also can I access my network shares via openvpn settings?
sabot105mm said:
I am trying To connect my Eris to my vpn using openvpn settings, but heard that the roms kernel needs to have tun support embeded. So like I said in the title which roms support it? I have kaosfroyo. Also can I access my network shares via openvpn settings?
Click to expand...
Click to collapse
Conap built CFS v9 with TUN support (as a kernel module). See for yourself by searching for "TUN" in his Dec 4th commit, or by inspecting his V9 download (in system/lib/modules).
Whether or not ROM devs included all of those kernel modules - or, more importantly, performed an "insmod" at some place during initialization to load the module into the kernel (by default) is different matter. But, that is certainly something that you could do on any CFSv9 ROM with a root-privileged script; just make sure you install the matching kernel module to the kernel you are using. Depending on what the dev does with "include" directives out of the /init*rc scripts, you might be able to make an insmod automatic at boot with something in /system/etc/init.rc.local (or whatever it is named).
If you want, you can peruse Conap's .config release history to see if different kernels were built with TUN support - his kernels are in lots of Eris ROMs. I didn't look through it exhaustively, but it looks like he also built it for V8.
cheers
my kernel is from conap version 2.6.29. im having trouble connecting to the server via openvpn settings. i installed the openvpn installer and openvpn settings, also the tun.ko file i moved to the modules folder, i think i did everything right but still i get an error fatal: cannot allocate tun/tap dev dynamically. what does that mean?
I think it means you've got some more analysis work to do.
Normally I might be motivated to help (I've done a fair bit of network admin incl. tunneling setups, and find it interesting work), but I don't have ready access to a configured server... so I would have to configure both a server and the phone in order to help out further. A bit too much volunteer work for me, I'm afraid.
Good luck... and remember that Google is your friend!
Related
I have been having trouble connecting to my work VPN with the G-Tablet. I have since tried going to ZPad 3.0 in hopes this would fix the issue. However, no luck. The VPN server is reporting an event error of 20209.
After a few hours of looking on other forums it turns out this have been an issue since Android 2.1. They have either intentionally left out the encryption module from PPPD or it was forgotten in the build. The 'fix' is to copy the PPPD file from a version prior to 2.1 (Android 1.5?) and save it to the System/xbin directory. However there is an argument over if should go into system/bin for 2.2.
Does anyone have more information on this - or better yet a fix/update? Any help on this would be appreciated.
which ROm are you using
stock ROM doesn't have VPN at all.
justauser said:
stock ROM doesn't have VPN at all.
Click to expand...
Click to collapse
I'm using ZPAD 3.0 ROM at the moment.
I have narrowed it down to a problem with the MPPE 128 encryption. I have found a PPPD that is supposed to fix the problem (see link below), but I don't now how to get it to the system directory. How do you mount system as R/W?
Alternate PPPD:
H***://melko.hiljanen.com/~qvr/android/ppp/
Root explorer will allow you to mount it that way
Sent from my DROIDX using Tapatalk
Let me know how it goes... I have been trying to connect my gtab but I thought I was the only person interested!
Sent from my DROIDX using XDA App
vectorcharlie said:
Let me know how it goes... I have been trying to connect my gtab but I thought I was the only person interested!
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
Ditto!!!!!!!!
Tried your link, getting the same error I've seen in the past:
Code:
pppd: This system lacks kernel support for PPP. This could be because
the PPP kernel module could not be loaded, or because PPP was not
included in the kernel configuration. If PPP was included as a
module, try `/sbin/modprobe -v ppp'. If that fails, check that
ppp.o exists in /lib/modules/`uname -r`/net.
See README.linux file in the ppp distribution for more details.
I think(?) we need a customized kernel with ppp. So far, we have NTFS and CIFS support that's been added by some of the devs, here.
vectorcharlie said:
Let me know how it goes... I have been trying to connect my gtab but I thought I was the only person interested!
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
No luck. The PPPD file didn't make a difference. I guess I should not have been surprised. The L2TP connections are supposed to work so I may try that tomorrow - if I can convince the network admin to make the changes on the vpn server.
The lastest info I have been able to collect on this issue is that it has been known at google since 2.0 was released. They were having a problem keeping a connection using MPPE 128 over PPTP so instead of releasing something that did not work right, they removed support for it until a later date. Said date has not been determined.
I will keep you posted as I find out more.
roebeet said:
Tried your link, getting the same error I've seen in the past:
Code:
pppd: This system lacks kernel support for PPP. This could be because
the PPP kernel module could not be loaded, or because PPP was not
included in the kernel configuration. If PPP was included as a
module, try `/sbin/modprobe -v ppp'. If that fails, check that
ppp.o exists in /lib/modules/`uname -r`/net.
See README.linux file in the ppp distribution for more details.
I think(?) we need a customized kernel with ppp. So far, we have NTFS and CIFS support that's been added by some of the devs, here.
Click to expand...
Click to collapse
I came across this too. Since the ppp directory exists under system/etc I have made the assumption that there is support for it (at least under ztab 3.0). In order to check using the method above we would need a terminal app or some other way to run the commands. If there is a way to do it natively I am too new to know.
Any devs willing to tackle this issue?
Newanzer said:
No luck. The PPPD file didn't make a difference. I guess I should not have been surprised. The L2TP connections are supposed to work so I may try that tomorrow - if I can convince the network admin to make the changes on the vpn server.
...
I will keep you posted as I find out more.
Click to expand...
Click to collapse
No luck. The Net Admin decided it would be too much work just for a tablet test (and his iPAD VPN work just fine thank you). Anyone willing to try a L2TP test?
I have tried L2TP in Vegan with no success. used my android phone to verify settings and it works fine from there.
nephelim said:
I have tried L2TP in Vegan with no success. used my android phone to verify settings and it works fine from there.
Click to expand...
Click to collapse
Ok so that is 2 ROMs down:
TNT Stock - No option
Vegan - Not functional
Just need TNT light and Zpad Clean v3.0 tested. I'm suspecting that it will be no for both. This is starting to creep higher on my list of needs. Does anyone know of a ROM VPN works in?
I confirm that the advent vega rom has the same problem.
Unable to use vpn.
Newanzer said:
Ok so that is 2 ROMs down:
TNT Stock - No option
Vegan - Not functional
Just need TNT light and Zpad Clean v3.0 tested. I'm suspecting that it will be no for both. This is starting to creep higher on my list of needs. Does anyone know of a ROM VPN works in?
Click to expand...
Click to collapse
Do you need tun.ko/kernel support for this stuff? Clemsyn compiled that into one of his kernels - check his thread in the Development forum out, and give that kernel a try with the Vegan ROM, that might get you closer.
rcgabriel said:
Do you need tun.ko/kernel support for this stuff? Clemsyn compiled that into one of his kernels - check his thread in the Development forum out, and give that kernel a try with the Vegan ROM, that might get you closer.
Click to expand...
Click to collapse
That could be worth the check. I would like to see a list of exactly what his kernel supports before I try though.
[EDIT]: Checked change log. VPN module in kernel not mentioned.
Looking over the list of known issues at Google, this problem has been known for a while. The fact that Google hasn't addressed it worries me a bit. It is possible that since phones are the largest part of their OS client, VPN isn't a high priority. They may be waiting for the open source community to solve their problem for them.
Was able to get VPN working
YOU WILL NEED TO HAVE ROOT AND BUSYBOX INSTALLED. PLEASE MAKE A BACKUP IN CASE SOMETHING GOES WRONG.
1st you will need the new kernel found at the below address.
http://forum.xda-developers.com/showthread.php?t=903505
2nd you will need to insert the tun.ko included in with the kernel into /system/lib/modules/2.6.32.27-cyanogenmod folder on the tablet using root explorer.
3rd you will need to install the latest version of vpn from
http://code.google.com/p/get-a-robot-vpnc/downloads/list
4th install a terminal emulator and then you will need type the following commands
su (press enter)
cd /system/lib/modules/2.6.32.27-cyanogenmod (press enter)
insmod tun.ko (press enter)
You should now be able to connect on VPN.
there is very easy installation get and run vpn frome purevpn........
brainyjd said:
YOU WILL NEED TO HAVE ROOT AND BUSYBOX INSTALLED. PLEASE MAKE A BACKUP IN CASE SOMETHING GOES WRONG.
1st you will need the new kernel found at the below address.
http://forum.xda-developers.com/showthread.php?t=903505
2nd you will need to insert the tun.ko included in with the kernel into /system/lib/modules/2.6.32.27-cyanogenmod folder on the tablet using root explorer.
3rd you will need to install the latest version of vpn from
http://code.google.com/p/get-a-robot-vpnc/downloads/list
4th install a terminal emulator and then you will need type the following commands
su (press enter)
cd /system/lib/modules/2.6.32.27-cyanogenmod (press enter)
insmod tun.ko (press enter)
You should now be able to connect on VPN.
Click to expand...
Click to collapse
Sorry for asking this noob question, but is this VPN fix only for Cyanogenmod, or will work with others, such as TnT Lite?
I'm running TnT lite and there no's VPN setup option.
tnt is missing the vpn shortcut
use VPN Show
Kazuyuki Eguchi/Tools
found in android market to access the vpn menu
i have used with sucess on most roms open vpn and open vpn settings
with out problems just by install them and setting it to auto run at start
with install to xbin and create a folder on internal sd "openvpn"
then place a vpn.conf file there
then connect this cause an error but causes super user to give it root rights
after that all my vpn,s work with out going near openvpn
purevpn said:
there is very easy installation get and run vpn frome purevpn........
Click to expand...
Click to collapse
Please elaborate...
Thanks!
I was following some guide to compile pershoot's kernel, and I compiled everything as built-in and disabled module support. After I installed the new kernel, the wifi can not be turned on. Any suggestions? (I'd really love to have a all-in-one kernel without "modprobe" things)
Thanks in advance.
You may want to check out Clemsyn's kernels. He typically builds his as all in ones.
Thanks. I've tried all Clemsyn's latest kernels (with Calkulin's ROM, if that matters) and none will boot (stucked at the viewsonic birds logo). I am not sure if that is related to OC... but I still need a kernel that has nls-gb2312/utf8 support.
Interestingly, I unzipped Clemsyn's kernel zip and found his /system/ also has bcm4329.ko as a module. Is it true that wifi driver must be compiled as module to work?
I saw my adb logs that Wifiservices is complaining about driver not available. I assume this must be a failure of "modprobe". How can I manually enable the wifi? Is there some equivalent command like "ifup wifi"?
It seems android wifi.c is making a hardwired assumption that wlan0 driver is compiled as kernel module. To support all-built-in kernel, I must recompile android as well. Could someone point a link to HOWTO-style guide for compiling android 2.2 from scratch? Preferably Calkune's ROM.
Thanks!
I did some research and found that a linux box is required to compile a tun.ko module. I don't have access to a linux box that I can try this on. Has anyone else already done this or willing to do this? My kernel version is 2.6.35.10-gcb1cf83. Thanks in advance for any help you can provide.
megatron-g1 said:
I did some research and found that a linux box is required to compile a tun.ko module. I don't have access to a linux box that I can try this on. Has anyone else already done this or willing to do this? My kernel version is 2.6.35.10-gcb1cf83. Thanks in advance for any help you can provide.
Click to expand...
Click to collapse
great question. to respond to your first statement, a linux "box" is not required to compile a tun.ko module, but a linux OS is. if you had a windows box, you could run a VM of linux and compile a tun.ko module in the VM (virtualbox is free and ubuntu is popular and free distro of linux).
responding to the 2nd part, modules will need to match the kernel and it is generally easier to compile specific modules once proper kernel source has been released by the manufacturer. after HTC releases the kernel source for the evo 3d, i'm sure a few tun.ko modules will be compiled and posted.
if you wanted to compile a tun.ko module for the evo 3d and didn't want to wait for official kernel source to be released, it might take a bit more effort and tweaking, but definitely possible. i haven't seen any posted, but i could be wrong and hopefully somebody else can post up.
hopefully that gives a better picture and we are all hoping kernel source is released by htc soon!
I compiled it for my phone and insmod works...I just haven't had a chance to do anything with it yet. Let me know if this works for you.
Sent from my PG86100 using XDA App
Haven't figured out how it attach a file from my phone....will attach it later.
Sent from my PG86100 using XDA App
here ya go...just quickly tested it w/ vpnc and it works perfectly on my evo 3d.
OpenVPN works on EVO 3D
I used the tun.ko file provided by dethmetaljeff, combined with the EVO 4G instructions at http://forum.xda-developers.com/showthread.php?t=883021 and was able to get OpenVPN working on my 3D.
tun.ko build
Can someone build for version magic 2.6.35.13-g84f8edd
Thanks
if someone can tell me how to I will.
dethmetaljeff said:
here ya go...just quickly tested it w/ vpnc and it works perfectly on my evo 3d.
Click to expand...
Click to collapse
Where did you install the module to get vpnc to work? I just installed it, no problem in /system/lib/modules but VPNC gives the following errors:
Error: root access missing!
Error: no access to TUN device!
Error: TUN device missing!
I do have root access, all other root apps work without issue so I'm guessing it's claiming that because it can't access some directory.
Any help is very much appreciated, Thanks.
EDIT: Apparently I had not ran busybox installer yet, weird that didn't keep other things from working. Anyway, I get no errors when checking pre-requisites anymore.
In case it helps anyone out, i've posted the tun.ko module for the Stock UK GSM ROM (2.6.35.13) over at http://forum.xda-developers.com/showthread.php?t=1248842, along with an outline of the process and some useful links
+1 to the 2.6.35.13-g84f8edd tun module request. Or if you have instructions or where to find instructions to compile it, I am willing to give it a try and then share.
+1 to request for tun.ko supporting g84f8edd. I tried the ones by dalgibbard and synergy, but neither worked. I might try a hex editor to see if I can locate the kernel label in dlgibbard's tun.ko. Too lazy to install ubuntu and go through the compiler process. I did have OpenVPN running before unrooting and taking the hboot 1.5 update (had problems with hdmi).
I edited the tun.ko file created by dalgibbard with a hex editor to replace the kernel version with g84f8edd and after some route editing, OpenVPN worked. The steps were:
HTCDev to unlock evo 3d (hboot 1.5, 2.3.4, 2.6.35.13-g84f8edd)
fastboot Recovery with Clockworkmod 4.0.1.4
flash su-2.3.6.3-efgh-signed.zip
installed super manager
copied tun.ko to /system/lib/modules
created /sdcard/openvpn folder
copied crt, ovpn, and key files
installed busybox
installed openvpn installer
installed openvpn settings
bypassed the iproute-wrapper.sh steps
configured openvpn settings
load tun kernel checked
changed load using to insmod
path to tun /system/lib/modules/tun.ko
started openvpn and selected the config file
THEN
used adb shell and typed
ifconfig tun0 IPADDRESS netmask MASK
ip route (to see if tun0 had a new route added. I was using wifi as default so that it didn't use the vpn for all traffic, only for the intranet)
After that everything for my intranet was accessible. I had problems with the iproute-wrapper.sh hanging the openvpn startup, so I skipped it but still selected the Fix HTC Routes. Regardless, I still had to do the ifconfig step. I did a "netcfg" prior to the ifconfig and saw tun0 was still down with no address. After ifconfig, tun0 was up and had the address and the route was added to the wifi route.
tun.ko file attached.
Found a replacement file for OpenVPN to eliminate the need to do the adb shell steps.
Extract the OpenVPN file from the attached zip file and copy it into your /system/xbin folder. (I used Super Manager)
Be sure to change the security to 755 (in Super Manager, just highlight the file, select the 777 icon from the bottom list, and make sure you have checkmarks across the top-Owner).
Update: See saturn_de's thread for more modules:
http://forum.xda-developers.com/showthread.php?t=1455382
---
Asus failed big time with their ICS kernel. Not only did they leave out the tun module, they also left out several other required options.
After a lot of trial and error, I've found all the modules necessary to connect to VPN, at least using IPSec XAuth PSK mode with my employer's setup. It may or may not work for you.
Root is required. You can find the compiled modules attached. There is a _readme.txt file inside with instructions. Let me know your results!
Thanks to sklid for his initial tun.ko. If you're looking for cifs.ko, you can find it here:
CIFS kernel module for ICS.
Reserved, or something. Although I can hardly imagine actually needing this.
They also left out the ability to properly use the Battery setting for anything other than system processes - can you fix that in your kernel
Oh & can you fix the ad hoc network issue while your at it
Edited: I wished init.goldfish.sh would work. Anyone knows which script got called at startup?
I modified your instruction a bit as my shell script. It does not work if I tried with the ICS VPN - IPSec Xauth PSK. It works using VPN Widget from market.
You can copy the attached file into /etc and set executed permission for it via Root Explorer. When you need vpn, open terminal then execute it after becoming root. Then setup your vpn widget to connect.
huytrang90 said:
Edited: I wished init.goldfish.sh would work. Anyone knows which script got called at startup?
I modified your instruction a bit as my shell script. It does not work if I tried with the ICS VPN - IPSec Xauth PSK. It works using VPN Widget from market.
You can copy the attached file into /etc and set executed permission for it via Root Explorer. When you need vpn, open terminal then execute it after becoming root. Then setup your vpn widget to connect.
Click to expand...
Click to collapse
Is this the app you're talking about? VPNC Widget
If so, it may be something that vpnc supports but the built-in racoon doesn't. I wonder how your VPN is set up differently from mine. Could you post the logcat output (filtered by racoon) from when you're trying to connect using the built-in VPN tool?
I Thanked you for your effort and excellent documentation, but unfortunately my Prime reboots as soon as it completes Phase 2 negotiation. Can post gory details tomorrow if you're interested. Hopefully your work gets the attention of the devs at Asus!
Noxious Ninja said:
Is this the app you're talking about? VPNC Widget
If so, it may be something that vpnc supports but the built-in racoon doesn't. I wonder how your VPN is set up differently from mine. Could you post the logcat output (filtered by racoon) from when you're trying to connect using the built-in VPN tool?
Click to expand...
Click to collapse
That is correct program. I will get that logcat once I have access to PC.
Sent from my Transformer Prime TF201 using Tapatalk
Hey OP or anyone that knows, do you think this works with VPNsecure?
Tairen said:
Hey OP or anyone that knows, do you think this works with VPNsecure?
Click to expand...
Click to collapse
This VPNSecure? Maybe. I've used a PPTP VPN in Gingerbread on my phone before. I don't think ICS has built-in OpenVPN support, though, so you would have to use these kernel modules with the third-party OpenVPN Installer - assuming it still works with ICS.
If you decide to give it a try, let us know if/how it works.
Noxious Ninja said:
This VPNSecure? Maybe. I've used a PPTP VPN in Gingerbread on my phone before. I don't think ICS has built-in OpenVPN support, though, so you would have to use these kernel modules with the third-party OpenVPN Installer - assuming it still works with ICS.
If you decide to give it a try, let us know if/how it works.
Click to expand...
Click to collapse
Damnit so close. Just tried, got all the way through but when I tried to connect after typing in the passphrase this is what I got:
Wait..
Auth..
Get config..
FATAL: Cannot allocate TUN/TAP dev dynamically
My prime appears to connect fine but when I try to access any data over the connection it restarts.
Connection via the widget above works perfect tho!
Tairen said:
Damnit so close. Just tried, got all the way through but when I tried to connect after typing in the passphrase this is what I got:
Wait..
Auth..
Get config..
FATAL: Cannot allocate TUN/TAP dev dynamically
Click to expand...
Click to collapse
Is this from OpenVPN or PPTP? Are there any more detailed logs?
ssjgesus said:
My prime appears to connect fine but when I try to access any data over the connection it restarts.
Connection via the widget above works perfect tho!
Click to expand...
Click to collapse
Strange that multiple people are having restarts. I wonder if there's something in the vanilla Android kernel that doesn't match up with the Asus kernel, or something missing in my modules. It might just be a bug in Android, though. The VPNC Widget totally bypasses a lot of the built-in ICS VPN pieces and uses its own stuff instead.
Noxious Ninja said:
Is this from OpenVPN or PPTP? Are there any more detailed logs?
Strange that multiple people are having restarts. I wonder if there's something in the vanilla Android kernel that doesn't match up with the Asus kernel, or something missing in my modules. It might just be a bug in Android, though. The VPNC Widget totally bypasses a lot of the built-in ICS VPN pieces and uses its own stuff instead.
Click to expand...
Click to collapse
That program works well. It does complain about missing advance routing capability, but works nonetheless.
Sent from my Transformer Prime TF201 using Tapatalk
Noxious Ninja said:
Is this from OpenVPN or PPTP? Are there any more detailed logs?
Strange that multiple people are having restarts. I wonder if there's something in the vanilla Android kernel that doesn't match up with the Asus kernel, or something missing in my modules. It might just be a bug in Android, though. The VPNC Widget totally bypasses a lot of the built-in ICS VPN pieces and uses its own stuff instead.
Click to expand...
Click to collapse
It's what i get when using openvpn settings and following their instructions. I also directed the filepath to tun.ko as well. And yes i was trying to connect to one of their PPTP servers.
i am having restarts as well. how can i see the log of the vpn trying to connect?
ASUS released the kernel source today on their page, so can we get custom kernels now?
DroidHam said:
ASUS released the kernel source today on their page, so can we get custom kernels now?[/QUOT
Need unlocked bootloader & Recovery to flash.
Click to expand...
Click to collapse
When I issue "insmod tun.ko", I get
"insmod: init_module fail 'tun.ko' failed (Exec format error)"
I'm running the virtuous rom 9.4.2.15v2
Pls help
bklm1234 said:
When I issue "insmod tun.ko", I get
"insmod: init_module fail 'tun.ko' failed (Exec format error)"
I'm running the virtuous rom 9.4.2.15v2
Pls help
Click to expand...
Click to collapse
TUN is already enabled in the stock kernel that comes with Asus 9.4.2.15. It may not have been in earlier Samsung kernels before that. So, you shouldn't need to load that module.
you're right _motley. Thx so much.
Has anyone tried CIFS manager with CM7DX2? I'm trying to get it working but it doesn't want to mount with error "no such device" which the dev for CIFS manager says:
"Your current kernel or rom lacks the necessary CIFS support. Try to find a matching kernel module (cifs.ko) or use a rom with explicit CIFS support."
So does anyone know if CM7DX2 has CIFS support?
Tried adding a cifs.ko from another ROM with same kernel version but it won't load in either cifs manager or mount manager.
Nobody is using this? Any ideas then on how I could mount a shared drive on my PC to have access to it like the files were on my phone?
Sent from my MB870 using XDA
smallzfsu said:
Tried adding a cifs.ko from another ROM with same kernel version but it won't load in either cifs manager or mount manager.
Nobody is using this? Any ideas then on how I could mount a shared drive on my PC to have access to it like the files were on my phone?
Sent from my MB870 using XDA
Click to expand...
Click to collapse
Whew boy! How far do you really want to dig into this? First, with out locked boot loader, replacing the kernel is next to impossible, however, you can inject ko modules into the running kernel, however they must be configured against the original kernel's source code... If you find one from a SIMILAR kernel, it MIGHT work. There is no guarantee. The command to use would be insmod or modprobe. Depending on how you wanted to load the module. If I am over your head with this, then it's best you stop here... If you really want to forge ahead, then by all means, please do so. Google "linux insmod use" or "linux modprobe use" Or, if you have a Linux box handy, "man insmod" or "man modprobe". I'm not going to get into the details of how to do this, because if you do things wrong, you can have some very screwy results that I would be able to triage in PM's or posts.
Anyhow, that, in a nutshell, is what you are looking at. To succinctly answer your question, yes, it's possible. Is this something that I want to tackle? Ummmm... No. If you want someone to bounce stuff off of, feel free to hit me up! Good luck!
Ciao!
Compiled cifs modules for Gingerbread kernel (Droid X2)
smallzfsu said:
Has anyone tried CIFS manager with CM7DX2? I'm trying to get it working but it doesn't want to mount with error "no such device" which the dev for CIFS manager says:
"Your current kernel or rom lacks the necessary CIFS support. Try to find a matching kernel module (cifs.ko) or use a rom with explicit CIFS support."
So does anyone know if CM7DX2 has CIFS support?
Click to expand...
Click to collapse
Today i've compiled some modules, that essential for sharing support through CIFS Manager.
View attachment dx2_gb_cifs.7z (LZMA2 inside, update your 7zip archiver, before unpacking)
Modules compiled for 2.6.32.9-00005-g2440aba kernel, which i found in my device (firmware 4.5.1A-DTN-150-30).