Can't vpn on root, stock firmware - Galaxy S III Q&A, Help & Troubleshooting

Hi guys,
i can't vpn using openvpn app. Anyone have a same problem? I have checked that sgs 3 don't active tun.ko in kernel, try to install tun.ko but don't know where to place this file because there no folder /system/lib/modules.
Do you know how to install tun.ko on galaxy S3?
Thanks

The tun.ko must be strict conformance with kernel.
So you can compile a tun.ko from kernel resource code with same version.
Extract /proc/config.gz from the Android phone to Linux paltform.
Use that .config to make tun.ko module.
insmod tun.ko on the phone.
Use lsmod and dmesg command to check tun status.

working openvpn, very easy
According to to viulian in this cifs mod thread the s3 kernel already has a tun module so hurray for that.
However, I used to use openvpn settings and installer I couldn't get these to play.
instead I tried "openvpn for android" and it works a charm with all my open vpn certificates out of the box, no root required. Happy days.

beetnubbin said:
According to to viulian in this cifs mod thread the s3 kernel already has a tun module so hurray for that.
However, I used to use openvpn settings and installer I couldn't get these to play.
instead I tried "openvpn for android" and it works a charm with all my open vpn certificates out of the box, no root required. Happy days.
Click to expand...
Click to collapse
Could you please tell how you got OpenVPN for Android to read the openvpn configuration ffiles?
I have three:
*_ddwrt_small.sh
*_ddwrt.sh
*.ovpn
The "*" is my OpenVPN account name from strongvpn.com. I put the files in /sdcard/openvpn but just get a bunch of errors
Thanks in advance!

aZooZa said:
Could you please tell how you got OpenVPN for Android to read the openvpn configuration ffiles?
I have three:
*_ddwrt_small.sh
*_ddwrt.sh
*.ovpn
The "*" is my OpenVPN account name from strongvpn.com. I put the files in /sdcard/openvpn but just get a bunch of errors
Thanks in advance!
Click to expand...
Click to collapse
You have to load each individual certificate. Click on "all your precious vpns" then click on the folder icon and direct the app to your vpn certificates, select one and click save. It's a bit annoying that it doesn't automatically load the folder and that you have to name them manually but it does work and you can also create shortcuts to each vpn and put them in a folder for super quick access.
Hope that helps

beetnubbin said:
You have to load each individual certificate. Click on "all your precious vpns" then click on the folder icon and direct the app to your vpn certificates, select one and click save. It's a bit annoying that it doesn't automatically load the folder and that you have to name them manually but it does work and you can also create shortcuts to each vpn and put them in a folder for super quick access.
Hope that helps
Click to expand...
Click to collapse
Thanks for that. I just can't get OpenVPN to work, so have installed PPTP/L2TP from strongvpn.com which works just fine, and also on my other devices that don't support OpenVPN without jailbreaking. I won't name those devices here

Phuongld said:
Hi guys,
i can't vpn using openvpn app. Anyone have a same problem? I have checked that sgs 3 don't active tun.ko in kernel, try to install tun.ko but don't know where to place this file because there no folder /system/lib/modules.
Do you know how to install tun.ko on galaxy S3?
Thanks
Click to expand...
Click to collapse
Anyone know how? Please explain in the noobest way as possible. I'm new to this kernel thing. :|

Related

[Q] xperia x10 cifs

