Has anyone figured out how to get OpenVPN working on a Motorola Milestone?
I tried to using the OpenVPN Installer and OpenVPN Settings apps from the Android Market but was not able to get it working.
Made some progress but still not working...
I've managed to install the OpenVPN binary to /system/bin.
Got a Motorola Milestone Tun.ko driver from, http://code.google.com/p/sbdtools/downloads/list. It's been copied to /system/lib/modules. I've been able to enable it using the insmod command in adb shell. Verified it was running with the lsmod command.
I've moved my openvpn .ovpn config files to my SD, /sdcard/openvpn folder. Started the OpenVPN Settings app, configured the tun and path settings.
Then I started my connection and was able to obtain an IP address.
BUT... still not able to surf to Youtube or other China blocked sites.
The upload & download stats appear to be not moving, even when I try to surf to one of these websites (up: 0.02kBps - down: 0.02 kBps).
Will continue at it for some more, but if anyone is able to help, that would be much appreciated.
dysa said:
I've managed to install the OpenVPN binary to /system/bin.
Got a Motorola Milestone Tun.ko driver from, http://code.google.com/p/sbdtools/downloads/list. It's been copied to /system/lib/modules. I've been able to enable it using the insmod command in adb shell. Verified it was running with the lsmod command.
I've moved my openvpn .ovpn config files to my SD, /sdcard/openvpn folder. Started the OpenVPN Settings app, configured the tun and path settings.
Then I started my connection and was able to obtain an IP address.
BUT... still not able to surf to Youtube or other China blocked sites.
The upload & download stats appear to be not moving, even when I try to surf to one of these websites (up: 0.02kBps - down: 0.02 kBps).
Will continue at it for some more, but if anyone is able to help, that would be much appreciated.
Click to expand...
Click to collapse
Hi, same here.. I am based in China and have done the steps you mentioned... I can connect to OpenVPN but there is no traffic.. I subscribe to 12vpn and called the helpdesk, they told me it could be due to DNS poisoning.. but really doubt that.. I got it working like once the first time but never did again...
@ pointdexler & dysa
I've also installed open VPN to system/bin on the droid 2 running 2.2.19. My config and certs have been transfered to /mnt/sdcard/openvpn and I've also setup my config in the open VPN GUI (available on the droid market) to point to this directory for my config.
After launching the app and attempting to connect, I get an error message that the command was not successful (the error is a bit more verbose than that).
I did find another app on Droid market that got me a bit closer to connecting called openVPN settings. The error output on this app is much more verbose and aids troubleshooting better. I was able to workout all of the application problems, but my issue now is with the tun.ko module. It appears that the downloadable modules online are for 2.1 and prior as none seem to work with 2.2. I have the module copied to /system/lib/modules and the app (openvpn settings) has a feature that loads the module (either by modprobe or insmod, you can choose). My problem now is that the tun.ko module seems to be wrong as I keep getting the error "Fatal: cannot allocate tun/tap dev dynamically."
Have either of you come accross this same issue?
Hi, I have running OpenVPN without problems. I use OpenVPN Settings from market, tun.ko on /sdcard and openvpn binary in /system/xbin. Make symlink ln -s /system/xbin /system/xbin/bb. Both files are in this archive http://www.android-hilfe.de/attachm...openvpn-auf-dem-milestone-tun_und_openvpn.zip. Working openvpn.ovpn + CA files in /sdcard/openvpn. In OpenVPN Settings set up Load module using - insmod and Path to module /sdcard/tun.ko. And OpenVPN is working. If not, try run from konsole : insmod /sdcard/tun.ko
Motorola Light 2.1 ROM + JIT
On CyanogenMod 6 for Milestone you need only tun.ko. No openvpn binary, no create symlink. In OpenVPN Settings only set up insmod and path to tun.ko.
(and sorry for my english )
OpenVPN
No worries ZS-Man, your English is much better than some people who are born speaking the language.
I unfortunately already tried loading the kernel module by command line with root (#) access and it gives me this error message:
insmod: init_module '/data/tun2.ko' failed (Exec format error)
I've tried many different versions of the tun.ko file available online. None seem to work with 2.2.20 OS (2.6.32 kernel)
Android version (2.1 or 2.2) is not important, only tun.ko must be compiled from same sources as kernel. You must search module for milestone2, or compile it by yourself from milestone2 kernel sources. Another nice app is Tunneldroid , it has log viewer - good for debugging openvpn connection.
help help help vpn issue
iam from a country that google does not support the market within
i installed the vpn and all works great market apps every thing but 3days later
the market wont open looks like the ip address from us has been blocked(internet sharing device located in us) and i was unable to open market again any way that i can chage the ip or howoften the company changes the ip address (cause its the same every time i connect vpn) or is there a way to use the vpn settings with another server provider than the freeopenvpn.com
where i can download another zip file with configuration to another server
help me please i ll die
Related
Here are the steps I took to make OpenVPN work. You HAVE to be rooted to make this work.
1) I am going to assume you already know how to configure the firewall side and export a legitmate config.
2) I am running TnT 4.2.2 (great ROM IMHO)
http://forum.xda-developers.com/showthread.php?t=842004
3) I had to run Clemsyn's kernel to get the tunnel to nail up. I don't beleive the stock kernel or any of the TnT mods will fix that.
http://forum.xda-developers.com/showthread.php?t=895825
4) Download from market OpenVPN Installer AND OpenVPN Settings.
5) Run OpenVPN Installer first. I selected /system/xbin option on all screens.
6) Make a folder /sdcard/openvpn. Copy your vpnconfigname.ovpn and vpnconfig.p12 files into it.
7) Run OpenVPN Settings. I unselected "Load tun kernel module" option, the "Fix HTC Routes" and (optional) "Show Ads". I did not alter the "TUN module settings in any manner.
No guarantees, but this worked for me without any fiddling.
-D
I'm not being so lucky - I installed Clemsyn's kernel and the same OpenVPN settings / key that I've installed on my Galaxy S so I know they're functional.
It connects and auth's, creates the TUN device, but shows "Connect to (myserver) as" and netcfg always shows:
tun0 DOWN 0.0.0.0 0.0.0.0 0x00001090
It never brings up the tunnel IP on it.
Well I got it working.
I had to install BusyBox from the market - the "FileBox" versions apparently installed in my rom wouldn't do it.
Then I created /system/xbin/bb/route and /system/xbin/bb/ifconfig linked to the /system/xbin/... versions installed by BusyBox.
I even downloaded and installed the statically linked executable from https://github.com/fries/android-external-openvpn/downloads and thought that fixed it, but turned out the MD5 of that and the market one were identical.
*** EDIT ***
Actually the OpenVPN I installed WAS different from the Market and appears to be the actual fix for me. I must have checked the wrong file the first time with md5sum because I double checked the backup I copied to the desktop and it was definitely different.
Attached are cifs modules for use with the CIFS Manager application in the market. CIFS Manager lets you mount Windows SMB network shares on your filesystem. This allows you to stream content from Windows to your Xoom without having to download it first.
> You must have rooted your Xoom to install the cifs module and to use CIFS Manager.
> I am not the author of the cifs module or CIFS Manager. I merely compiled up the cifs module from the kernel source for your enjoyment.
There are two different zips attached. Use cifs.zip if you have rooted your Xoom and are running koush's kernel. Use cifs-overclock.zip if you have rooted your Xoom and are using coolbho3000's overclocked kernel.
Copy the cifs.ko module to /system/lib/modules using adb:
Code:
adb remount
adb push cifs.ko /system/lib/modules
adb reboot
Then install the CIFS Manager application and enjoy browsing content on your Windows server.
thanks much
I am just a newb to all this but can someone please explain how to setup cifs to see and work with shares?
Just curious, do I have to use a ADB to get the file there or will root explorer do?
Sent from my Xoom using XDA App
question 1)
- install cifs.ko
- install cifs manager or mount manager
- configure share to mount (server/share user/passwd if required)
and that's it
question 2)
root explorer will work just fine (remember to remount /system as rw)
is this working for anyone since the OTA? module loads for me, but just won't mount.
http://forum.xda-developers.com/showthread.php?t=994246
onicrom said:
http://forum.xda-developers.com/showthread.php?t=994246
Click to expand...
Click to collapse
I wonder if it has anything to do with why busybox can't handle domain names. 'wget' has to have an IP address, it won't resolve a name.
Well I don't use the fqdn just the hostname
# cat /system/etc/hosts
192.168.1.2. samba
mount doesn't use busybody afaik, but interesting thought
Sent from my Xoom using XDA Premium App
Sweet, thanks. Looking forward to trying it out.
I got all of it working but it just stopped. I can't mount anything. Twice I was about to reboot the server and the XOOM and started working again. I can use Scanshares and it can see my server and all the shares.
Will either of these work for any recent kernels? I'm trying to mount but I get "no such device" error.
jlaw904 said:
Will either of these work for any recent kernels? I'm trying to mount but I get "no such device" error.
Click to expand...
Click to collapse
The cifs module needs to be compiled against your kernel source. So if using a custom kernel ask your developer for a copy.
any chance to have a cfis file for the 3.1 Fw ?
Wondering the same thing -- anyone have any luck finding an updated version for the stock 3.1 kernel?
As a rooted user, on all Tiamat kernels, I found a method to mount my windows drives by doing the following:
http://forum.xda-developers.com/showthread.php?t=1036316&highlight=how+to+mount
Be sure to install Busybox (both versions from the market were install on my xoom since it kept asking for it) to make it work. I wrote the instructions using Mount Manager but Cifs Manager works the same.
Shameless thread bump -- anyone have any luck compiling the modules for 3.1 stock?
I'm using the 1.4.4 Tiamat kernel on my US 3G Xoom, and I couldn't use either of the above modules -- I got "invalid module format." I can't update to 3.2 yet, being a 3G user (grumble), so I downloaded the source for the Tiamat kernel 1.4.4 from the Git repository and compiled my own cifs.ko module using Nvidia's Tegra development kit's toolchain. But now it says "Unknown symbol in module or invalid parameter." Better, but still not working. Anybody know what I did wrong?
Are there any news about this?
i'm struggling to stream videos to my 3.1 rooted xoom...
No updatie
Since this requires a rooted Xoom and Tiamat has an awesome kernel that includes these modules, I am not updating them any more.
hi. I installed CM6.1.2 for milestone (thanks doshaska) beta on my milstone (not droid) mainly because I really want to use openvpn .
However there seems no tun/tap module in /system/lib/modules (i first looked /lib/modules hoping modules lies in the normal linux module path) and also can't connect to the openvpn server with the default vpn setting program.dmesg says "Cannot allocate TUN/TAP dev dynamically"
Is the missing tun module the reason ? If so , any possiblity in the future that someone can compile the tun module for the CM6 kernel?
btw, I heard something about 2nd-boot . Is there any possiblity to run a complete new kernel avoiding the the damn locked bootload using the 2nd-boot?
PS: sorry for my poor english....
Does anybody use openvpn with abyss kernel (3.6 in this case)? I have never used openvpn for Android and when I activate it, it gives me the error message below:
"Failed to load tun module. Device node /dev/tun/ or dev/net/tun did not show up."
I have the certs and Conf files in the openvpn folder, busybox installed, and according to the openvpn installer, openvpn is installed. I'm using abyss 3.6.
Can anybody tell me what I'm doing incorrectly or what I have failed to do?
Sent from my GT-N7000 using XDA App
baka2x said:
Does anybody use openvpn with abyss kernel (3.6 in this case)? I have never used openvpn for Android and when I activate it, it gives me the error message below:
"Failed to load tun module. Device node /dev/tun/ or dev/net/tun did not show up."
I have the certs and Conf files in the openvpn folder, busybox installed, and according to the openvpn installer, openvpn is installed. I'm using abyss 3.6.
Can anybody tell me what I'm doing incorrectly or what I have failed to do?
Sent from my GT-N7000 using XDA App
Click to expand...
Click to collapse
faced similar kind of problem when using abyss... restarting the phone helped it somehow and started working again... but my stock rom worked without any problem... download tun.ko app from market and try to install your tun module again... ticking insmod option in advanced settings also might help....
kvsandeepreddy said:
faced similar kind of problem when using abyss... restarting the phone helped it somehow and started working again... but my stock rom worked without any problem... download tun.ko app from market and try to install your tun module again... ticking insmod option in advanced settings also might help....
Click to expand...
Click to collapse
Tried your suggestions, but no luck. :-(
Sent from my GT-N7000 using XDA App
My config for Abyss 3.7
In openVPN Settings -> Advanced:
- 'Load tun kernel' module activated
- 'TUN module settigns' -> 'Load module using' set to insmod
- 'TUN module settigns' -> 'Path to run module' set to /lib/modules/tun.ko
Hope it helps
jolillo said:
My config for Abyss 3.7
In openVPN Settings -> Advanced:
- 'Load tun kernel' module activated
- 'TUN module settigns' -> 'Load module using' set to insmod
- 'TUN module settigns' -> 'Path to run module' set to /lib/modules/tun.ko
Hope it helps
Click to expand...
Click to collapse
Thanks for the ideas. For some strange reason it still won't work. I'm using abyss 3.7 as well and everything is installed and in the proper places.
> I just tried getting openvpn to work on a couple other roms, but same issue. FFFFFFFUUUUUUUUUUUU
Sent from my GT-N7000 using XDA App
old problem, I also tried to fix it but never found a solution. Also would like to have it working.
On older rocketrom versions I was able to connect to my openvpn server (or at least it seemed that way as openvpn showed me as connected and with no errors) but when I tested the connection my IP was still my own and not the one from the vpn server I was supposedly connected to, so I dun think it was really working
A quick summary about my openVPN installation
This is how I installed openVPN on Rocket ROM 22 with Abyss 3.7 (log enabled version, I don't know if it matters).
Maybe something it's different from what you did, or you see anything that can help you to solve your problem.
Download from market (sorry, I can't post links) openVPN Installer and openVPN Settings (Friedrich Schäuffelhut versions). I didn't download any other additional app, library....
Install openVPN with openVPN Installer. During installation set
- target directory to /system/xbin
- ifconfig route to /system/xbin/busybox ifconfig (recommended)
In openVPN Settings:
- 'Load tun kernel' module activated
- 'Path to openVPN binary' set to /system/xbin/openvpn (this was the default setting)
In openVPN Settings -> Advanced:
- 'TUN module settigns' -> 'Load module using' set to insmod
- 'TUN module settigns' -> 'Path to run module' set to /lib/modules/tun.ko
Copy ovpn config files, certificates, etc to your route and ready. With this setup openVPN is working ok for me.
I just had some minor "issues", but I think they're related to mi ovpn config not with the tun module.
1. I had to change some data in ovpn config files, but it's due they were ubuntu ready...
2. I need to apply the 'Fix DNS' option in openVPN Settings. If not applied browser can't solve urls.
Finally.. I have tested openVPN only over 3G connection. This setup is working too on Criskelo ROM.
First, thanks for the thorough explanation. I just flashed chrack v13 and tried both FM 2.0 and abyss 3.7 with success
Sent from my GT-N7000 using XDA App
waaaaa I finally got openvpn to work xD
I got the tun.ko installer from the market, it downloaded the correct module onto /months/sdcard/tun.ko then I used that path in the advanced settings of openvpn and voilá xD it's working! xD
Hello,
I am trying to create a tunnel interface on my phone( which has the latest Cyanogenmod 10.2 ) by using this command:
Code:
ip tuntap add dev tun0 mode tun
I get the following error: open: No such file or directory.
I did some research and, apparently, this happens because I don't have installed the tun/tap drivers( the tun.ko module ).
Does anyone have any idea on how to get/install the tun.ko module on my phone ?
Thank you !
vladtp said:
Hello,
I am trying to create a tunnel interface on my phone( which has the latest Cyanogenmod 10.2 ) by using this command:
Code:
ip tuntap add dev tun0 mode tun
I get the following error: open: No such file or directory.
I did some research and, apparently, this happens because I don't have installed the tun/tap drivers( the tun.ko module ).
Does anyone have any idea on how to get/install the tun.ko module on my phone ?
Thank you !
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=com.aed.tun.installer&hl=pl
I don't guarantee that there will be an module for your kernel, but you can still try
I tried it, but it says:
TUN support is possibly pre-loaded in your kernel.
Click to expand...
Click to collapse
This might suggest that the module might exist, but I double checked with lsmod and the /lib/modules directory.
If you have any idea about a kernel version for the phone that might make the Tun.ko app actually install the module, please share.
Also, if anyone else has a working tun.ko module, the Tun.ko app has an option where you can share your module( probably it's sent
to the droidvpn site ).
Thanks !