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 am running the wistilt kernel and not the most current RIL but one of the new RIL from the original RIL thread, but I am not sure it really matters as long as you are using an autobuild version or testing variant of it.
I will caveat that the native Android VPN will not work for my company because it uses Cisco IPSec with Group Name and Password on it. The IPSec in Android is some weird variant of IPSec that is not compatible with Cisco systems. This is a known problem in Android.
Here is what I did. I downloaded VPNC Widget from the markethttps://market.android.com/details?id=com.gmail.mjm4456.vpncwidget It is a simple Widget that is a one-click VPN start/stop.
I then had to get "tun" running on our build. I found it in /system/lib/modules/ folder. I went to Terminal Emulator went to root by typing "su" without quotes. I then type in "mknod /system/lib/modules/tun c 10 200" then I type "modprobe tun". If you get any kind of errors about not finding the file just go "cd /system/lib/modules" and try again. I forget if I had to do that or not.
Once I did that and set up the VPNC Widget with all my info it logged into my VPN, and I was able to set up my Microsoft Exchange server for email, and I was able to use a VNC app to remote into my work desktop.
I thought I might have to add some info into the conf file, but actually it works even after reboot. Maybe some of the developers can tell me why that is, because I was under the assumption a reboot would reset everything again.
Anyway just an FYI. Thought I would help some people wanting to VPN.
On many Linux systems, device files in /dev are created by udev. In our case we might have fixed device files, not sure.
It's odd that you mknoded /system/lib/modules/tun - usually you mknod stuff in /dev/...
Weird...
However what may have happened is that once the device file was mknoded, it stays in the filesystem, and the module autoloads once the device exists.
Entropy512 said:
On many Linux systems, device files in /dev are created by udev. In our case we might have fixed device files, not sure.
It's odd that you mknoded /system/lib/modules/tun - usually you mknod stuff in /dev/...
Weird...
However what may have happened is that once the device file was mknoded, it stays in the filesystem, and the module autoloads once the device exists.
Click to expand...
Click to collapse
I agree most things I see using mknod are in /dev/, but the tun file was not in that folder for me, so I searched for it, and that was the only place I found it. I guess that means that our build wasn't meant to support VPN originally even with the built in Android VPN stuff showing on it. I don't have a home VPN or I would try the Android built on VPN to see if it works now. Although I am thinking about setting one up, but I don't even have a desktop right now so it would be worthless until I get a NAS or desktop on my network.
Which reminds me if wistilt2 has added iptable support into his kernel yet. Off to investigate!
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.
it's possible to use modem 3g on usb ?(i'm not interested connecting by phone)
if yes, i will need a drivers?
if i connect usb modem 3g. can i make a call and sent sms? and what app i need to do it?
Funny you should ask, since I was just working on this yesterday...
I've got access to an AT&T USBConnect 881 made by Sierra Wireless that is well known for working on Linux platforms with either kppp or wvdial. I managed to compile the sierra.ko kernel module and it loads fine, detects the modem, and provides the necessary /dev/ttyUSB* interfaces. I have yet to test the "dialing" portion with pppd and the chatscript, but I can't imagine why it wouldn't work.
I'll probably work on it later today and will report back on progress. I don't know of an easy way to integrate the connectivity into the built-in Android system stuff, so for the time being it will all be done via command line with scripts.
There's a long thread in the OG Transformer forum. Whatever they're doing should most likely work (or not) on the Prime.
http://forum.xda-developers.com/showthread.php?t=1151097
so, can i use a usb Modem Huawei E398 4G LTE and it will be works?
agentdr8 said:
Funny you should ask, since I was just working on this yesterday...
I've got access to an AT&T USBConnect 881 made by Sierra Wireless that is well known for working on Linux platforms with either kppp or wvdial. I managed to compile the sierra.ko kernel module and it loads fine, detects the modem, and provides the necessary /dev/ttyUSB* interfaces. I have yet to test the "dialing" portion with pppd and the chatscript, but I can't imagine why it wouldn't work.
I'll probably work on it later today and will report back on progress. I don't know of an easy way to integrate the connectivity into the built-in Android system stuff, so for the time being it will all be done via command line with scripts.
Click to expand...
Click to collapse
I also have a usb modem I would like to use. Do you have any good links/guides on how to compile these modules? I have recently installed Ununtu on my laptop and would like to tinker with this. Thanks!
sajmon1983 said:
so, can i use a usb Modem Huawei E398 4G LTE and it will be works?
Click to expand...
Click to collapse
From what I can see in the running config of the current kernel, it looks like the USB driver for GSM and CDMA modems is already compiled in, and that driver includes support for the E398 according to this.
You'd probably want to search the net to see if there is a chatscript already written for that modem.
---------- Post added at 03:30 PM ---------- Previous post was at 03:18 PM ----------
Nico^APEX said:
I also have a usb modem I would like to use. Do you have any good links/guides on how to compile these modules? I have recently installed Ununtu on my laptop and would like to tinker with this. Thanks!
Click to expand...
Click to collapse
I usually start out by Googling the modem model and the word "linux", since Android is linux to some degree. Once you find out if others have tried it, you try and find which kernel module is needed to support that device. A lot of them are covered by the generic GSM/CDMA usb modem driver, which the TFP kernel should already have support for. Then it's just a matter of plugging it into the usb port, fire up a root shell either via adb or locally via Terminal Emulator/BTEP/ConnectBot and see if it will "dial" out to your cellular provider. Do a "man pppd" search for more info on that.
Unless you have a cross-compiling toolchain setup on your Ubuntu laptop, any kernel modules you build will not be of the proper architecture for the TFP. The modules need to be built for the ARM architecture, not x86. One of the easier ways to having an ARM-based environment to build modules is to run Ubuntu built for ARM on the TFP, and do your module compiling there. This thread shows how to get the running config and also some pointers on building more modules. To get Ubuntu running in a chroot environment on the TFP, look here.
Success!
After tinkering some with the chatscript, I was able to "dial" out on the USBConnect 881 to isp.cingular and browse the net.
If anyone is interested in either the sierra.ko, chatscript/providers file, or anything relating to this hit me up.
Hi guys
I'm trying to get ssh working correctly and I'm having a few issues, ssh works fine but it won't allow me to add to known_hosts, infact it seems to have a problem with the entire /data/.ssh folder! Also when I try and use scp I get: sftp illegal option --x even thought I am definately calling scp, using no options example: "scp [email protected]:/path/to/file /path/" rooted on locked bootloader using existenz latest rom, anyone else have problems??