I want to mount some cifs or even better nfs mounts. I Found the cool cifs app, but I'm having no luck loading the cifs driver.
I have a rooted x10a
firmware 1.6
Kernel 2.6.29-rel semc-android semc 2
Build r1fa014
so what do I have to do? I have looked high and low for a x10 cifs.ko, and tried a ton of others with the app and insmod. Do I need to upgrde the kernel? build?
Current links to what I have to do would be apreciated.
Thanks
check the kernel compiling topic, I posted cifs kernel module for X10 there.
Thanks for the info
I have found your main post: # 716360, Compiling X10 kernel sources.
And I have downloaded your cifs.zip, put it on my x10. I can insmod or use the cifsmanager gui to load the module, and it appears to be running with no errors, lsmod even shows it.
But when I go to mount I still get the "No Such Device" error. Do i need to upgrade my phone first from the above specs?
I don't want to hijack the other post, so ill reply here.
Thanks
bango123 said:
Thanks for the info
I have found your main post: # 716360, Compiling X10 kernel sources.
And I have downloaded your cifs.zip, put it on my x10. I can insmod or use the cifsmanager gui to load the module, and it appears to be running with no errors, lsmod even shows it.
But when I go to mount I still get the "No Such Device" error. Do i need to upgrade my phone first from the above specs?
I don't want to hijack the other post, so ill reply here.
Thanks
Click to expand...
Click to collapse
use the same command line i used on the kernel topic,
also the destination directory must exists.
last but not least, busybox mount instead of the native android mount
if you succeed, please provide compiled module
After some work, I got it to work, and in the end it was not to complicated at all.
1. Get the CIFS module (driver) for the X10, I have attached a copy I am now using for version 1.6. It was compiled by alx5962 and put on these forums in another thread "Compiling X10 kernel sources". There is more info there. I just added "X10" to the name of his file to avoid confusion and posted it here in case of a search engine brought others here for help.
Unpack and save the file somewhere on your SD card, write down where it is at.
2. Install the CIFS Manager from apps, it will need root access to load the cifs module ("Superuser Permissions" app manages this very well), there is lots of info and this is a easy fix. Should be easy to find.
In settings:
Check "Load cifs module"
Check "Load via insmod"
the under path point it to where you saves the cifs modile (something like /sdcard/cifsx10/cifs.ko)
Then setup your share, for example:
Share Path:
192.168.0.1/Share
Mount Point:
/mnt/cifs/Share
Username"
me
Password:
mepassword
Don't worry about any of the options
And that should do it. I did try the command line mounting in the shell, that worked well too, I even made some scripts with a script app. But the CIFS Manager once i figured out my problem(read my note below), worked very well and very easy.
*NOTE* My big problem was an error when mounting "invalid argument". What I found is even if I have the share open to anyone with no password, it will spit out an error if you leave the username and password blank. I just put in "me" and "pw" (or anything really) and i was up and running in one foul swoop!
can i ask what is the point to all this?
mootmaina said:
can i ask what is the point to all this?
Click to expand...
Click to collapse
CIFS also called SMB is the network file sharing used by windows mostly, this would then let you share a folder on you sdcard over you wifi to your home pc leting you copy files to and from your phone without connectinig USB
I haven't tried to share any folders on the sdcard, but I use it to mount shares that are on the network on my pc. ES File Explorer is a nice app to browse the network, but some files wont open well using this.
My main use is to play media, mainly DIVX movies that are stored on my pc. By mounting a share on cifs ( smb - samba, or windows file sharing, both more or less same thing) I can open my DIVX movies with rockplayer and they play like a charm. I have heard of some other apps that have the same issue.
But now I can have access to all of my media stuff when i want.
you can also use webdrive - windows program for mounting ssh filesystems, and launch ssh daemon on android.
Anyone tried this on 2.1? Do we need a new cifs.ko?
Bump.
Anyone got any info on cifs and 2.1? Id like to upgrade but don't want to lose this use.
[sorry] Bump [/sorry]
I tries some of the cifs.ko files i found trying to use the same kernel version (2.6.29), but insmod gave me errors.
Please, if anyone found a working version of cifs.ko for X10 2.1 kernel, post it - or give us a hint ...
(yes i know, compiling it myself would be a way, ... - i promise i will try, but why reinvent the wheel?)
THANKS,
Bax
Bumpito
Still no news about the new cifs.ko ?
Thanks !
Sony Ericsson haven't released the sources for 2.1 yet, so no "cifs.ko" until then. (It seems SE are breaking the GPL license by not releasing their Linux kernel source code)
And is there a way without using cifs.to to play files (such as mp3 or avi) directly from a samba share on 2.1 or we have to wait ?
Bump
Anyone have any luck with 2.1 yet?
hhave we gotten this yet?
cifs.ko experia x10 2.1 rooted
dutchschultz said:
hhave we gotten this yet?
Click to expand...
Click to collapse
In this thread,
http://forum.xda-developers.com/showthread.php?t=716360&highlight=cifs&page=12
Many thanks to alx5962
goto page 1 for instruction, or just use cifsmanager for market

[Q] VPN on G-tablet

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!

[Q] Has anyone compiled a tun.ko module for the EVO 3D yet?

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).

CIFS kernel module for ICS

I've seen a few posts from people wanting native network file support for our Primes. I'm attaching the cifs.ko kernel module for 2.6.39.4 (ICS on the Prime).
CifsManager (search for in market) makes mapping shares and retaining them very easy and is free...busybox mount can be painful.
You must have root to use the module.
cifs.zip contains cifs.ko and cifs.ko_debugon.
the debug_on module has extra extensions/functionality/debug capability. It's not needed, but I included just in case anyone needs it.
great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS
What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.
Lock-N-Load said:
great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS
Click to expand...
Click to collapse
I wish...for now I'm using my EVO's hotspot.
ChrisDos said:
What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.
Click to expand...
Click to collapse
I'll be honest, I'm new to development in Android. I've been developing and using Linux for a long time, and these phones/tabs aren't exactly built up the way a real linux box is. On our Primes, the init files appear to be baked into the bootloader, so even if you modify one to add insmod calls, its wiped on a reboot.
Once we get the bootloader unlocked.....
Your best bet is to download ScriptManager or an app from the market which you can set to run a custom script after a reboot.
you just need to create something like:
# LoadModules.sh
# Load my kernel modules
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/md4.ko
# end file
Have ScriptManager run this at startup.
Is there also a cifs.ko for Kernel 2.6.36.3 (Honeycomb)?
We german USer have to wait for ICS so an interimssolution woud be great...
reagrds
MrLee
cifs module for HC
Mr99Lee said:
Is there also a cifs.ko for Kernel 2.6.36.3 (Honeycomb)?
We german USer have to wait for ICS so an interimssolution woud be great...
reagrds
MrLee
Click to expand...
Click to collapse
I can't test this, but here you go. Please let me know if it works
Lock-N-Load said:
great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS
Click to expand...
Click to collapse
Mine appears fine?
ChrisDos said:
What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.
Click to expand...
Click to collapse
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko
I just want to say thanks for this...in case anyone's wondering, having the Cifs capability will allow you to run an app like CifsManager to make Samba share folders (for example, the shared folders on a windows network) show up like they're on a drive on your tablet. That means that any file you can open from a memory location on your tablet can be opened from across the network. Apps such as ES File explorer offer a limited capability to open certain types of files directly, if your tablet has an app to open them, but it only works for file types the dev's put into it (in general, movies, music, pictures and pdf's). With Cifs support, anything that can be opened directly on the tablet can be opened over the network, without an intermediary app like ES File Explorer.
sklid said:
I can't test this, but here you go. Please let me know if it works
Click to expand...
Click to collapse
Great!!!!!
Works like a charm. Here comes my 10tb tablet.
Thank you very much!
bis denne
Mr.Lee
ParaTr00per said:
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko
Click to expand...
Click to collapse
Yea, I did the same thing. I'll give it another reboot and do some more digging.
This probably explains why CIFSManager wouldn't work for me last night
Added the needed 2 modules and provided path to the program, will test when I get home!
Thanks!
ParaTr00per said:
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko
Click to expand...
Click to collapse
Works very well, thanks for the tip. I have used Cifs Manager before and it always works well.
Just out of curiosity what tool chain are you using to compile these?
scook9 said:
This probably explains why CIFSManager wouldn't work for me last night
Added the needed 2 modules and provided path to the program, will test when I get home!
Thanks!
Click to expand...
Click to collapse
Worked. Thanks!
still a aos newb...
so, i just extract the files from the zip (3) and move them to - system/lib/modules/ with root explorer?
think this works, but what is the file path for ics? mnt/ isn't correct? i keep getting error saying no such file or directory....
fuzzer said:
still a aos newb...
so, i just extract the files from the zip (3) and move them to - system/lib/modules/ with root explorer?
think this works, but what is the file path for ics? mnt/ isn't correct? i keep getting error saying no such file or directory....
Click to expand...
Click to collapse
I had the same problem and after messing with it for a while, I got it to work.
You do place those files in the system/lib/modules/ folder. You need to make sure those modules get loaded by going to a terminal emulator (available in the market) and typing these lines,
Code:
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/md4.ko
After that, the Cifs manager app should work, or you can just type the command for it. Cifs manager app basically just uses this command to mount your drive.
Code:
busybox mount -t cifs //192.168.x.xxx/<Share> /mnt/cifs/<Share> -o username=<username>,password=<password>
You can just put those commands in a script to run each time it boots as well with script manager, but I haven't yet gotten that to work. It seems that app is buggy and crashes a lot on my prime.
Thanks, now how about the folder structure? I tried to put it in removable, and it created a new folder on the root?
is it case sensitive?
also, is it becausae of ICS that some apps don't see "Removble"...i hope they fix this, kinda sux not being able to use the removable sd card for everything....
fuzzer said:
Thanks, now how about the folder structure? I tried to put it in removable, and it created a new folder on the root?
is it case sensitive?
also, is it becausae of ICS that some apps don't see "Removble"...i hope they fix this, kinda sux not being able to use the removable sd card for everything....
Click to expand...
Click to collapse
Are you using the Cifs manager app (or command line)? I have only mounted mine to /mnt/cifs/<Share>. Root explorer can get you to that directory. I just added the video directory (e.g. /mnt/cifs/<Share>/Movies) to Mizuu. Mizuu is amazing if you are using the network drive to stream movies from. Then I don't have to worry about getting to that directory anymore.
You should be able to tell any media player app where to look. I will have to try a different folder location to see if I can get it to mount anywhere else though. I am at work right now though...
when i move the files from the sdcard using root explorer
and try to run it i get
insmod: init_module '/system/lib/modules/cifs.ko' failed (File exists)
What could be the problem?
Edit: it seames to be that the module is alredy loaded, and my problem was the mount pont, all is working now!

[FIX] Kernel modules for VPN support (tun.ko + others)

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.

Categories

Resources